Coder Social home page Coder Social logo

Build issue with mitsuba.pyc about redner HOT 9 CLOSED

bachili avatar bachili commented on July 22, 2024
Build issue with mitsuba.pyc

from redner.

Comments (9)

BachiLi avatar BachiLi commented on July 22, 2024

The cmake file assumes python is an alias to python-3. I'll fix this at some point, but currently I would suggest installing miniconda with python 3, or alias python python-3.

from redner.

tstullich avatar tstullich commented on July 22, 2024

I tried installing again using conda this time and I am still getting the same error. This time the proper version is selected during the CMake configuration, but during the install_lib installation step python 2.7 is still used to compile the byte code for mitsuba.pyc. Is there perhaps another build script that gets run when running that task and should I look into fixing the error there? I included a screenshot below:
errors

from redner.

BachiLi avatar BachiLi commented on July 22, 2024

If you type python in the command line, does it execute python2 or python3?

from redner.

tstullich avatar tstullich commented on July 22, 2024

When I am in the anaconda environment it shows as being 3.7
Python 3.7.3 (default, Mar 27 2019, 22:11:17) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.

from redner.

BachiLi avatar BachiLi commented on July 22, 2024

The problem is at the following line

install(CODE "execute_process(COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/setup.py install
                              WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})")

where CMake still uses python2.7 in the system to execute the setup script.
Did you include the initialization scripts added by the conda installer to your shell profile?
e.g. Do you see the following two lines in ~/.profile, ~/.bashrc, ~/.bash_profile, ...etc?

. /home/tim/src/miniconda3/etc/profile.d/conda.sh
conda activate

If so, maybe try to restart the shell or relogin.

from redner.

tstullich avatar tstullich commented on July 22, 2024

Thanks for the prompt responses :) Yes, I actually just tried a clean build with cloning the project and that seems to have partially fixed this issue. However, I am now not able to build the OpenEXR library, which worked fine before. I attached another screenshot with the error. Sounds like the linker is not able to deal with a certain file, but I did not change any configurations in the CMake files for that. Do you have an idea on how to fix this?
errors

from redner.

BachiLi avatar BachiLi commented on July 22, 2024

Seems related:
MTG/sms-tools#85
pytorch/pytorch#16683 (comment)

from redner.

tstullich avatar tstullich commented on July 22, 2024

Hi, using the suggestion of renaming the Anaconda linker temporarily fixed things, however there is one more issue now. Should I open another issue for this?

When I now try to run the example I get the following error:

Traceback (most recent call last):
File "two_d_mesh.py", line 1, in <module>  import pyredner
 File "/home/tim/src/miniconda3/lib/python3.7/site-packages/pyredner/__init__.py", line 2, in <module> from .camera import *
 File "/home/tim/src/miniconda3/lib/python3.7/site-packages/pyredner/camera.py", line 4, in <module> import redner
ImportError: liboptix_prime.so.6.0.0: cannot open shared object file: No such file or directory

I have double checked that the files are where they are supposed to be and that I have permissions to access the shared objects. I included a screenshot of the CMake variables I set with ccmake. Would you happen to know what could be going wrong here?

ccmake

from redner.

tstullich avatar tstullich commented on July 22, 2024

I am closing this issue for now since the initial issue was resolved. I will open a new issue for further discussion.

from redner.

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.