I'm using py2exe to create a standalone program that uses pyparallel.
When I run the created program an error occurs and a message directs me
to
the log file which contains:
Traceback (most recent call last):
File "fg.py", line 30, in ?
import dds2
File "dds2.pyc", line 24, in ?
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR
File "parallel\__init__.pyc", line 13, in ?
File "parallel\parallelwin32.pyc", line 59, in ?
File "ctypes\__init__.pyc", line 407, in __getattr__
File "ctypes\__init__.pyc", line 319, in __init__
WindowsError: [Errno 1157] One of the library files needed to run this
application cannot be found
My setup.py is:
from distutils.core import setup
import py2exe
setup(windows = ["fg.py"])
Line 59 in parallelwin32.py is: _pyparallel = ctypes.windll.simpleio.
I'm using PythonWin 2.3.2 on Win98SE. I have ctypes 0.9.6, py2exe 0.6.3
and pyparallel 0.2 installed.
I posted a similar message to the py2exe mailing list but apparently
that list is inactive. Any suggestions appreciated.
Thanks,
Gary Richardson 2 3551
On 13 Nov 2005 10:03:52 -0800, ga***@fidalgo.net <ga***@fidalgo.net> wrote: I'm using py2exe to create a standalone program that uses pyparallel. When I run the created program an error occurs and a message directs me to the log file which contains:
Traceback (most recent call last): File "fg.py", line 30, in ? import dds2 File "dds2.pyc", line 24, in ? WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR File "parallel\__init__.pyc", line 13, in ? File "parallel\parallelwin32.pyc", line 59, in ? File "ctypes\__init__.pyc", line 407, in __getattr__ File "ctypes\__init__.pyc", line 319, in __init__ WindowsError: [Errno 1157] One of the library files needed to run this application cannot be found
My setup.py is: from distutils.core import setup import py2exe setup(windows = ["fg.py"])
Line 59 in parallelwin32.py is: _pyparallel = ctypes.windll.simpleio.
I'm using PythonWin 2.3.2 on Win98SE. I have ctypes 0.9.6, py2exe 0.6.3 and pyparallel 0.2 installed.
I posted a similar message to the py2exe mailing list but apparently that list is inactive. Any suggestions appreciated.
Thanks, Gary Richardson
This *looks* like all that's happening is that ctypes is unable to
load the dll simpleio.dll , which is not a standard windows library
and therefore needs to be somewhere LoadLibrary can find it.
-- http://mail.python.org/mailman/listinfo/python-list
Chris Mellon wrote: On 13 Nov 2005 10:03:52 -0800, ga***@fidalgo.net <ga***@fidalgo.net> wrote: I'm using py2exe to create a standalone program that uses pyparallel. When I run the created program an error occurs and a message directs me to the log file which contains:
Traceback (most recent call last): File "fg.py", line 30, in ? import dds2 File "dds2.pyc", line 24, in ? WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR File "parallel\__init__.pyc", line 13, in ? File "parallel\parallelwin32.pyc", line 59, in ? File "ctypes\__init__.pyc", line 407, in __getattr__ File "ctypes\__init__.pyc", line 319, in __init__ WindowsError: [Errno 1157] One of the library files needed to run this application cannot be found
My setup.py is: from distutils.core import setup import py2exe setup(windows = ["fg.py"])
Line 59 in parallelwin32.py is: _pyparallel = ctypes.windll.simpleio.
I'm using PythonWin 2.3.2 on Win98SE. I have ctypes 0.9.6, py2exe 0.6.3 and pyparallel 0.2 installed.
I posted a similar message to the py2exe mailing list but apparently that list is inactive. Any suggestions appreciated.
Thanks, Gary Richardson
This *looks* like all that's happening is that ctypes is unable to load the dll simpleio.dll , which is not a standard windows library and therefore needs to be somewhere LoadLibrary can find it.
-- http://mail.python.org/mailman/listinfo/python-list
Thanks for you reply.
Yes, copying simpleio.dll to my dist directory corrected the problem.
The
program now runs but I get an error message when it terminates that
directs
me to the log file where I find the message:
C:\MY DOCUMENTS\PYTHON\DDS\DIST\library.zip\dds2.py:96: FutureWarning:
x<<y
losing bits or changing sign will return a long in Python 2.4 and up
I added the statement "from __future__ import division" to dds2.py and
no
longer see that message when I run the program from Python. So why
should I
see it when the standalone program runs? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: RJS |
last post by:
Hi all,
I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32-
py2.2).
Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222.
In the sample below, commenting out...
|
by: Stefan Behrens |
last post by:
Hi,
does anybody know how I can get py2exe to work with wxPython's
wxCalendarCtrl?
Currently, I have just a "standard" setup.py, and py2exe gives me a
syntax error.
Do I need to include any...
|
by: Kathleen Kudzma |
last post by:
I'm having a problem with py2exe for Python 2.3. I got fixed the
Lookuperror no codec search functions registered: can't find encoding by
following the instructions on the py2exe page (added...
|
by: Kathleen Kudzma |
last post by:
Does anyone know how to resolve the following problem that I'm getting in
Python 2.2 and 2.3?
PROBLEM: When I try to create a classReader object I get an exception:
"SAXReaderNotAvailable: No...
|
by: Luc Saffre |
last post by:
Hello,
I had a strange problem when freezing (using either py2exe or McMillan
installer) a script that imports reportlab (which imports PIL (which
imports FixTk))).
- Python 2.3.3c (also with...
|
by: Brian |
last post by:
When using this:
import parallel
p = parallel.Parallel() #open LPT1
p.setData(0x55)
I get this:
|
by: Michel LE VAN KIEM |
last post by:
Hi everybody !
I'm trying to install the pyparallel module for my Python 2.3.4 (runs on
a FC3) but I do have some troubles.
When I import the parallel module, python shows the following...
|
by: Richard Siderits |
last post by:
Greetings. I am trying to write a small application for controlling CRYDOM
AC and DC switches from the parallel port using pyparallel. The project is
described in the latest issue of MAKE...
|
by: juncus |
last post by:
Hi,
Perhaps this is not the right forum to post this, but I am having
trouble installing pyParallel. When I try to do the usual "python
setup.py build" or "python setup.py install", I get the...
|
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: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
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: 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
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| | |