473,657 Members | 2,515 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pythonwin not loading DLL, should I change extensions by .pyo or pyd?


Python 2.5 doesn't support/load .dll anymore. Is PythonWin 2.5 the
same case?

If a .DLL file is not loading, should I change its extension for it to
work?
What extensions should be now, .pyo, .pyd, etc? which one?
What is the meaning of each extension?

Thanks,
Angelica E-G.
Nov 17 '08 #1
1 2749
En Mon, 17 Nov 2008 13:01:11 -0200, Pekeika
<m.************ *****@umiami.ed uescribió:
Python 2.5 doesn't support/load .dll anymore. Is PythonWin 2.5 the
same case?

If a .DLL file is not loading, should I change its extension for it to
work?
What extensions should be now, .pyo, .pyd, etc? which one?
What is the meaning of each extension?
Python supports being extended using "extension modules"; on Windows they
are dynamic libraries (DLL). Before 2.5, the extensions ".dll" and ".pyd"
were both valid; starting with 2.5, only files ending in ".pyd" are
recognized.
Note that this applies to extension modules *only*, not generic DLLs.
All binary packages targeted to 2.5 use the right name for their extension
modules, at least all that I know of. You don't have to rename anything.

A .pyo file is a totally different thing; it's a compiled Python source
(like a .pyc) but with optimization turned on.

--
Gabriel Genellina

Nov 17 '08 #2

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

Similar topics

6
5575
by: Xerxes | last post by:
Hi, at startup I get three similar error messages about three DLLs: php_sqlite.dll, php_curl.dll and php_gd2.dll. I searched the group for similar problem but the solutions proposed there did not help. - I copied the DLLs to Windows directory - I checked php.ini to make sure the extensions were uncommented and there was an extension_dir directive. One thing I had noticed in the error messages was the direction of
7
3011
by: Martin Bless | last post by:
IMHO PythonWin is great help in developing. How can I do something like: if detect("running on PythonWin"): pass # fake arguments ... else: "proceed normal"
1
2186
by: Henrik Weber | last post by:
Hi. I have tried to add pychecker as an extension to pythonwin. Now I can have pychecker check the source file that is currently open in the editor with a single keypress. If someone is interested, here is how to do it: Create an empty file in your <pythondir>\Lib\site-packages\Pythonwin\pywin directory. Give it a name with .cfg as extension.
4
2437
by: Colin J. Williams | last post by:
PythonWin has been my favourite IDE for quite a while. When one right clicks on a .py file in the Windows Explorer, among the options are Open and Edit. The former is the default and executes Python, with the selected script. The latter activates the PythonWin editor, with the selected script. Since, most frequently, I wish to edit the script, or execute it with the debugger, I tried changing the default to Edit, using the Edit File...
14
2878
by: Jive | last post by:
I've un-installed Python 2.4, re-installed Python 2.3 and PythonWin for 2.3, but it's still broke. When I start PythonWin, sometimes it looks like it is going to be okay. But as soon as I open a .py file, the interactive window grabs the focus and will not let go. I am stumped. Is there something PythonWin uses that I could try re-installing? WxPython maybe?
17
1948
by: Dave Benjamin | last post by:
Hey folks, Why is PythonWin (win32all) still a separate download from a third party? Is it legal, technical, or what? I think it's about time it be part of the standard distribution. There are many useful things that you ought to be able to do without downloading third-party libraries. Terminating a process, for example. Communicating with other applications via a standard, common protocol (COM). We demand these things from our UNIX...
3
2973
by: archaegeo | last post by:
I am getting started in Python, and I have looked on both the stackless page and python.org and cannot find the answer to what I think is a simple problem. If I start the python command line or idle, i can If I start pythonwin I get the following error ....No Module named Stackless Any help?
4
3998
by: steveandleyla | last post by:
I downloaded Python 5.1 for windows so I could run a program. I have to do the following: In PythonWin, select Tools | COM MakePy utility | Microsoft Speech Object Library 5.1). I can't find PythonWin .. Does anybody know what this is. I have the Python shell gui but no "PythonWin".
15
3678
by: pdhb_1 | last post by:
I'm trying to run Apache2.2.6 with php. However, I keep getting a long list of error messages in the log file indicating that includes are failing. For example, "PHP Warning: PHP Startup: Unable to load dynamic library './ext/ php_sybase_ct.dll' - The specified module could not be found.\r\n in Unknown on line 0" I have changed the "extension_dir" line in the php.ini file every way I can think of, including the original:
0
8325
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8844
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8742
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
8621
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
7354
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...
1
6177
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.