![]() |
need help for python in porting Krank to N900
Hi all,
I am trying to port Krank python game to N900 but there are questions that I can't handle. Now I try to run the program on Ubuntu 8.04 and the errors Code:
File "/home/ubuntu/krank-07/src/Main.py", line 9, in <module> regards, pigling |
Re: need help for python in porting Krank to N900
Check your PYTHONPATH variable. It must include the directory in in which levels resides.
|
Re: need help for python in porting Krank to N900
thanks for your kindly reply.
following is the folder structure: Code:
krank-07/ Code:
#!/bin/sh Code:
#!/bin/sh I set PYTHONPATH to /home/ubuntu/krank-07 where Main.py stays. so you suggest to add /home/ubuntu/krank-07/levels in PYTHONPATH? |
Re: need help for python in porting Krank to N900
The following should work:
cd src export PYTHONPATH=`pwd`:.. python Main.py I.e. you should add krank-07 to your PYTHONPATH. |
Re: need help for python in porting Krank to N900
now I change it to
Code:
cd src Code:
Traceback (most recent call last): |
Re: need help for python in porting Krank to N900
Just read the error messages. It doesn't find levels/images/... . So try moving to a path where it will find this file. Thus do
cd /home/ubuntu/krank-07 python src/Main.py and the above path problem should go away. |
All times are GMT. The time now is 08:24. |
vBulletin® Version 3.8.8