llamatry icon indicating copy to clipboard operation
llamatry copied to clipboard

OpenAICompletionInstrumentor Error from this Framework

Open isheriff123 opened this issue 1 year ago • 0 comments

(LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep % pip list | grep llamatry llamatry 0.1.9 (LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep % (LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep % opentelemetry-instrument python server.py ERROR:opentelemetry.launcher.configuration:Invalid configuration: service name missing. Set environment variable OTEL_SERVICE_NAME ERROR:opentelemetry.launcher.configuration:application instrumented via opentelemetry-instrument. all required configuration must be set via environment variables Traceback (most recent call last): File "/usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/opentelemetry/launcher/configuration.py", line 515, in _configure configure_opentelemetry(_auto_instrumented=True) File "/usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/opentelemetry/launcher/configuration.py", line 289, in configure_opentelemetry raise InvalidConfigurationError(message) opentelemetry.launcher.configuration.InvalidConfigurationError: Invalid configuration: service name missing. Set environment variable OTEL_SERVICE_NAME Traceback (most recent call last): File "/Users/akram/AKRAM_CODE_FOLDER/LLAMA_LLM_CPP/LLMetry_LLMOPS/llamatry/examples/lightstep/server.py", line 8, in from llamatry import OpenAICompletionInstrumentor ImportError: cannot import name 'OpenAICompletionInstrumentor' from 'llamatry' (/usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/llamatry/init.py) (LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep % (LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep % python -V Python 3.11.2 (LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep % kram@ISHERIFF-M-RBNA lightstep % (LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep % (LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep % ls -lh total 24 -rw-r--r--@ 1 akram staff 745B Feb 14 16:32 README.md -rw-r--r--@ 1 akram staff 112B Feb 14 16:32 requirements.txt -rw-r--r--@ 1 akram staff 1.3K Feb 14 16:59 server.py (LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep % (LLAMA_ENV) akram@ISHERIFF-M-RBNA lightstep %

isheriff123 avatar Feb 15 '24 01:02 isheriff123