modelscope icon indicating copy to clipboard operation
modelscope copied to clipboard

Local Packages Requiries Conflicts

Open Paradox-z opened this issue 2 years ago • 13 comments

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.

Paradox-z avatar Nov 09 '23 02:11 Paradox-z

try to run the code, the dependency conflict may not result in running error

wenmengzhou avatar Nov 15 '23 11:11 wenmengzhou

still cannot run locally.

Paradox-z avatar Nov 15 '23 12:11 Paradox-z

what is the error log?

wenmengzhou avatar Nov 20 '23 08:11 wenmengzhou

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?

Paradox-z avatar Nov 20 '23 13:11 Paradox-z

what is the conflict error? you can set dashscope api key via setting env var DASHSCOPE_API_KEY='your-dashscope-api-key'

wenmengzhou avatar Nov 20 '23 13:11 wenmengzhou

what's the path to set my env var DASHSCOPE_API_KEY=''

Paradox-z avatar Nov 20 '23 13:11 Paradox-z

execute export DASHSCOPE_API_KEY='' in your command line and then python app.py

wenmengzhou avatar Nov 20 '23 14:11 wenmengzhou

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.

Paradox-z avatar Nov 20 '23 15:11 Paradox-z

what are the errors?

wenmengzhou avatar Nov 20 '23 15:11 wenmengzhou

Terminal command line: raise AuthenticationError image

Paradox-z avatar Nov 20 '23 15:11 Paradox-z

try to see logs in terminal

wenmengzhou avatar Nov 21 '23 00:11 wenmengzhou

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

wenmengzhou avatar Nov 21 '23 07:11 wenmengzhou

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...

Paradox-z avatar Dec 05 '23 16:12 Paradox-z

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.

github-actions[bot] avatar Jun 18 '24 01:06 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jun 24 '24 01:06 github-actions[bot]