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

Opendr installation issue and python3 #82

Open
dariogentiletti opened this issue Apr 9, 2019 · 19 comments
Open

Opendr installation issue and python3 #82

dariogentiletti opened this issue Apr 9, 2019 · 19 comments
Labels
openDR issues regarding openDR useful for others to see

Comments

@dariogentiletti
Copy link

dariogentiletti commented Apr 9, 2019

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
Copy link

swframe commented Apr 20, 2019

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
Copy link

Zetee commented May 28, 2019

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

@Zetee
Copy link

Zetee commented May 28, 2019

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

@akanazawa akanazawa added openDR issues regarding openDR useful for others to see labels Jun 15, 2019
@Justinemmerich
Copy link

try python2.7 with opendr version 0.77

@electronicliujiang
Copy link

CIU~74$0SG}VT2Q}K7Q5XUY

why?
envs=python2.7

@zhaolin820
Copy link

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
Copy link

jszgz commented Sep 5, 2020

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
Copy link

dlehgo14 commented Nov 7, 2020

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
Copy link

  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
Copy link

sypei commented Apr 13, 2021

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
Copy link

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

@eduardoLopex666
Copy link

  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
Copy link

The installation method is the same for all python versions.

@eduardoLopex666
Copy link

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
Copy link

This solution will be helpful

@CGMikeG
Copy link

CGMikeG commented Oct 19, 2021

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
Copy link

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openDR issues regarding openDR useful for others to see
Projects
None yet
Development

No branches or pull requests