473,396 Members | 2,033 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,396 software developers and data experts.

problems with in 2.3.2 developed modules used with 2.2.2

Sorry for the long header of this mail ;-)

Has anyone experienced modules developed in 2.3.2 (using IDLE and PythonWin as IDE) don't work under 2.2.2.... I mean basic stuff like it can not see classes from your .py file, so an import fails?

It almost likes that in my case 2.2.2 doesn't like the file format generated by IDLE or PythonWin in 2.3.2.

Does someone know if this is a known problem?

Vincent

Jul 18 '05 #1
3 1202
Try deleting the .pyc version of the file... maybe 2.2.2 doesn't
realize that the magic number is wrong and that it should recompile
from the .py source.

Kevin.
"Raaijmakers, Vincent (IndSys, GE Interlogix)" <Vi*****************@ge.com> wrote in message news:<ma*************************************@pyth on.org>...
Sorry for the long header of this mail ;-)

Has anyone experienced modules developed in 2.3.2 (using IDLE and
PythonWin as IDE) don't work under 2.2.2.... I mean basic stuff like it
can not see classes from your .py file, so an import fails?

It almost likes that in my case 2.2.2 doesn't like the file format
generated by IDLE or PythonWin in 2.3.2.

Does someone know if this is a known problem?

Vincent

Jul 18 '05 #2

"Raaijmakers, Vincent (IndSys,GE Interlogix)" <Vi*****************@ge.com>
wrote in message news:ma*************************************@pytho n.org...
Sorry for the long header of this mail ;-)

Has anyone experienced modules developed in 2.3.2 (using IDLE and PythonWin
as IDE) don't work under 2.2.2.... I mean basic stuff like it can not see
classes from your .py file, so an import fails?

It almost likes that in my case 2.2.2 doesn't like the file format generated
by IDLE or PythonWin in 2.3.2.

Does someone know if this is a known problem?

[Response by John Roth]

1. Have you checked the bug tracker?

2. Check the line endings in the .py file. This is a wild guess,
but 2.2 might not be properly recognizing line endings that
2.3 recognizes. PEP 278 added universal newline support
to Python, and it's being used for import and exec(), so
modules that 2.3 finds readable might not be readable by
2.2

John Roth

Vincent
Jul 18 '05 #3
ke***@cazabon.com (Kevin Cazabon) writes:
Try deleting the .pyc version of the file... maybe 2.2.2 doesn't
realize that the magic number is wrong and that it should recompile
from the .py source.


It most certainly should.

Cheers,
mwh

--
I also fondly recall Paris because that's where I learned to
debug Zetalisp while drunk. -- Olin Shivers
Jul 18 '05 #4

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

Similar topics

1
by: Jeremy Fincher | last post by:
I'm having problems compiling Python with socket support (and support for several other libraries) on Solaris 7. When I do the standard ./configure, make, make install dance, I got a fully...
2
by: Olaf Meyer | last post by:
I'm having some problems compiling Python 2.3.3 on HP-UX (B.11.00). I've tried sevral different options for the configure script (e.g. enabling/disabling gcc, aCC) but I always get the same problem...
0
by: Nick Coghlan | last post by:
Anyone playing with the CPython interpreter's new command line switch might have noticed that it only works with top-level modules (i.e. scripts that are directly on sys.path). If the script is...
15
by: Nick Coghlan | last post by:
Python 2.4's -m command line switch only works for modules directly on sys.path. Trying to use it with modules inside packages will fail with a "Module not found" error. This PEP aims to fix that...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
9
by: jsale | last post by:
Hello, I am having a problem with multiple users using my asp.net application - namely that if each user clicks save at the same time, some, or all, of the users crash out. Do I need to do...
3
by: Ryan Riehle | last post by:
Hi All! Trying to upgrade to Apache 2.0.49 and getting compile errors related to mod_auth_pgsql, any clue?: make: Entering directory `/usr/src/httpd-2.0.49'...
1
by: jmalone | last post by:
I have a python script that I need to freeze on AIX 5.1 (customer has AIX and does not want to install Python). The python script is pretty simple (the only things it imports are sys and socket)....
2
by: DotNetGuy | last post by:
I have developed a data access layer in my web site application by using web client software factory and put it in my business module as a service. The question is: Is it a good option to reuse...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.