473,326 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

py2exe, pyparallel

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

Nov 22 '05 #1
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

Nov 22 '05 #2

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?

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
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...
2
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...
0
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...
8
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...
6
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...
1
by: Brian | last post by:
When using this: import parallel p = parallel.Parallel() #open LPT1 p.setData(0x55) I get this:
3
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...
2
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...
0
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
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...
0
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...
0
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...
0
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...
1
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)...
1
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...
0
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
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.