How to use the mitsuba2appleseed.py?


#1

I have problems using the mitsuba2appleseed.py. I can’t get it to work. If somebody knows the syntax that need to use please post. Thank you.

$ python D:\Appleseed\appleseed\share\mitsuba2appleseed.py
Traceback (most recent call last):
File “D:\tr\Appleseed\appleseed\share\mitsuba2appleseed.py”, line 33, in
import appleseed as asr
ModuleNotFoundError: No module named ‘appleseed’


#2

mitsuba2appleseed.py uses appleseed’s Python bindings to build the appleseed scene. You need to instruct Python where to find them.

  • On Windows:

    set PYTHONPATH=%PYTHONPATH%;C:\path\to\appleseed\lib\python2.7
    set PATH=%PATH%;C:\path\to\appleseed\bin
    
  • On Linux and macOS:

    export PYTHONPATH=$PYTHONPATH:/path/to/appleseed/lib/python2.7
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/appleseed/lib
    

Then

python C:\path\to\appleseed\share\mitsuba2appleseed.py -h

or

python /path/to/appleseed/share/mitsuba2appleseed.py -h

for the command line help.


#3

I made the required changes but still not working:

python D:\tr\Appleseed\appleseed\share\mitsuba2appleseed.py -h
Traceback (most recent call last):
File “D:\tr\Appleseed\appleseed\lib\python2.7\appleseed_init_.py”, line 35, in
from _appleseedpythonbuiltin import *
ModuleNotFoundError: No module named ‘_appleseedpythonbuiltin’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “D:\tr\Appleseed\appleseed\share\mitsuba2appleseed.py”, line 33, in

import appleseed as asr
File “D:\tr\Appleseed\appleseed\lib\python2.7\appleseed_init_.py”, line 37, in
from _appleseedpython import *
ModuleNotFoundError: No module named ‘_appleseedpython’

P.S: I have installed Python 3.6.2 in my system.


#4

You need to use Python 2.7.

We will document this better.


#5

Here’s a demo session.

I have appleseed 1.8.0-beta installed in D:\temp\appleseed. The Mitsuba scene to convert is in D:\temp\appleseed\coffee.

I’ve opened a Command Prompt in D:\temp\appleseed\coffee and I’m using Python 2.7.11: