Re: Issue 108 in ulipad: numpy cann't be loaded in shell!

16 views
Skip to first unread message

uli...@googlecode.com

unread,
Jul 10, 2015, 10:37:20 PM7/10/15
to uli...@googlegroups.com

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

uli...@googlecode.com

unread,
Jul 13, 2015, 9:16:59 AM7/13/15
to uli...@googlegroups.com

Comment #3 on issue 108 by limo...@gmail.com: numpy cann't be loaded in
shell!
https://code.google.com/p/ulipad/issues/detail?id=108

Because you are using exe version of Ulipad, and it ships with its own
python lib. And when you install third party module, it'll installed them
in system environment path which is different with Ulipad environment. So I
suggest you install source version, and it'll use system python environment.
Reply all
Reply to author
Forward
0 new messages