Coder Social home page Coder Social logo

Compatible with Python3? about opendr HOT 17 OPEN

mattloper avatar mattloper commented on June 25, 2024 3
Compatible with Python3?

from opendr.

Comments (17)

salmedina avatar salmedina commented on June 25, 2024 69

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.

SelvamArul avatar SelvamArul commented on June 25, 2024 4

@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.

WilliamWang1994 avatar WilliamWang1994 commented on June 25, 2024 2

Maybe you can try the modern version from polmorenoc.
it seem like work on windows.

from opendr.

yohanshin avatar yohanshin commented on June 25, 2024 2

@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.

tszhang97 avatar tszhang97 commented on June 25, 2024 1

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.

hset911 avatar hset911 commented on June 25, 2024

anyone could reply this?

from opendr.

SelvamArul avatar SelvamArul commented on June 25, 2024

There is an updated version of opendr here but this one is not official though.

from opendr.

 avatar commented on June 25, 2024

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.

AnirudhPuligandla avatar AnirudhPuligandla commented on June 25, 2024

@SelvamArul Do you know how we can install that? Thanks in advance

from opendr.

SelvamArul avatar SelvamArul commented on June 25, 2024

@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.

AnirudhPuligandla avatar AnirudhPuligandla commented on June 25, 2024

@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.

neonb88 avatar neonb88 commented on June 25, 2024

@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.

SelvamArul avatar SelvamArul commented on June 25, 2024

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.

erezposner avatar erezposner commented on June 25, 2024

@willie1997 have you managed to solve this issue?

from opendr.

erezposner avatar erezposner commented on June 25, 2024

@salmedina are you working under linux/windows?

from opendr.

salmedina avatar salmedina commented on June 25, 2024

@erezposner This was on Ubuntu 18.04.3 LTS

from opendr.

yutao007 avatar yutao007 commented on June 25, 2024

conda install chumpy ------wrong

from opendr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.