Thread: [cgkit-user] DLL load failed (_core module)
Brought to you by:
mbaas
From: Mike W. <mik...@gm...> - 2008-08-15 03:13:22
|
I just installed cgkit with the Windows installer (cgkit-2.0.0alpha8.win32-py2.5.exe). I have Python 2.5.2. I opened IDLE and typed "import cgkit.cgtypes", and got an error (see below). According to the External Dependencies page, there are no deps for cgtypes. Am I wrong, or is the installer build corrupt? IDLE 1.2.2 >>> import cgkit.cgtypes Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import cgkit.cgtypes File "C:\program files\Python25\Lib\site-packages\cgkit\cgtypes.py", line 59, in <module> import _core ImportError: DLL load failed: The specified module could not be found. |
From: Matthias B. <mat...@gm...> - 2008-08-17 09:00:09
|
Mike Wyatt wrote: > I just installed cgkit with the Windows installer > (cgkit-2.0.0alpha8.win32-py2.5.exe). I have Python 2.5.2. > <http://2.5.2.> I opened IDLE and typed "import cgkit.cgtypes", and got > an error (see below). According to the External Dependencies page, > there are no deps for cgtypes. Am I wrong, or is the installer build > corrupt? > > IDLE 1.2.2 > >>> import cgkit.cgtypes > > Traceback (most recent call last): > File "<pyshell#0>", line 1, in <module> > import cgkit.cgtypes > File "C:\program files\Python25\Lib\site-packages\cgkit\cgtypes.py", > line 59, in <module> > import _core > ImportError: DLL load failed: The specified module could not be found. Can you please try the same from a Python shell outside IDLE? (you can use the "Python (command line)" item in the start menu) Then you should see a pop-up window where Windows tells you the name of the DLL it couldn't find (for some reason this is suppressed in IDLE). My guess is that msvcp71.dll couldn't be found. This is the C++ runtime library and I'm assuming that it is already on your system (it's not part of the installer). What version of Windows are you using? Is it a relatively fresh install or do you already have lots of software installed? - Matthias - |
From: Mike W. <mik...@gm...> - 2008-08-17 15:19:19
|
Thanks, Matthias. I copied msvcp71.dll to the cgkit folder under site-packages, and the import now works both in IDLE and from a script. I do have a fresh install of Windows XP, and don't have any versions of Visual Studio installed. That probably explains the lack of that DLL where Python was looking for it. Is this requirement mentioned somewhere in the documentation, or is it assumed that all developers have Visual Studio installed or do C++ development? On Sun, Aug 17, 2008 at 4:00 AM, Matthias Baas <mat...@gm...>wrote: > Mike Wyatt wrote: > > I just installed cgkit with the Windows installer > > (cgkit-2.0.0alpha8.win32-py2.5.exe). I have Python 2.5.2. > > <http://2.5.2.> I opened IDLE and typed "import cgkit.cgtypes", and got > > an error (see below). According to the External Dependencies page, > > there are no deps for cgtypes. Am I wrong, or is the installer build > > corrupt? > > > > IDLE 1.2.2 > > >>> import cgkit.cgtypes > > > > Traceback (most recent call last): > > File "<pyshell#0>", line 1, in <module> > > import cgkit.cgtypes > > File "C:\program files\Python25\Lib\site-packages\cgkit\cgtypes.py", > > line 59, in <module> > > import _core > > ImportError: DLL load failed: The specified module could not be found. > > Can you please try the same from a Python shell outside IDLE? (you can > use the "Python (command line)" item in the start menu) > Then you should see a pop-up window where Windows tells you the name of > the DLL it couldn't find (for some reason this is suppressed in IDLE). > > My guess is that msvcp71.dll couldn't be found. This is the C++ runtime > library and I'm assuming that it is already on your system (it's not > part of the installer). > What version of Windows are you using? Is it a relatively fresh install > or do you already have lots of software installed? > > - Matthias - > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > cgkit-user mailing list > cgk...@li... > https://lists.sourceforge.net/lists/listinfo/cgkit-user > |
From: Matthias B. <mat...@gm...> - 2008-08-19 21:13:18
|
Mike Wyatt wrote: > Thanks, Matthias. I copied msvcp71.dll to the cgkit folder under > site-packages, and the import now works both in IDLE and from a script. > > I do have a fresh install of Windows XP, and don't have any versions of > Visual Studio installed. That probably explains the lack of that DLL > where Python was looking for it. Is this requirement mentioned > somewhere in the documentation, or is it assumed that all developers > have Visual Studio installed or do C++ development? I don't assume that people have Visual Studio installed, I was just assuming that this DLL is present (which may come from elsewhere). From my experience, you end up having that DLL sooner or later if you only installed "enough" software, as chances are one of them was compiled with VC7.1 as well and installed that DLL in system32. This also prevented any licensing issues I may have run into. I found a MS article that said that this DLL is not considered a system component anymore and applications are supposed to ship with it if they need it. So I guess I should have included it (but it's kind of pointless having a *shared* library if every Python module that contains C++ code would have to install its own local copy). Anyway, as Python 2.6/Python 3.0 will be out soon, I have to check if I will still be able to provide Windows binaries at all. From what I have seen so far, they are using a newer compiler and an initial test with Python 2.6b2 has failed (I couldn't even compile a simple "Hello World" extension module. The distutils just abort with an error but there is no useful error message at all. I suppose, it's because I'm missing the right compiler version) - Matthias - |
From: R. D. <re...@gm...> - 2008-08-19 23:31:50
|
hi, note that pygame has support for python 2.6 on windows, so you might want to look at that to see how it's compiled. Unfortunately python 2.6 drops support for older versions of windows... so I'm sticking to 2.5 for the next few years. cu, On Wed, Aug 20, 2008 at 7:13 AM, Matthias Baas <mat...@gm...> wrote: > Mike Wyatt wrote: >> Thanks, Matthias. I copied msvcp71.dll to the cgkit folder under >> site-packages, and the import now works both in IDLE and from a script. >> >> I do have a fresh install of Windows XP, and don't have any versions of >> Visual Studio installed. That probably explains the lack of that DLL >> where Python was looking for it. Is this requirement mentioned >> somewhere in the documentation, or is it assumed that all developers >> have Visual Studio installed or do C++ development? > > I don't assume that people have Visual Studio installed, I was just > assuming that this DLL is present (which may come from elsewhere). From > my experience, you end up having that DLL sooner or later if you only > installed "enough" software, as chances are one of them was compiled > with VC7.1 as well and installed that DLL in system32. > This also prevented any licensing issues I may have run into. > > I found a MS article that said that this DLL is not considered a system > component anymore and applications are supposed to ship with it if they > need it. So I guess I should have included it (but it's kind of > pointless having a *shared* library if every Python module that contains > C++ code would have to install its own local copy). > > Anyway, as Python 2.6/Python 3.0 will be out soon, I have to check if I > will still be able to provide Windows binaries at all. From what I have > seen so far, they are using a newer compiler and an initial test with > Python 2.6b2 has failed (I couldn't even compile a simple "Hello World" > extension module. The distutils just abort with an error but there is no > useful error message at all. I suppose, it's because I'm missing the > right compiler version) > > - Matthias - > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > cgkit-user mailing list > cgk...@li... > https://lists.sourceforge.net/lists/listinfo/cgkit-user > |