Simply entering the following commands results in the following import error. I have install PP on my USB drive, multiple times and on multiple drives. I have encountered this issue on 2 machines - Win7 and Vista. Both on latest service packs.
I saw a message on this topic July 11, 2012 in this group - but never saw an answer...
My whole objective is to build a portable lab for testing medical instruments. I was on plan until this issue was encountered over the weekend.
Is it my sys.path? Is it my OS PATH var?
Thots? (a little commentary inserted below, F: being the USB device)
TIA,
BillW
F:\>"\Portable Python 3.2.1.1\App\python.exe"
Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', 'F:\\Portable Python 3.2.1.1\\App\\python32.zip', 'F:\\Portable Python 3.2.
1.1\\App\\DLLs', 'F:\\Portable Python 3.2.1.1\\App\\lib', 'F:\\Portable Python 3
.2.1.1\\App', 'F:\\Portable Python 3.2.1.1\\App\\lib\\site-packages', 'F:\\Porta
ble Python 3.2.1.1\\App\\lib\\site-packages\\win32', 'F:\\Portable Python 3.2.1.
1\\App\\lib\\site-packages\\win32\\lib', 'F:\\Portable Python 3.2.1.1\\App\\lib\
\site-packages\\Pythonwin']
>>> import win32api
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
>>> quit()
Here, I show it works inside the App folder, but seems real impractical:
F:\>cd "\Portable Python 3.2.1.1\App"
F:\Portable Python 3.2.1.1\App>.\python.exe
Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import win32api
Worked?!?!
>>> import sys
>>> sys.path
['', 'F:\\Portable Python 3.2.1.1\\App\\python32.zip', 'F:\\Portable Python 3.2.
1.1\\App\\DLLs', 'F:\\Portable Python 3.2.1.1\\App\\lib', 'F:\\Portable Python 3
.2.1.1\\App', 'F:\\Portable Python 3.2.1.1\\App\\lib\\site-packages', 'F:\\Porta
ble Python 3.2.1.1\\App\\lib\\site-packages\\win32', 'F:\\Portable Python 3.2.1.
1\\App\\lib\\site-packages\\win32\\lib', 'F:\\Portable Python 3.2.1.1\\App\\lib\
\site-packages\\Pythonwin']
>>>