Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [Manta] MantaCameraPath


Chronological Thread 
  • From: Abe Stephens <abe@sci.utah.edu>
  • To: harsha sri-narayana <h.sri-narayana@cs.ucl.ac.uk>
  • Cc: manta@sci.utah.edu
  • Subject: Re: [Manta] MantaCameraPath
  • Date: Tue, 27 Nov 2007 10:56:44 -0700

Hi Harsha,

This is a problem with my instructions--until it is fixed properly you must add the Manta/SwigInterface directory to the PYTHONPATH in addition to the Manta/build/lib directory. The issue is that MantaCameraPath.py and the other dependent .py files aren't all copied into the build's lib/ directory where the swig'ed python libraries are placed.

setenv PYTHONPATH /home/harsha/Manta/build/lib:/home/harsha/Manta- project/build/lib:/home/harsha/Manta/SwigInterface


Also, there were some major changes to the SCIRun dependencies last night--I will look at these today, but please let me know if you encounter any other problems with building Manta-project.

Abe


On Nov 27, 2007, at 3:55 AM, harsha sri-narayana wrote:

Hello all, I've run into a problem with 'manta-project.' Any help would be greatly appreciated.
I have these two folders compiled as instructed by the wiki:
/home/harsha/Manta
/home/harsha/Manta-project

This runs OK:
./Manta/build/bin/manta

This is what I'm doing for the Manta-project:
source bin/pythonpath.sh
echo $PYTHONPATH
/home/harsha/Manta/build/lib:/home/harsha/Manta-project/build/lib
python ../python/test.py
Traceback (most recent call last):
File "../python/test.py", line 30, in <module>
  import wxManta
File "/home/harsha/Manta/build/lib/wxManta.py", line 23, in <module>
  from MantaCameraPath import *
ImportError: No module named MantaCameraPath


Interestingly this runs OK:
python Manta/SwigInterface/wxManta.py

However if I copy that file over to the Manta-project it fails:
cp Manta/SwigInterface/wxManta.py ~/Manta-project/python
source ~/Manta-project/build/bin/pythonpath.sh
python Manta-project/python/wxManta.py
Traceback (most recent call last):
File "/home/harsha/Manta-project/python/wxManta.py", line 2, in <module>
  import wxManta
File "/home/harsha/Manta/build/lib/wxManta.py", line 23, in <module>
  from MantaCameraPath import *
ImportError: No module named MantaCameraPath

Why can Manta see that module and Manta-project cannot? Apologies if this is a user error on my part..

Thanks for reading,
-Harsha

n.b. when compiling 'Manta' I get this warning:
/home/harsha/Manta/Interface/Scene.h:85: Warning(312): Nested struct not currently supported (ignored).
I checked this out and it's a struct named 'Bookmark' which looks to be a saved instance of a camera. I don't think it's related.







Archive powered by MHonArc 2.6.16.

Top of page