uzh-rpg / rpg_vid2e

Open source implementation of CVPR 2020 "Video to Events: Recycling Video Dataset for Event Cameras"
GNU General Public License v3.0
325 stars 80 forks source link

Why I always meet such error? I have installed esim_torch. #39

Open DachunKai opened 2 years ago

DachunKai commented 2 years ago
root@3a4e6b6b83b4:~/rpg_vid2e# pip install esim_torch/
Looking in indexes: https://mirrors.ustc.edu.cn/pypi/web/simple
Processing ./esim_torch
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: esim-cuda
  Building wheel for esim-cuda (setup.py) ... done
  Created wheel for esim-cuda: filename=esim_cuda-0.0.0-cp39-cp39-linux_x86_64.whl size=237193 sha256=e6c205811b6f6c837460eb7ad07cd488cde0cbd33de6cffed86d3e2619215131
  Stored in directory: /tmp/pip-ephem-wheel-cache-l8knfmev/wheels/1a/8b/ca/09c363172d9de1896c08f1bf6f25085684a7962dc84bd09128
Successfully built esim-cuda
Installing collected packages: esim-cuda
Successfully installed esim-cuda-0.0.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@3a4e6b6b83b4:~/rpg_vid2e# python
Python 3.9.10 | packaged by conda-forge | (main, Feb  1 2022, 21:24:11) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import esim_cuda
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: libc10.so: cannot open shared object file: No such file or directory
danielgehrig18 commented 2 years ago

Maybe the python version is not correct. Could you try with python 3.7?

On Fri, 4 Mar 2022, 03:54 DachunKai, @.***> wrote:

@.:/rpg_vid2e# pip install esim_torch/ Looking in indexes: https://mirrors.ustc.edu.cn/pypi/web/simple Processing ./esim_torch Preparing metadata (setup.py) ... done Building wheels for collected packages: esim-cuda Building wheel for esim-cuda (setup.py) ... done Created wheel for esim-cuda: filename=esim_cuda-0.0.0-cp39-cp39-linux_x86_64.whl size=237193 sha256=e6c205811b6f6c837460eb7ad07cd488cde0cbd33de6cffed86d3e2619215131 Stored in directory: /tmp/pip-ephem-wheel-cache-l8knfmev/wheels/1a/8b/ca/09c363172d9de1896c08f1bf6f25085684a7962dc84bd09128 Successfully built esim-cuda Installing collected packages: esim-cuda Successfully installed esim-cuda-0.0.0 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv @.:/rpg_vid2e# python Python 3.9.10 | packaged by conda-forge | (main, Feb 1 2022, 21:24:11) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import esim_cuda Traceback (most recent call last): File "", line 1, in ImportError: libc10.so: cannot open shared object file: No such file or directory `

— Reply to this email directly, view it on GitHub https://github.com/uzh-rpg/rpg_vid2e/issues/39, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBHKKEAA44M4P4MMJTUOYDU6F3PFANCNFSM5P4K2HYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

DachunKai commented 2 years ago

Maybe the python version is not correct. Could you try with python 3.7? On Fri, 4 Mar 2022, 03:54 DachunKai, @.> wrote: @.:/rpg_vid2e# pip install esim_torch/ Looking in indexes: https://mirrors.ustc.edu.cn/pypi/web/simple Processing ./esim_torch Preparing metadata (setup.py) ... done Building wheels for collected packages: esim-cuda Building wheel for esim-cuda (setup.py) ... done Created wheel for esim-cuda: filename=esim_cuda-0.0.0-cp39-cp39-linux_x86_64.whl size=237193 sha256=e6c205811b6f6c837460eb7ad07cd488cde0cbd33de6cffed86d3e2619215131 Stored in directory: /tmp/pip-ephem-wheel-cache-l8knfmev/wheels/1a/8b/ca/09c363172d9de1896c08f1bf6f25085684a7962dc84bd09128 Successfully built esim-cuda Installing collected packages: esim-cuda Successfully installed esim-cuda-0.0.0 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv @.:/rpg_vid2e# python Python 3.9.10 | packaged by conda-forge | (main, Feb 1 2022, 21:24:11) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. import esim_cuda Traceback (most recent call last): File "", line 1, in ImportError: libc10.so: cannot open shared object file: No such file or directory ` — Reply to this email directly, view it on GitHub <#39>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBHKKEAA44M4P4MMJTUOYDU6F3PFANCNFSM5P4K2HYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.Message ID: @.>

Ok, I will try. It would be more convenient if you could provice a Dockerfile for vid2e environment.

Yeeesir commented 2 years ago

@DachunKai Have you solved this problem? I meet the same problem as yours

Yeeesir commented 2 years ago

I have solved this problem.

  1. rpg_vid2e/esim_torch/scripts/generate_events.py line4 should be changed from 'import esim_torch' to 'from esim_torch import esim_torch'
  2. bulid at path 'rpg_vid2e/esim_torch' with python3 setup.py build_ext and python3 setup.py install
sumingming123 commented 5 months ago

I reinstalled the setup.py file the way you did, but when I ran the code, I still get the error: python scripts/generate_events.py --i nput_dir=example/upsampled --output_dir=example/events --contrast_threshold_neg=0.2 --contrast_threshold_pos=0.2 --refractory_period_ns=0 Traceback (most recent call last): File "D:aaarpg_vid2e-masteresim_torchscriptsgenerate_events.py", line 4, in < module> from esim_torch import esim_torch ModuleNotFoundError: No module named 'esim_torch' Why is that?