Giter Site home page Giter Site logo

compile error about opendr HOT 10 OPEN

mattloper avatar mattloper commented on August 23, 2024 2
compile error

from opendr.

Comments (10)

ka-petrov avatar ka-petrov commented on August 23, 2024 2

@runa91, you're likely running it with pip from python 3.* This package only supports python 2.*

from opendr.

SpiritBear000 avatar SpiritBear000 commented on August 23, 2024 2

I have successfully installed by using 'pip install opendr‘ with python2!!!!

from opendr.

ka-petrov avatar ka-petrov commented on August 23, 2024 1

Same problem with Ubuntu 16.04. Any help?

from opendr.

jzubizarreta avatar jzubizarreta commented on August 23, 2024 1

Same problem. Did you solve it?
I am using pip to install with Python 2.7 but I get the following error:

Cython.Compiler.Errors.CompileError: contexts/ctx_mesa.pyx
Command "python setup.py egg_info" failed with error code 1

from opendr.

aeoleader avatar aeoleader commented on August 23, 2024

you can use pip to install opendr, if the problem persists

from opendr.

runa91 avatar runa91 commented on August 23, 2024

Same problem with 16.04 when using this git version as above. And with pip I get:

pip install opendr

Collecting opendr
Using cached opendr-0.76.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-r609yikz/opendr/setup.py", line 40
print "Downloading %s" % osmesa_fname
^
SyntaxError: Missing parentheses in call to 'print'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-r609yikz/opendr/

from opendr.

neonb88 avatar neonb88 commented on August 23, 2024

@SpiritBear000 Can you please paste system information?

from opendr.

shamimsareem avatar shamimsareem commented on August 23, 2024

@SpiritBear000 Please let us know the information how to solve this problem.

from opendr.

delaprada avatar delaprada commented on August 23, 2024

I have successfully installed opendr with python2, but not with pip install opendr.

take the following steps:

  1. git clone opendr repo:
git clone https://github.com/mattloper/opendr
  1. wget download OSMesa to opendr/contexts directory:
wget http://files.is.tue.mpg.de/mloper/opendr/osmesa/OSMesa.Linux.x86_64.zip
  1. create conda environment with python2.7. (opendr only works for python2.x. I use python3.x in the beginning and it failed)
  2. install opendr
cd opendr && python setup.py install

After install, copy the opendr directory to site-packages of your anaconda environment directory (such as: anaconda --> envs --> pythonx.x --> lib --> pythonx.x --> site-packages). Otherwise, you will encounter some errors like:

ModuleNotFoundError: No module named 'opendr.contexts.ctx_mesa'

Another error may occur:

No module names '_constraints'

This can be fixed with modifying the line which import _constants.py to absolute path (from opendr.contexts._constants import *) in opendr/contexts/ctx_base.pyx

from opendr.

delaprada avatar delaprada commented on August 23, 2024

I have successfully installed opendr with python2, but not with pip install opendr.

take the following steps:

  1. git clone opendr repo:
git clone https://github.com/mattloper/opendr
  1. wget download OSMesa to opendr/contexts directory:
wget http://files.is.tue.mpg.de/mloper/opendr/osmesa/OSMesa.Linux.x86_64.zip
  1. create conda environment with python2.7. (opendr only works for python2.x. I use python3.x in the beginning and it failed)
  2. install opendr
cd opendr && python setup.py install

After install, copy the opendr directory to site-packages of your anaconda environment directory (such as: anaconda --> envs --> pythonx.x --> lib --> pythonx.x --> site-packages). Otherwise, you will encounter some errors like:

ModuleNotFoundError: No module named 'opendr.contexts.ctx_mesa'

Another error may occur:

No module names '_constraints'

This can be fixed with modifying the line which import _constants.py to absolute path (from opendr.contexts._constants import *) in opendr/contexts/ctx_base.pyx

This is the conda list:

# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
_openmp_mutex             5.1                       1_gnu  
backports-functools-lru-cache 1.6.6                    pypi_0    pypi
ca-certificates           2023.08.22           h06a4308_0  
certifi                   2020.6.20          pyhd3eb1b0_3  
chumpy                    0.70                     pypi_0    pypi
cloudpickle               1.3.0                    pypi_0    pypi
cycler                    0.10.0                   pypi_0    pypi
cython                    3.0.5                    pypi_0    pypi
decorator                 4.4.2                    pypi_0    pypi
kiwisolver                1.1.0                    pypi_0    pypi
libffi                    3.4.4                h6a678d5_0  
libgcc-ng                 11.2.0               h1234567_1  
libgomp                   11.2.0               h1234567_1  
libstdcxx-ng              11.2.0               h1234567_1  
matplotlib                2.2.5                    pypi_0    pypi
ncurses                   6.4                  h6a678d5_0  
networkx                  2.2                      pypi_0    pypi
numpy                     1.16.6                   pypi_0    pypi
opencv-python             4.2.0.32                 pypi_0    pypi
opendr                    0.77                     pypi_0    pypi
pillow                    6.2.2                    pypi_0    pypi
pip                       19.3.1                   py27_0  
pyparsing                 2.4.7                    pypi_0    pypi
python                    2.7.18               h42bf7aa_3  
python-dateutil           2.8.2                    pypi_0    pypi
pytz                      2023.3.post1             pypi_0    pypi
pywavelets                1.0.3                    pypi_0    pypi
readline                  8.2                  h5eee18b_0  
scikit-image              0.14.5                   pypi_0    pypi
scipy                     1.2.3                    pypi_0    pypi
setuptools                44.0.0                   py27_0  
six                       1.16.0                   pypi_0    pypi
sqlite                    3.41.2               h5eee18b_0  
subprocess32              3.5.4                    pypi_0    pypi
tk                        8.6.12               h1ccaba5_0  
transforms3d              0.3.1                    pypi_0    pypi
wheel                     0.37.1             pyhd3eb1b0_0  
zlib                      1.2.13               h5eee18b_0 

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.