| Reply | « Previous Thread | Next Thread » |
|
Hello
(Please excuse, if this is stupid. )Loading modules doesn't work on my E61. Like discribed in the readme file, I placed my pathinfo.py file in e:/python/lib/ and this also is in sys.path as it should be, but if I say import pathinfo I always get module not found. ![]() Code:
>>> import pathinfo Traceback (most recent call last): File "<console>", line 1, in ? ImportError: No module named pathinfo Thank you for all ideas! My stuff.. Code:
>>> sys.path ['c:\\private\\f0201515', 'c:\\resource', u'c:\\python\\lib', u'e:\\python\\lib'] >>> os.listdir( 'e:/python/lib' ) ['pathinfo.py'] From the README file: Quote:
"Computer Science is no more about computers than astronomy is about telescopes." -- E. W. Dijkstra |
| infomaniac |
| View Public Profile |
| Find all posts by infomaniac |
|
I have never seen unicode strings in sys.path on my E70. Also my python only has the first two paths by default.
Try to put normal strings in the sys.path and see if it works. Daniel |
|
dnastase: Thank you, this seemed to work!!
But the problem is, that I've not modified sys.path manually before and it seems that the Python environment gets this wrong!! ![]() Hopefully, this is corrected in the next version! "Computer Science is no more about computers than astronomy is about telescopes." -- E. W. Dijkstra |
| infomaniac |
| View Public Profile |
| Find all posts by infomaniac |
|
Yep, it's a bug. Python 2.2 apparently silently ignores Unicode entries in sys.path, while e.g. 2.4 handles them just fine.
Fix was trivial and will be in 1.3.9. http://sourceforge.net/tracker/index...55&atid=790646 |
|
Quote:
![]() pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
Great news! Thx!
![]() "Computer Science is no more about computers than astronomy is about telescopes." -- E. W. Dijkstra |
| infomaniac |
| View Public Profile |
| Find all posts by infomaniac |
|
Quote:
|
|
Like with Duke Nukem ?
![]() "Computer Science is no more about computers than astronomy is about telescopes." -- E. W. Dijkstra |
| infomaniac |
| View Public Profile |
| Find all posts by infomaniac |
|
Quote:
All we want is love! |
| Stansibran |
| View Public Profile |
| Find all posts by Stansibran |
|
got it ! I'm also cofusing about installing new module.
Thanks a lot ![]() |
|
In rest.. how are you handling your E61? I was meaning to buy that phone .. but I need more opinions.. Also I see you are having software problems.. weird for Nokia.
_____________________ Costa Rica travel |
|
import sys
sys.path.append('c:\python\new_modules') sys.path.append('e:\other\python\new_modules') you can use any folder with your modules |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Python for S60 3rd Edition | jplauril | Python | 82 | 2008-06-04 05:47 |
| S60 2nd OR 3rd edition for new software development | patil_ruturaj | Symbian Tools & SDKs | 1 | 2006-06-30 10:30 |
| S60 2nd OR 3rd edition for new software development | patil_ruturaj | Mobile Java Tools & SDKs | 3 | 2006-06-30 09:57 |
| Carbide C++ AppWizards for 3rd Edition | ArneH | Symbian Tools & SDKs | 0 | 2006-05-20 22:22 |
| TTime : TInt64& Int64() problem in S60 3rd edition | iulian_moldovan | Symbian Tools & SDKs | 3 | 2006-01-24 14:07 |