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

from opendr.renderer import ColoredRenderer fails? #18

Open
xiumingzhang opened this issue Sep 1, 2017 · 5 comments
Open

from opendr.renderer import ColoredRenderer fails? #18

xiumingzhang opened this issue Sep 1, 2017 · 5 comments

Comments

@xiumingzhang
Copy link

xiumingzhang commented Sep 1, 2017

Problem

>>> from opendr.renderer import ColoredRenderer
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/software/Anaconda3-4.3.1-Linux-x86_64/envs/py27/lib/python2.7/site-packages/opendr/renderer.py", line 25, in <module>
    from contexts.ctx_mesa import OsContext
ImportError: /software/Anaconda3-4.3.1-Linux-x86_64/envs/py27/lib/python2.7/site-packages/opendr/contexts/ctx_mesa.so: undefined symbol: PyFPE_jbuf

Steps to reproduce

Create a brand-new conda environment py27

conda create -n py27 python=2.7

Activate the environment by

source activate py27

Install OpenDR with

pip install opendr

As a result, pip automatically will install chumpy-0.67.5, numpy-1.13.1, and scipy-0.19.1.

Install OpenCV with

pip install opencv-python

Finally,

(py27) me@machine:~$ python
Python 2.7.13 |Continuum Analytics, Inc.| (default, Dec 20 2016, 23:09:15)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> from opendr.renderer import ColoredRenderer
@xiumingzhang
Copy link
Author

There are posts on the web suggesting the cause to be conflicting numpy packages installed by conda and pip, but this is not my case, since I've only installed numpy using pip in a clean python environment.

@iwanao731
Copy link

iwanao731 commented Feb 13, 2018

You should put ctx_mac.so (on Mac) or ctx_mesa.so (on Linux) generated by pip install opendr under opendr>contexts directory.

@neonb88
Copy link

neonb88 commented Mar 25, 2019

@iwanao731 Do you know how to get ctx_mesa.so working for python3? Or how I could see the steps the creator took to make ctx_mesa.so through pip?

@zjw689
Copy link

zjw689 commented Nov 21, 2020

You should put ctx_mac.so (on Mac) or ctx_mesa.so (on Linux) generated by pip install opendr under opendr>contexts directory.

ctx_mac.so

Can you tell me how to get the ctx_mac.so?Thanks.

You should put ctx_mac.so (on Mac) or ctx_mesa.so (on Linux) generated by pip install opendr under opendr>contexts directory.

@zjw689
Copy link

zjw689 commented Nov 21, 2020

There are posts on the web suggesting the cause to be conflicting numpy packages installed by conda and pip, but this is not my case, since I've only installed numpy using pip in a clean python environment.

Have you solve this problem? Can you share the solution? Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants