473,396 Members | 1,655 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.

anybody using python 2.5 that raises error while importing?

there's a dll extension used to be imported with no error under version
2.4.3, but the new python complains that the name of the module can't
be found. seems not mentioned in the official documentation, any work
around to fix the issue without switching back to the old version?

tks..
daniel

Sep 22 '06 #1
5 1257

daniel wrote:
there's a dll extension used to be imported with no error under version
2.4.3, but the new python complains that the name of the module can't
be found. seems not mentioned in the official documentation, any work
around to fix the issue without switching back to the old version?
Did/does its name end in .dll or in .pyd?
Have you procured a new one (necessary when there's a change of minor
version number) and installed it in the right place?
Can you tell us the name of the module, and the path to the DLL/PYD
that is/was imported by Python 2.4?
Have you contacted the author(s) of the module?
Have you installed Python 2.5 in its own directory e.g. c:\python25
(the default)? Python 2.4, same question? Have you uninstalled 2.4?

Regards,
John

Sep 22 '06 #2

John Machin wrote:
daniel wrote:
there's a dll extension used to be imported with no error under version
2.4.3, but the new python complains that the name of the module can't
be found. seems not mentioned in the official documentation, any work
around to fix the issue without switching back to the old version?
thank you for your reply..
Did/does its name end in .dll or in .pyd?
It ends in .dll
Have you procured a new one (necessary when there's a change of minor
version number) and installed it in the right place?
My output of "python -V" shows 2.5c2
Can you tell us the name of the module, and the path to the DLL/PYD
The dll is distributed with a third party library, it claimed to be
compatible with 2.4, It was installed at "d:\" on my box, and the path
had been added to my PYTHONPATH variable.
that is/was imported by Python 2.4?
yep, it works very well with python 2.4, so, I'm just wondering if
there is a fix for using with 2.5
Have you contacted the author(s) of the module?
uh.. not yet, because they clearly mentioned that in the doc.
Have you installed Python 2.5 in its own directory e.g. c:\python25
(the default)? Python 2.4, same question? Have you uninstalled 2.4?
I already uninstalled the version 2.4. and put python25 in drive "d:".
there's probably no problem with my environment variables, maybe I
should check for a updated version of python.

thanks again.

daniel
>
Regards,
John
Sep 23 '06 #3

daniel wrote:
John Machin wrote:
daniel wrote:
there's a dll extension used to be imported with no error under version
2.4.3, but the new python complains that the name of the module can't
be found. seems not mentioned in the official documentation, any work
around to fix the issue without switching back to the old version?
thank you for your reply..
Did/does its name end in .dll or in .pyd?
It ends in .dll
Have you procured a new one (necessary when there's a change of minor
version number) and installed it in the right place?
My output of "python -V" shows 2.5c2
Huh? The question was in effect "Have you obtained a NEW version of the
*DLL*?" This is necessary when you upgrade from Python 2.4 to Python
2.5.
>
Can you tell us the name of the module, and the path to the DLL/PYD
The dll is distributed with a third party library, it claimed to be
compatible with 2.4, It was installed at "d:\" on my box, and the path
had been added to my PYTHONPATH variable.
Do you mean that the full path to the module was
d:\the_module_name.dll
?
>
that is/was imported by Python 2.4?
yep, it works very well with python 2.4, so, I'm just wondering if
there is a fix for using with 2.5
No, you can't use a 2.4-compatible binary module with 2.5.
>
Have you contacted the author(s) of the module?
uh.. not yet, because they clearly mentioned that in the doc.
They clearly mentioned *what* in the doc?

Have they yet announced availibility of a 2.5-supported version of
their software?

Have you installed Python 2.5 in its own directory e.g. c:\python25
(the default)? Python 2.4, same question? Have you uninstalled 2.4?
I already uninstalled the version 2.4. and put python25 in drive "d:".
there's probably no problem with my environment variables, maybe I
should check for a updated version of python.
Huh, again? Firstly, 2.5 final has been released -- you should really
subscribe to the python-announce mailing list so that you don't need to
"check for" major events.
Secondly, upgrading from 2.5c2 to 2.5 is generally a good thing, but it
won't solve your "missing dll" problem.
>From 2.5 onwards, a Python extension module must be named .pyd, it
can't be named .dll. You could try renaming it, but you are likely to
get this error when you try to import it in 2.5:
ImportError: Module use of python24.dll conflicts with this version
of Python.
IOW, the version compatibility problem.

Bottom line: you need to get an updated extension module from the
software supplier.

HTH,
John

Sep 23 '06 #4
thank you so much for your help..
I've got no idea about pyd or dll stuff, started to learn python just
several weeks ago.
so the implementation rules of python extension module must have been
changed, for now, I have to wait for the new release of that module and
switch back to python 2.4 to get my work done.

thanks again..

daniel

Sep 23 '06 #5
Dennis Lee Bieber schrieb:
On 23 Sep 2006 09:24:09 -0700, "daniel" <da*************@gmail.com>
declaimed the following in comp.lang.python:
>so the implementation rules of python extension module must have been
changed, for now, I have to wait for the new release of that module and

No change... For YEARS the rule has been: Changes in the first
decimal place (version m.n.o - if "n" changes, new binaries are needed;
changes in "o" are just bug fixes and don't change the binary interface;
abandon all hope if "m" changes <G>) of a Python version almost ALWAYS
require 3rd party binary extensions to be rebuilt.
You should read the entire thread. He couldn't import the extension
module because it ends in .dll; this was a change introduced in Python
2.5: the module must end in .pyd now. That rule had not been there
for YEARS.

Of course, had he renamed the file, it then would have complained
that he's running a 2.4 extension module in 2.5; *that* rule had
been there for YEARS.

Regards,
Martin
Sep 23 '06 #6

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

Similar topics

1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 402 open ( +6) / 3360 closed ( +6) / 3762 total (+12) Bugs : 861 open ( -3) / 6114 closed (+27) / 6975 total (+24) RFE : 228 open...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 404 open ( +2) / 3376 closed (+16) / 3780 total (+18) Bugs : 860 open ( -1) / 6131 closed (+17) / 6991 total (+16) RFE : 229 open...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 342 open (-38) / 3712 closed (+54) / 4054 total (+16) Bugs : 951 open (-14) / 6588 closed (+33) / 7539 total (+19) RFE : 257 open...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.