-
Notifications
You must be signed in to change notification settings - Fork 45.7k
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
Installation error. #11051
Comments
Hi I'm getting a similar error when I try to pip install tensorflow tf-models_official.
|
Yeah I just found the solution. Change your PyYAML==5.3.1. It is the issue
with the versio
…On Wednesday, July 19, 2023, ironllamagirl ***@***.***> wrote:
Hi I'm getting a similar error when I try to pip install tensorflow
tf-models_official.
Downloading Cython-3.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.1 kB)
Requirement already satisfied: Pillow in ./.venv/lib/python3.10/site-packages (from tf-models-official) (9.5.0)
Collecting gin-config (from tf-models-official)
Downloading gin_config-0.5.0-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.3/61.3 kB 2.6 MB/s eta 0:00:00
Collecting google-api-python-client>=1.6.7 (from tf-models-official)
Obtaining dependency information for google-api-python-client>=1.6.7 from https://files.pythonhosted.org/packages/db/b8/c85d26d2fc42319df0bfdf8f549c89c014a4dbb395d6958ea25ce772238b/google_api_python_client-2.94.0-py2.py3-none-any.whl.metadata
Downloading google_api_python_client-2.94.0-py2.py3-none-any.whl.metadata (6.6 kB)
Collecting immutabledict (from tf-models-official)
Obtaining dependency information for immutabledict from https://files.pythonhosted.org/packages/63/24/2d70ce3bca941be9d81e7e701918b5eb4655e74f5ce7453d3fb6760edfa3/immutabledict-2.2.5-py3-none-any.whl.metadata
Downloading immutabledict-2.2.5-py3-none-any.whl.metadata (3.2 kB)
Collecting kaggle>=1.3.9 (from tf-models-official)
Downloading kaggle-1.5.16.tar.gz (83 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.6/83.6 kB 7.3 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting matplotlib (from tf-models-official)
Obtaining dependency information for matplotlib from https://files.pythonhosted.org/packages/c2/da/a5622266952ab05dc3995d77689cba600e49ea9d6c51d469c077695cb719/matplotlib-3.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
Downloading matplotlib-3.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.6 kB)
Collecting oauth2client (from tf-models-official)
Downloading oauth2client-4.1.3-py2.py3-none-any.whl (98 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.2/98.2 kB 8.3 MB/s eta 0:00:00
Collecting opencv-python-headless (from tf-models-official)
Obtaining dependency information for opencv-python-headless from https://files.pythonhosted.org/packages/76/02/f128517f3ade4bb5f71e2afd8461dba70e3f466ce745fa1fd1fade9ad1b7/opencv_python_headless-4.8.0.74-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
Downloading opencv_python_headless-4.8.0.74-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)
Collecting pandas>=0.22.0 (from tf-models-official)
Obtaining dependency information for pandas>=0.22.0 from https://files.pythonhosted.org/packages/e3/59/35a2892bf09ded9c1bf3804461efe772836a5261ef5dfb4e264ce813ff99/pandas-2.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
Downloading pandas-2.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
Requirement already satisfied: psutil>=5.4.3 in ./.venv/lib/python3.10/site-packages (from tf-models-official) (5.9.5)
Collecting py-cpuinfo>=3.3.0 (from tf-models-official)
Downloading py_cpuinfo-9.0.0-py3-none-any.whl (22 kB)
Collecting pycocotools (from tf-models-official)
Downloading pycocotools-2.0.6.tar.gz (24 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pyyaml<6.0,>=5.1 (from tf-models-official)
Downloading PyYAML-5.4.1.tar.gz (175 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 8.2 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
╰─> [62 lines of output]
/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!
********************************************************************************
The license_file parameter is deprecated, use license_files instead.
By 2023-Oct-30, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
parsed = self.parsers.get(option_name, lambda x: x)(value)
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/home/ubuntu/dev/orbit-tf.10/.venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/ubuntu/dev/orbit-tf.10/.venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/ubuntu/dev/orbit-tf.10/.venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 271, in <module>
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 314, in run
self.find_sources()
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 322, in find_sources
mm.run()
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 551, in run
self.add_defaults()
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
sdist.add_defaults(self)
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/command/sdist.py", line 104, in add_defaults
super().add_defaults()
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
self._add_defaults_ext()
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
File "<string>", line 201, in get_source_files
File "/tmp/pip-build-env-aurvtau0/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[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.
│ exit code: 1
╰─> See above for output.
—
Reply to this email directly, view it on GitHub
<#11051 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKIIFWKZSI6U6MKOLXQK4W3XQ6TEZANCNFSM6AAAAAA2PQPG3M>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Best Regards*
Bibi Qurat-ul-Ain
|
Thank you this version worked! |
Go to research/models/requirement.txt or maybe some similar file to this.
There you will find the libraries and their versions. Change from there.
Mine was also auto. But I changed it manually
…On Wednesday, July 19, 2023, ironllamagirl ***@***.***> wrote:
In my case the download of PYYAML is automatically ran when I pip install
tf-models-official though. How can I change the version that it picks.
—
Reply to this email directly, view it on GitHub
<#11051 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKIIFWLHRQP6Z6YEVSK47KDXQ7CTRANCNFSM6AAAAAA2PQPG3M>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Best Regards*
Bibi Qurat-ul-Ain
|
actually I just installed it before and it foudn that the requirement already satisfied: pyyaml<6.0,>=5.1 so all good now. Cheers |
Error solved??
…On Wednesday, July 19, 2023, ironllamagirl ***@***.***> wrote:
actually I just installed it before and it foudn that the requirement
already satisfied: pyyaml<6.0,>=5.1 so all goof now. Cheers
—
Reply to this email directly, view it on GitHub
<#11051 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKIIFWOVXOM3UDIERN2EJ23XQ7FHJANCNFSM6AAAAAA2PQPG3M>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Best Regards*
Bibi Qurat-ul-Ain
|
Yes! |
Hi @Annieliaquat, We are aware of this issue and pip install tf-models-official is breaking as of now because of latest cython and pyyaml release having some version conflicts, as of now we are taking cython latest version and pyyaml <6.0 version. July 17th cython 3.0.0 has been released. Issue raised in pyyaml github repo gives us more context: yaml/pyyaml#724 Probably restricting cython < 3.0 will resolve the issue or increase pyyaml to latest version 6.0.1 and make necessary changes for yaml code to make compatible with latest pyyaml release. We will soon release the patch with above changes to latest version and meanwhile you can use above workaround to continue your work. Thanks. |
Hi @Annieliaquat, We are pleased to announce the release of version 2.13.1 of our PyPi Package. This update includes the changes mentioned in the previously merged pull request, and we can confirm that it is functioning smoothly. To ensure you have the latest official version, please run the command |
I have this issue in Sept 2023. pip install tf-models-official breaks at the pyaml line. Followed the suggested fixes to cython, pyaml with no success. Then tried installing the latest tf-models-official explicitly, version 2.13.2. Tensorflow is installed at version 2.14.0. Get this error output: Using cached tensorflow_model_optimization-0.7.5-py2.py3-none-any.whl.metadata (914 bytes)
|
It seems like you are facing the same issue. I think you can fixed it by reading @laxmareddyp comment. Did you really try it? It must be something around version conflictions. If you want more details on the workaround click here. If you are so lazy to read just try these lines in your command lines:
If those three lines above are not working, try again with the remaining 2 lines:
Hope this helps! |
Everything was installing perfectly 3 days ago. But suddenly this error came out.
I have updated the pip but nothing is working
The text was updated successfully, but these errors were encountered: