Comment #2 on issue 108 by
zhwd...@gmail.com: numpy cann't be loaded in
shell!
https://code.google.com/p/ulipad/issues/detail?id=108
I have the same problem. When you import any module that does not come with
default installation, you will have the error like below under UliPad shell:
>>> import send2trash
Traceback (most recent call last):
File "<input>", line 1, in <module>
ImportError: No module named send2trash
However, it will run totally fine if it is on Windows command window or the
script in Ulipad.
I found the reason because sys.path will produce the following result under
UliPad shell:
>>> import sys
>>> sys.path
['C:\\Program Files (x86)\\UliPad\\packages', 'C:\\Program Files
(x86)\\UliPad\\plugins', 'C:\\Program Files
(x86)\\UliPad\\modules', 'C:\\Program Files (x86)\\UliPad', 'C:\\Program
Files (x86)\\UliPad\\lib\\sharedlib.zip']
However, the result will be completely different on Window command window:
>>> import sys
>>> sys.path
['','C:\\windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages']
I hope this problem will be solved in the new release. Thanks a lot!
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings