Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing packages via Pip install is giving error #35

Closed
sunilbhatia2021 opened this issue Feb 17, 2025 · 3 comments
Closed

Installing packages via Pip install is giving error #35

sunilbhatia2021 opened this issue Feb 17, 2025 · 3 comments
Assignees

Comments

@sunilbhatia2021
Copy link

After executing Pip install -r requirements. text . I am getting following error now:
Earlier error was different that was about dependencies

Earlier Error:
ERROR: Cannot install -r requirements.txt (line 10), azure-ai-evaluation and pillow==11.0.0 because these package versions have conflicting dependencies.

The conflict is caused by:
The user requested pillow==11.0.0
autogen-core 0.4.5 depends on pillow>=11.0.0
promptflow-devkit 1.16.1 depends on pillow<11.0.0 and >=10.1.0
The user requested pillow==11.0.0
autogen-core 0.4.5 depends on pillow>=11.0.0
promptflow-devkit 1.16.0 depends on pillow<11.0.0 and >=10.1.0
The user requested pillow==11.0.0
autogen-core 0.4.5 depends on pillow>=11.0.0
promptflow-devkit 1.15.1 depends on pillow<11.0.0 and >=10.1.0
The user requested pillow==11.0.0

After upgrading Pip version , Error changes to following :

Collecting pillow==10.1.0 (from -r requirements.txt (line 1))
Downloading Pillow-10.1.0.tar.gz (50.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.8/50.8 MB 4.4 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
Traceback (most recent call last):
File "C:\Users\BIT\AIPOC\ai-agents-for-beginners\aiagents\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
~~~~^^
File "C:\Users\BIT\AIPOC\ai-agents-for-beginners\aiagents\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BIT\AIPOC\ai-agents-for-beginners\aiagents\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\BIT\AppData\Local\Temp\pip-build-env-tz5mub_g\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BIT\AppData\Local\Temp\pip-build-env-tz5mub_g\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "C:\Users\BIT\AppData\Local\Temp\pip-build-env-tz5mub_g\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "", line 30, in
File "", line 27, in get_version
KeyError: 'version'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.

Would appreciate your help here , Since want to try hands on building AI Agents using these samples.

Copy link

👋 Thanks for contributing @sunilbhatia2021! We will review the issue and get back to you soon.

@koreyspace
Copy link
Contributor

Thanks for reporting @sunilbhatia2021 , removed the conflicting package of 'azure-ai-evaluation' after some testing it is not being used in the samples currently. Pull the the latest version and let me know if there is still a problem.

@sunilbhatia2021
Copy link
Author

Thanks a lot for your prompt support @koreyspace . It is now installed successfully, Now would be able to start on Agentic Journey! Happy AI Agenting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants