akanazawa / hmr

Project page for End-to-end Recovery of Human Shape and Pose
Other
1.54k stars 395 forks source link

Opendr installation issue and python3 #82

Open dariogentiletti opened 5 years ago

dariogentiletti commented 5 years ago

Hello, I have python 3.7 and the only module it seems I have trouble installing is opendr. I can't install python2 because I'm not able to setup tensorflow-gpu correctly if I do so. The error I keep having with opendr is:

File "C:\Users\dario.conda\envs\tf_gpu\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "C:\Users\dario.conda\envs\tf_gpu\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\dario\hmr\demo.py", line 29, in from src.util import renderer as vis_util File "C:\Users\dario\hmr\src\util\renderer.py", line 12, in from opendr.camera import ProjectPoints ModuleNotFoundError: No module named 'opendr.camera'

swframe commented 5 years ago

I had the same issue with 3.6, I switched to 2.7 and it worked fine. It is easier to just use 2.7 for now. It doesn't seem like opendr is active.

Zetee commented 5 years ago

I have solved this problem with install from opendr repo in github, with python setup.py build and python setup.py install

Zetee commented 5 years ago

by the way, you need to download the OSMesa.Linux.x86_64.zip file in opendr/contexts manually if the setup.py failed

Justinemmerich commented 5 years ago

try python2.7 with opendr version 0.77

electronicliujiang commented 4 years ago

CIU~74$0SG}VT2Q}K7Q5XUY

why? envs=python2.7

zhaolin820 commented 4 years ago

I'm using Anaconda3 with python3.7 on Ubuntu. I have forgotten whether we met the same problem. But I successfully installed the OpenDR following these commands.

sudo apt install libosmesa6-dev

sudo apt-get install build-essential

sudo apt-get install libgl1-mesa-dev

sudo apt-get install libglu1-mesa-dev

sudo apt-get install freeglut3-dev

sudo pip install opendr
jszgz commented 4 years ago

Hello, do you know how to use mpi_inf_3dhp_to_tfrecords.py to convert mpi_inf_3dhp dataset? I failed because the code use jpg as input but the dataset I downloaded is consisting of videos. Do I need to use ffmpeg and write code to convert avi to jpg?

dlehgo14 commented 3 years ago

I'm using Anaconda3 with python3.7 on Ubuntu. I have forgotten whether we met the same problem. But I successfully installed the OpenDR following these commands.

sudo apt install libosmesa6-dev

sudo apt-get install build-essential

sudo apt-get install libgl1-mesa-dev

sudo apt-get install libglu1-mesa-dev

sudo apt-get install freeglut3-dev

sudo pip install opendr

It works on me, Thank you!

Sba-Stuff commented 3 years ago
  1. Download Opendr from here: https://github.com/polmorenoc/opendr
  2. Extract opendr folder from archive downloaded from step 1. (opendr-master/opendr)
  3. Zip again that opendr folder (opendr-master/opendr only not the all master folder) so that it will like opendr.zip
  4. Then hit "Python -m pip install opendr.zip"
sypei commented 3 years ago

I'm using Anaconda3 with python3.7 on Ubuntu. I have forgotten whether we met the same problem. But I successfully installed the OpenDR following these commands.

sudo apt install libosmesa6-dev

sudo apt-get install build-essential

sudo apt-get install libgl1-mesa-dev

sudo apt-get install libglu1-mesa-dev

sudo apt-get install freeglut3-dev

sudo pip install opendr

You save my day!!!!

eduardoLopex666 commented 3 years ago

Is anyone using Anaconda with Python 3.8+ in windows 10? if so, what is the correct installation guide?

eduardoLopex666 commented 3 years ago
  1. Download Opendr from here: https://github.com/polmorenoc/opendr
  2. Extract opendr folder from archive downloaded from step 1. (opendr-master/opendr)
  3. Zip again that opendr folder (opendr-master/opendr only not the all master folder) so that it will like opendr.zip
  4. Then hit "Python -m pip install opendr.zip"

Does this work for Python 3.8+?

Sba-Stuff commented 3 years ago

The installation method is the same for all python versions.

eduardoLopex666 commented 2 years ago

My solution to the problem: Install opendr and chumpy from this GitHub repo. Using opendr from here led me another error that was solved in this GitHub issue.

ismeyueyue commented 2 years ago

This solution will be helpful

CGMikeG commented 2 years ago

absolute perfection!!!! I had to remove sudo on the last line. But this is awesome!!!

sudo apt install libosmesa6-dev sudo apt-get install build-essential sudo apt-get install libgl1-mesa-dev sudo apt-get install libglu1-mesa-dev sudo apt-get install freeglut3-dev pip install opendr

I'm using Anaconda3 with python3.7 on Ubuntu. I have forgotten whether we met the same problem. But I successfully installed the OpenDR following these commands.

sudo apt install libosmesa6-dev

sudo apt-get install build-essential

sudo apt-get install libgl1-mesa-dev

sudo apt-get install libglu1-mesa-dev

sudo apt-get install freeglut3-dev

sudo pip install opendr
rex-yue-wu commented 2 years ago

I have solved this problem with install from opendr repo in github, with python setup.py build and python setup.py install

I confirm this solution works well with python 3.9

ERAnOnFzx commented 11 months ago

You may download the opendr packages from Github and then set up offline with the command (Assume you store it at /home/opendr) python /home/opendr/setup.py install

friendlyCamel commented 1 month ago

2024.7.23. my env configuration: python 3.8.and i got it with https://medium.com/@TimWChiu/opendr-%E5%AE%89%E8%A3%9D-b121e78578a4