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

Skip to first unread message

Jul 10, 2015, 10:37:20 PM7/10/15

Comment #2 on issue 108 by numpy cann't be loaded in

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\\']

However, the result will be completely different on Window command window:
>>> import sys
>>> sys.path
['','C:\\windows\\system32\\', '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:

Jul 13, 2015, 9:16:59 AM7/13/15

Comment #3 on issue 108 by numpy cann't be loaded in

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
0 new messages