Hi,
I am currently packaging python and a few libraries: PyWin32, PySerial, PIL,
wxPython, HTML generator, numarray for U3 distribution.
Basically that means that the complete system initially in $path1\host will
be moved dynamically to $path2\at execution.
To take PIL as an example, I notice when I launch Idle in a "relative"
manner: I am in $path1\host that $path1\host\Lib\site-packages\PIL is in
the sys.path before I do anything.
I notice that there is a PIL.pch file in site-packages:
Q1) is that read by python ?
On the other hand, even after appending all I can think of in sys.path, I
still get an error (cannot find module) trying to load win32com.client: it
fails in the win32api import in win32com.client.
pywin32.pch is there.
I think all the .dlls are there also, so I'm a bit confused.
Q2) what should I be looking for ?
Also, I seemed to notice in the past that modules (my own) not listed in any
__init__.py where found under Linux but not Windows for which I had to
upgrade my __init__.py.
Q3: is that true ?
Regards,
Philippe 2 1332
PS: I forgot to say that on the win32api import I get a "DLL load failed"
Philippe
Philippe Martin wrote: Hi,
I am currently packaging python and a few libraries: PyWin32, PySerial, PIL, wxPython, HTML generator, numarray for U3 distribution.
Basically that means that the complete system initially in $path1\host will be moved dynamically to $path2\at execution.
To take PIL as an example, I notice when I launch Idle in a "relative" manner: I am in $path1\host that $path1\host\Lib\site-packages\PIL is in the sys.path before I do anything.
I notice that there is a PIL.pch file in site-packages:
Q1) is that read by python ?
On the other hand, even after appending all I can think of in sys.path, I still get an error (cannot find module) trying to load win32com.client: it fails in the win32api import in win32com.client.
pywin32.pch is there.
I think all the .dlls are there also, so I'm a bit confused.
Q2) what should I be looking for ?
Also, I seemed to notice in the past that modules (my own) not listed in any __init__.py where found under Linux but not Windows for which I had to upgrade my __init__.py.
Q3: is that true ?
Regards,
Philippe
Hi,
I had to move the dlls from pywin32_system32 to where python.exe is.
PS: if someone has a great desire to have another library included in the
package, let me know.
Regards,
Philippe
Philippe Martin wrote: Hi,
I am currently packaging python and a few libraries: PyWin32, PySerial, PIL, wxPython, HTML generator, numarray for U3 distribution.
Basically that means that the complete system initially in $path1\host will be moved dynamically to $path2\at execution.
To take PIL as an example, I notice when I launch Idle in a "relative" manner: I am in $path1\host that $path1\host\Lib\site-packages\PIL is in the sys.path before I do anything.
I notice that there is a PIL.pch file in site-packages:
Q1) is that read by python ?
On the other hand, even after appending all I can think of in sys.path, I still get an error (cannot find module) trying to load win32com.client: it fails in the win32api import in win32com.client.
pywin32.pch is there.
I think all the .dlls are there also, so I'm a bit confused.
Q2) what should I be looking for ?
Also, I seemed to notice in the past that modules (my own) not listed in any __init__.py where found under Linux but not Windows for which I had to upgrade my __init__.py.
Q3: is that true ?
Regards,
Philippe This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Pierre Rouleau |
last post by:
I can't remember where/how sys.path is set (aside from the automatically
loaded site.py) and i get a strange entry in it. Can anyone remind me
where/how to control sys.path on a Win32 machine (i'm...
|
by: mike420 |
last post by:
I think everyone who used Python will agree that its syntax is
the best thing going for it. It is very readable and easy
for everyone to learn. But, Python does not a have very good
macro...
|
by: Chris McKeever |
last post by:
I am trying to modify the Mailman Python code to stop mapping
MIME-types and use the extension of the attachment instead. I am
pretty much clueless as to what I need to do here, but I think I have...
|
by: Stephen Ferg |
last post by:
I need a little help here.
I'm developing some introductory material on Python for non-programmers.
The first draft includes this statement. Is this correct?
...
|
by: Helmut Jarausch |
last post by:
Hi,
when I say e.g. help('try') in an interactive Python (or idle) session I
get
Sorry, topic and keyword documentation is not available because the Python
HTML documentation files could not...
|
by: |
last post by:
Hello,
I tried to build Python 2.4.1 on a Reliant Unix system. Just after the
python executable program has been built, I get the following error:
==== begin make output ===
CC -W1...
|
by: Daniel Mark |
last post by:
Hello all:
I have set the PATH for Python as follows:
My Computer->Properties->Advanced->Environment Variables->System
Variables->Path
....; C:\Program Files\Python24;
Then I try to run...
|
by: arorap |
last post by:
Hi,
I recently setup mod_python successfully and things work smooth.
However, I do not remember telling mod_python where to find Python
installation. There's not environment variable which gives...
|
by: jmDesktop |
last post by:
I have been to the main python site, but am still confused. I have
been using .net, so it may be obvious how to do this to everyone
else. I am aware there are various frameworks (Django, Pylons,...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |