473,223 Members | 1,776 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,223 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 1249

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: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.