DerrickXuNu / OpenCOOD

[ICRA 2022] An opensource framework for cooperative detection. Official implementation for OPV2V.
https://mobility-lab.seas.ucla.edu/opv2v/
Other
663 stars 99 forks source link

environment config #48

Closed zjr-bit closed 1 year ago

zjr-bit commented 1 year ago

Hi, thanks for your great work. when I config environment and run the python setup.py develop, I encounter the error:

running develop
/home/ps/miniconda3/envs/zjropencood/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  EasyInstallDeprecationWarning,
/home/ps/miniconda3/envs/zjropencood/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
running egg_info
writing OpenCOOD.egg-info/PKG-INFO
writing dependency_links to OpenCOOD.egg-info/dependency_links.txt
writing requirements to OpenCOOD.egg-info/requires.txt
writing top-level names to OpenCOOD.egg-info/top_level.txt
reading manifest file 'OpenCOOD.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'OpenCOOD.egg-info/SOURCES.txt'
running build_ext
Creating /home/ps/miniconda3/envs/zjropencood/lib/python3.7/site-packages/OpenCOOD.egg-link (link to .)
OpenCOOD 0.1.0 is already the active version in easy-install.pth

Installed /home/ps/zhongjr/OpenCOOD
Processing dependencies for OpenCOOD==0.1.0
Searching for scipy~=1.5.4
Reading https://pypi.org/simple/scipy/
/home/ps/miniconda3/envs/zjropencood/lib/python3.7/site-packages/pkg_resources/__init__.py:126: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release
  PkgResourcesDeprecationWarning,
Downloading https://files.pythonhosted.org/packages/dc/7e/8f6a79b102ca1ea928bae8998b05bf5dc24a90571db13cd119f275ba6252/scipy-1.5.4-cp37-cp37m-manylinux1_x86_64.whl#sha256=25b241034215247481f53355e05f9e25462682b13bd9191359075682adcd9554
error: The read operation timed out

Could you please tell me how fix it? I have tried a lot of times.

DerrickXuNu commented 1 year ago

This is probably caused by the internet issue. Are based in China Mainland? If so, you can try to use some VPN. You can also manullay install the Scipy package by pip install scipy to see whether this will work

zjr-bit commented 1 year ago

oh, I get it. But I think there are some differences between environment.yml and requirements.txt. such as matplotlib~=3.3.3 in requirements.txt and matplotlib==3.4.2 in environment.yml. I run conda env create -f environment.yml and conda activate opencood following the instruction. And then I run python setup.py develop, it will try to find the matplotlib~=3.3.3 but I have installed matplotlib==3.4.2 in the environment, so it will get trapped (because of my internet issue). Could you please check it and I'm not sure about it. Thank you.

DerrickXuNu commented 1 year ago

Hi, this is a good catch. Maybe you can temporarily modify the version in the requirements.txt or yaml to make it the same. I will fix this later

zjr-bit commented 1 year ago

Ok, I have finished it. Thanks for your great work again!