Local Packages Requiries Conflicts
General Question
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
- s3fs 2023.3.0 requires fsspec==2023.3.0, but you have fsspec 2023.10.0 which is incompatible.
- huggingface-hub 0.18.0 requires fsspec>=2023.5.0, but you have fsspec 2023.3.0 which is incompatible.
try to run the code, the dependency conflict may not result in running error
still cannot run locally.
what is the error log?
Thanks for your reply. I've checked the log file, then I solved the environment dependency problem. Now I can run "python app.py" in the path, but I got a conflict with api_key, which caused error in using. Do I populate my token in llm.py dashscope.api_key = os.getenv( 'here') right?
what is the conflict error? you can set dashscope api key via setting env var DASHSCOPE_API_KEY='your-dashscope-api-key'
what's the path to set my env var DASHSCOPE_API_KEY=''
execute export DASHSCOPE_API_KEY='' in your command line and then python app.py
my command terminal: D:\git\llm_riddles\modelscope\examples\apps\llm_riddles> set DASHSCOPE_API_KEY='...' D:\git\llm_riddles\modelscope\examples\apps\llm_riddles>echo %DASHSCOPE_API_KEY% '...'
When I open the local URL to use your app, there are four errors on my screen after I tapped some message to send.
what are the errors?
Terminal command line: raise AuthenticationError
try to see logs in terminal
dashscope.common.error.AuthenticationError: No api key provided. You can set by dashscope.api_key = your_api_key in code, or you can set it via environment variable DASHSCOPE_API_KEY= your_api_key. You can store your api key to a file, and use dashscope.api_key_file_path=api_key_file_path in code, or you can set api key file path via environment variable DASHSCOPE_API_KEY_FILE_PATH, You can call save_api_key to api_key_file_path or default path(~/.dashscope/api_key).
seems env variable DASHSCOPE_API_KEY is not set successfully, please follow the error hint to set it
I've tried several ways you mentioned and learned from aliyun API-KEY Set with terminal Git Bash. such as 1. export DASHSCOPE_API_KEY="YOUR_DASHSCOPE_API_KEY"; 2. import dashscope dashscope.api_key="YOUR_DASHSCOPE_API_KEY" All failed😂perhaps my API-KEY was wrong...
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.