473,756 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ctypes version mismatch

Anyone have anything to suggest on this error:

{{{
Traceback (most recent call last):
File "shutter_studio .py", line 41, in <module>
File "App.pyo", line 25, in <module>
File "ui\__init__.py o", line 23, in <module>
File "ui\FrmProducti onOrders.pyo", line 10, in <module>
File "ui\PagEditProd uctionOrders.py o", line 8, in <module>
File "ui\GrdProducti onOrderOpenings .pyo", line 5, in <module>
File "ui\DlgEditProd uctionOrderOpen ing.pyo", line 17, in <module>
File "ui\ShutterCanv as.pyo", line 9, in <module>
File "wx\lib\floatca nvas\FloatCanva s.pyo", line 6, in <module>
File "numpy\__init__ .pyo", line 46, in <module>
File "numpy\ctypesli b.pyo", line 9, in <module>
File "ctypes\__init_ _.pyo", line 20, in <module>
Exception: ('Version number mismatch', '1.0.2', '1.0.3')
}}}

I just updated from python 2.5.1 to 2.5.2, and wxPython 2.8.7.1 to
2.8.8.1. The issue is only in the py2exe-built app, not when running the
script from the command line.

Paul
Aug 29 '08 #1
2 4287
Paul McNett schrieb:
Anyone have anything to suggest on this error:

{{{
Traceback (most recent call last):
File "shutter_studio .py", line 41, in <module>
File "App.pyo", line 25, in <module>
File "ui\__init__.py o", line 23, in <module>
File "ui\FrmProducti onOrders.pyo", line 10, in <module>
File "ui\PagEditProd uctionOrders.py o", line 8, in <module>
File "ui\GrdProducti onOrderOpenings .pyo", line 5, in <module>
File "ui\DlgEditProd uctionOrderOpen ing.pyo", line 17, in <module>
File "ui\ShutterCanv as.pyo", line 9, in <module>
File "wx\lib\floatca nvas\FloatCanva s.pyo", line 6, in <module>
File "numpy\__init__ .pyo", line 46, in <module>
File "numpy\ctypesli b.pyo", line 9, in <module>
File "ctypes\__init_ _.pyo", line 20, in <module>
Exception: ('Version number mismatch', '1.0.2', '1.0.3')
}}}

I just updated from python 2.5.1 to 2.5.2, and wxPython 2.8.7.1 to
2.8.8.1. The issue is only in the py2exe-built app, not when running the
script from the command line.
I guess you should remove the build and dist directories and rebuild
your app - this is always a good idea when something goes wrong, not only
after upgrading Python or Python packages.

Thomas
Aug 29 '08 #2
Thomas Heller wrote:
Paul McNett schrieb:
>Anyone have anything to suggest on this error:

{{{
Traceback (most recent call last):
File "shutter_studio .py", line 41, in <module>
File "App.pyo", line 25, in <module>
File "ui\__init__.py o", line 23, in <module>
File "ui\FrmProducti onOrders.pyo", line 10, in <module>
File "ui\PagEditProd uctionOrders.py o", line 8, in <module>
File "ui\GrdProducti onOrderOpenings .pyo", line 5, in <module>
File "ui\DlgEditProd uctionOrderOpen ing.pyo", line 17, in <module>
File "ui\ShutterCanv as.pyo", line 9, in <module>
File "wx\lib\floatca nvas\FloatCanva s.pyo", line 6, in <module>
File "numpy\__init__ .pyo", line 46, in <module>
File "numpy\ctypesli b.pyo", line 9, in <module>
File "ctypes\__init_ _.pyo", line 20, in <module>
Exception: ('Version number mismatch', '1.0.2', '1.0.3')
}}}

I just updated from python 2.5.1 to 2.5.2, and wxPython 2.8.7.1 to
2.8.8.1. The issue is only in the py2exe-built app, not when running the
script from the command line.

I guess you should remove the build and dist directories and rebuild
your app - this is always a good idea when something goes wrong, not only
after upgrading Python or Python packages.
Thanks for responding (and thanks for starting py2exe!). Yes, my build
script always wipes out the build and dist directories first.

The problem turned out to be (it was right there in the traceback, but I
glossed over it at first) that numpy includes their own ctypeslib, and
*that* version was 1.0.2. Now, I'm still not sure why it mattered in the
exe but not running just the script, but upgrading numpy resolved the issue.

Paul
Aug 30 '08 #3

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

Similar topics

1
2588
by: Thomas Heller | last post by:
ctypes 0.9.1 released - Sept 14, 2004 ===================================== Overview ctypes is a ffi (Foreign Function Interface) package for Python 2.3 and higher. ctypes allows to call functions exposed from dlls/shared libraries and has extensive facilities to create, access and manipulate
19
2502
by: Thomas Heller | last post by:
ctypes 0.9.2 released - Oct 28, 2004 ==================================== Overview ctypes is a ffi (Foreign Function Interface) package for Python 2.3 and higher. ctypes allows to call functions exposed from dlls/shared libraries and has extensive facilities to create, access and manipulate
3
5546
by: Lenard Lindstrom | last post by:
Posted in a previous thread was some Python code for accessing Window's Simple MAPI api using the ctypes module. http://groups-beta.google.com/group/comp.lang.python/msg/56fa74cdba9b7be9 This Simple MAPI module was Ian's completed version of an example I had posted in an earlier message. In it I had to set some pointer fields in a C structure to NULL. I was not happy with the solution I used so I made an inquiry on the ctypes-users...
2
3376
by: Jacob Rael | last post by:
Hello, I was following along with this site: http://www.brunningonline.net/simon/blog/archives/000659.html and I got a error. It boils down to: ====================
7
7036
by: p.lavarre | last post by:
How do I vary the byte offset of a field of a ctypes.Structure? How do I "use the dynamic nature of Python, and (re-)define the data type after the required size is already known, on a case by case basis"? \\\ For example, suppose sometimes I receive the value '\x03hi' + \x04bye' for the struct:
6
12916
by: Jack | last post by:
I'm not able to build IP2Location's Python interface so I'm trying to use ctypes to call its C interface. The functions return a pointer to the struct below. I haven't been able to figure out how I should declare the return type of the functions and read the fields. Any hint is appreciated. typedef struct { char *country_short; char *country_long;
0
2560
by: Egor Zindy | last post by:
Egor Zindy wrote: #!/usr/bin/env python """ A generic chipid library based on ctypes This module handles most of the functions in FTChipID.dll
0
1179
by: dudeja.rajat | last post by:
Hi, I've used CTYPES module to access a function from a dll. This function provides me the version of the dll. This information is accessible to me as an array of 4 long inetegers. information as : 2, 1, 5, 0 I want to display these elements concatenated as "v2.1.5.0". This string ( I'm thinking of writing the above 4 array elements to a
0
218
by: dudeja.rajat | last post by:
On Tue, Aug 19, 2008 at 12:40 PM, <dudeja.rajat@gmail.comwrote: Googled and found : s = "v%d.%d.%d.%d" % tuple(version) print s it's working. Result is : v1.2.3.4
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9872
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9713
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.