Comments (19)
I was finally able to install OpenDR through PIP on Python 3.7 in a conda environment. What worked like magic for me was installing libosmesa6-dev:
conda create -n smpl python=3.7
conda activate smpl
conda install numpy
conda install chumpy
conda install -c conda-forge opencv
sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev
sudo apt-get install libosmesa6-dev
pip install opendr
Hope this helps!
from opendr.
@AnirudhPuligandla What is the exact path you have in your PYTHONPATH? I will share my setting as an example. Maybe you can spot any differences to yours.
I cloned the updated opendr from here to ~/workspace
and then added ~/workspace/opendr
to my PYTHONPATH
.
Let's check with python interpreter.
import sys
for i in sys.path:
print (i)
...
/home/arul/workspace/opendr
...
# opendr is in sys.path
import opendr
print (opendr)
<module 'opendr' from '/home/arul/workspace/opendr/opendr/__init__.py'>
print (chumpy)
<module 'chumpy' from '/home/arul/workspace/opendr/chumpy/__init__.py'>
Hope this helps.
from opendr.
ya, this fork is python3 compatible. I have forked it further to make to compatible with latest versions of NumPy and Scipy, and few other bug fixes related to wrong dimension specification while reading out the rendered images from OpenGL. You can find my fork here.
Regrading the PYTHONPATH, I didn't get your question. Could you please describe your issue in detail?
I used your fork and met this error:
AttributeError: 'ColoredRenderer' object has no attribute 'vbo_verts_face'
Could you help me find out what's wrong?
from opendr.
Maybe you can try the modern version from polmorenoc.
it seem like work on windows.
from opendr.
@salmedina Following your description, it perfectly works on my ubuntu-18.04 LTS too! Just instead, since conda doesn't have their chumpy cloud, try pip install chumpy
from opendr.
anyone could reply this?
from opendr.
There is an updated version of opendr here but this one is not official though.
from opendr.
I tried installing opendr on python 3 on anaconda using both pip and conda, but failed. Can anyone help me on this? I also tried finding .whl file for opendr, but couldn't.
from opendr.
@SelvamArul Do you know how we can install that? Thanks in advance
from opendr.
@AnirudhPuligandla Could you please elaborate on your question? Sorry, I didn't get what you mean by install. It is just a python package. Noting to install there.
from opendr.
@SelvamArul Sorry for the vague question! Actually I am testing some code that uses opendr to display images and a 3D mesh. So, i have this modern opendr package in my PYTHONPATH with the other requirements installed. But, i am not sure if this package can readily replace opendr (in terms of fucntions to open a window, display etc.) as i still encounter the same error "no module named opendr". I am using python3.5
I hope that is clear.
Thanks
from opendr.
@SelvamArul To clarify, have you gotten it working in python3? Also, did you manage to do everything with PYTHONPATH? I'm not sure how python3 absolute imports works under the hood, nor how pip and conda do
from opendr.
ya, this fork is python3 compatible. I have forked it further to make to compatible with latest versions of NumPy and Scipy, and few other bug fixes related to wrong dimension specification while reading out the rendered images from OpenGL. You can find my fork here.
Regrading the PYTHONPATH, I didn't get your question. Could you please describe your issue in detail?
from opendr.
@willie1997 have you managed to solve this issue?
from opendr.
@salmedina are you working under linux/windows?
from opendr.
@erezposner This was on Ubuntu 18.04.3 LTS
from opendr.
conda install chumpy ------wrong
from opendr.
This solution works for virtual env python3.10 too
sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev sudo apt-get install libosmesa6-dev pip install opendr
from opendr.
I was finally able to install OpenDR after upgrade Cpython
pip install --upgrade Cython
from opendr.
Related Issues (20)
- FramebufferTexture2D and CheckFramebufferStatus in opendr
- Install debug
- How to render when I use orthogonal projection camera model? HOT 1
- Can opendr install on Window 10? HOT 5
- Is it possible to use Opendr to save the 3d representation in 3d format itself
- ze HOT 1
- AttributeError: 'Minimal' object has no attribute 'v' HOT 5
- render only the wireframe
- 'numpy.float64' object cannot be interpreted as an integer HOT 1
- how to solve to problem about import opendr HOT 2
- the problem of "ImportError: No module named ctx_mesa" HOT 8
- Error in installtion pip install opendr HOT 1
- glext.h expected ‘const GLchar **’ {aka ‘const char **’} but argument is of type ‘char **’ HOT 1
- Renderer.r contains only 0 HOT 1
- How can I install OpenDR in CentOS 7 for Python 3?
- compile has passed in mac os(m1)
- OSMesa zip file
- ModuleNotFoundError: No module named '_constants' HOT 3
- Installation issue in ARM Processor aarch64
- Here's how to install it on MacOS!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opendr.