Account Options

  1. Sign in
Google Groups Home
« Groups Home
DLL load failed: The specified module could not be found.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  16 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
hearandshout@googlemail.c om  
View profile  
 More options Mar 10 2009, 3:51 pm
From: "hearandsh...@googlemail.com" <hearandsh...@googlemail.com>
Date: Tue, 10 Mar 2009 12:51:47 -0700 (PDT)
Local: Tues, Mar 10 2009 3:51 pm
Subject: DLL load failed: The specified module could not be found.
hi im trying to compile a simple scritp to a onefile exe:

upload.py
http://paste2.org/p/162074

and i get this error when i try to execute the file, or when i try to
upload a file trough the exe. no matter if --onefile is triggered
i have to say that as a .py script everything works fine. trying
py2exe works but i dont like it that way.

here is the error:
http://paste2.org/p/162077


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Giovanni Bajo  
View profile  
 More options Mar 10 2009, 6:35 pm
From: Giovanni Bajo <ra...@develer.com>
Date: Tue, 10 Mar 2009 23:35:56 +0100
Local: Tues, Mar 10 2009 6:35 pm
Subject: Re: [PyInstaller] DLL load failed: The specified module could not be found.
On mar, 2009-03-10 at 12:51 -0700, hearandsh...@googlemail.com wrote:

> hi im trying to compile a simple scritp to a onefile exe:

> upload.py
> http://paste2.org/p/162074

> and i get this error when i try to execute the file, or when i try to
> upload a file trough the exe. no matter if --onefile is triggered
> i have to say that as a .py script everything works fine. trying
> py2exe works but i dont like it that way.
> here is the error:
> http://paste2.org/p/162077

It seems that you're using PyInstaller 1.3 which is very old right now
(try with a fresh checkout of trunk from SVN) and Python 2.6, which is
not yet fully supported.

It should perfectly work with PyInstaller trunk and Python 2.5, but I
can't help at the moment with Python 2.6.
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hearandshout@googlemail.c om  
View profile  
 More options Mar 11 2009, 5:39 am
From: "hearandsh...@googlemail.com" <hearandsh...@googlemail.com>
Date: Wed, 11 Mar 2009 02:39:53 -0700 (PDT)
Local: Wed, Mar 11 2009 5:39 am
Subject: Re: DLL load failed: The specified module could not be found.
ok i got it, it works now :D thank you very much!!

On 10 Mrz., 22:35, Giovanni Bajo <ra...@develer.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Dolan  
View profile  
 More options Mar 11 2009, 7:03 am
From: Stephen Dolan <stephen.do...@gmail.com>
Date: Wed, 11 Mar 2009 11:03:21 +0000
Local: Wed, Mar 11 2009 7:03 am
Subject: Re: [PyInstaller] Re: DLL load failed: The specified module could not be found.
2009/3/10 Giovanni Bajo <ra...@develer.com>:

> On mar, 2009-03-10 at 12:51 -0700, hearandsh...@googlemail.com wrote:
>> hi im trying to compile a simple scritp to a onefile exe:
[snip]

> It seems that you're using PyInstaller 1.3 which is very old right now
> (try with a fresh checkout of trunk from SVN) and Python 2.6, which is
> not yet fully supported.

> It should perfectly work with PyInstaller trunk and Python 2.5, but I
> can't help at the moment with Python 2.6.
> --
> Giovanni Bajo
> Develer S.r.l.
> http://www.develer.com

Hi Giovanni,

Sorry to hijack the thread, but I'm currently using pyinstaller on a
python2.5 based project. Its working great and thanks for all the
effort you've put into it. However, we're planning to move to python
2.6 in the near future, and I'm concerned to hear that it is not
supported. Do you plan to support 2.6 in the near future? Do you know
for sure that pyinstaller will not work with 2.6 ?

Thanks for your help,
Stephen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Giovanni Bajo  
View profile  
 More options Mar 12 2009, 7:46 am
From: Giovanni Bajo <ra...@develer.com>
Date: Thu, 12 Mar 2009 12:46:56 +0100
Local: Thurs, Mar 12 2009 7:46 am
Subject: Re: [PyInstaller] Re: DLL load failed: The specified module could not be found.

On Wed, 2009-03-11 at 11:03 +0000, Stephen Dolan wrote:
> Hi Giovanni,

> Sorry to hijack the thread, but I'm currently using pyinstaller on a
> python2.5 based project. Its working great and thanks for all the
> effort you've put into it. However, we're planning to move to python
> 2.6 in the near future, and I'm concerned to hear that it is not
> supported. Do you plan to support 2.6 in the near future? Do you know
> for sure that pyinstaller will not work with 2.6 ?

Hi Stephen,

I don't see any specific problem with PyInstaller and Python 2.6 on
Linux and the (upcoming) Mac support, but on Windows many things changed
because of the compiler switch and the way binaries are distributed
(with SxS). I can't say for sure whether it will work out of the box or
not, I did not even try.
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Dolan  
View profile  
 More options Mar 12 2009, 7:49 am
From: Stephen Dolan <stephen.do...@gmail.com>
Date: Thu, 12 Mar 2009 11:49:24 +0000
Local: Thurs, Mar 12 2009 7:49 am
Subject: Re: [PyInstaller] Re: DLL load failed: The specified module could not be found.
2009/3/12 Giovanni Bajo <ra...@develer.com>:

> Hi Stephen,

> I don't see any specific problem with PyInstaller and Python 2.6 on
> Linux and the (upcoming) Mac support, but on Windows many things changed
> because of the compiler switch and the way binaries are distributed
> (with SxS). I can't say for sure whether it will work out of the box or
> not, I did not even try.
> --
> Giovanni Bajo
> Develer S.r.l.
> http://www.develer.com

Well then, perhaps I will try it and I will let the list know how I
get on and if I have any issues.

Stephen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Florian Höch  
View profile  
 More options Mar 12 2009, 10:36 am
From: Florian Höch <florian.ho...@gmx.de>
Date: Thu, 12 Mar 2009 07:36:02 -0700 (PDT)
Local: Thurs, Mar 12 2009 10:36 am
Subject: Re: DLL load failed: The specified module could not be found.
Yes, all the WinSxS stuff is quite confusing (atleast for me, not
having too much experience with it either). But I may be able to
provide some pointers, to get PyInstaller (latest trunk) to create
working exe's on Windows with Python 2.6 and maybe 2.6.1 (I might have
more info later)
You first need to apply the patches posted here
http://pyinstaller.python-hosting.com/attachment/ticket/39/PyInstalle...
(maybe sans the python26.dll exclusion, and you may need to apply them
manually since the trunk changed since the patches were posted).
Then, the method I currently use to get working executables with
Python 2.6 is:
- Get the MSVCRT 9 DLLs and accompanying manifest (they are for
example in \WINDOWS\WinSxS in a subfolder if you installed Python 2.6
via the official python.org Windows Installer)
- In the spec file look for the part that reads a.binaries and change
it to a.binaries + ['Microsoft.VC90.CRT.manifest', 'msvcm90.dll',
'msvcp90.dll', 'msvcr90.dll']
  (copy the DLLs from WinSxS or add the full paths to the filenames)
- Now, the executable should be able to run if Python 2.6 was used to
create it.
- For Python 2.6.1, it still won't work - I will post again if I find
something new.

On 12 Mrz., 12:49, Stephen Dolan <stephen.do...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Giovanni Bajo  
View profile  
 More options Mar 12 2009, 5:52 pm
From: Giovanni Bajo <ra...@develer.com>
Date: Thu, 12 Mar 2009 22:52:09 +0100
Local: Thurs, Mar 12 2009 5:52 pm
Subject: Re: [PyInstaller] Re: DLL load failed: The specified module could not be found.
On gio, 2009-03-12 at 07:36 -0700, Florian Höch wrote:

I am told that it should work if you copy the files into a directory
next to the executable with the same name it has within the \Windows
\WinSxS folder. I think it's called "Microsoft.VC90.CRT".

If so, try creating a structure like this:

    YourProgram.exe     <- made by PyInstaller
    Microsoft.VC90.CRT\
        msvcr90.dll
        msvcp90.dll
        etc.

Let me know if it works like this.
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Florian Höch  
View profile  
 More options Mar 13 2009, 7:47 am
From: Florian Höch <florian.ho...@gmx.de>
Date: Fri, 13 Mar 2009 04:47:58 -0700 (PDT)
Local: Fri, Mar 13 2009 7:47 am
Subject: Re: DLL load failed: The specified module could not be found.
Thanks, now I found what I was missing - the executable also needs an
updated manifest which references the CRT. Then, it also works with
Python 2.6.1 (for Python 2.6 the changed manifest is not needed)
Summary so far for me:

- My method above: works with Python 2.6 (both --onedir and --
onefile), --onedir also works with Python 2.6.1, but not --onefile
- My method above + assembly next to the executable (DLLs +
Microsoft.VC90.CRT.manifest, either in subfolder called
Microsoft.VC90.CRT or loose files): --onefile also works with Python
2.6.1 (even though it is no longer really a onefile deployment - but I
certainly don't blame pyinstaller)

I also found this http://bugs.python.org/issue4566 I didn't know about
before - so maybe we can hope that a real fix for those issues will be
incorporated into Python itself in a next version.

Regards,

Florian Höch

On 12 Mrz., 22:52, Giovanni Bajo <ra...@develer.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Florian Höch  
View profile  
 More options Mar 13 2009, 10:03 am
From: Florian Höch <florian.ho...@gmx.de>
Date: Fri, 13 Mar 2009 07:03:19 -0700 (PDT)
Local: Fri, Mar 13 2009 10:03 am
Subject: Re: DLL load failed: The specified module could not be found.
sorry, I just noticed some typos in my above post. the line in the
specfile should read:

a.binaries + [('Microsoft.VC90.CRT.manifest',
'Microsoft.VC90.CRT.manifest', 'BINARY'), ('msvcm90.dll',
'msvcm90.dll', 'BINARY'),
('msvcp90.dll', 'msvcp90.dll', 'BINARY'), ('msvcr90.dll',
'msvcr90.dll', 'BINARY')]

On 12 Mrz., 15:36, Florian Höch <florian.ho...@gmx.de> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Giovanni Bajo  
View profile  
 More options Mar 14 2009, 9:53 am
From: Giovanni Bajo <ra...@develer.com>
Date: Sat, 14 Mar 2009 14:53:58 +0100
Local: Sat, Mar 14 2009 9:53 am
Subject: Re: [PyInstaller] Re: DLL load failed: The specified module could not be found.
On ven, 2009-03-13 at 04:47 -0700, Florian Höch wrote:

not required anymore in Python 2.6.2. This will leave Python 2.6.1 as
the only version requiring this workaround -- in which case, I prefer to
simply declare it unsupported and bail out when running Configure.py
against it.

On the other hand, I would like to incorporate your fixes for Python 2.6
but we need to find a better way of doing it.

First question: if you *don't* add the msvc*90.dll and the manifest to
the a.binaries list, but you simply copy them like this:

    YourProgram.exe     <- made by PyInstaller
    Microsoft.VC90.CRT\
        msvcr90.dll
        msvcp90.dll
        etc.

so *without* copying the manifest, does it work?
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Florian Höch  
View profile  
 More options Mar 14 2009, 11:36 am
From: Florian Höch <florian.ho...@gmx.de>
Date: Sat, 14 Mar 2009 08:36:04 -0700 (PDT)
Local: Sat, Mar 14 2009 11:36 am
Subject: Re: DLL load failed: The specified module could not be found.
Yes, I agree that it doesn't make much sense to fix it in pyinstaller
if it's going to be fixed (hopefully ;)) in python itself anyway.

Regarding your question: No, unfortunately the manifest seems to be
needed, otherwise the exe will show an error popup right after launch
('application configuration incorrect') and close.

On 14 Mrz., 14:53, Giovanni Bajo <ra...@develer.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Florian Höch  
View profile  
 More options Mar 17 2009, 7:50 am
From: Florian Höch <florian.ho...@gmx.de>
Date: Tue, 17 Mar 2009 04:50:52 -0700 (PDT)
Local: Tues, Mar 17 2009 7:50 am
Subject: Re: DLL load failed: The specified module could not be found.
Just a quick update, I've started working on some patches which should
fix assembly dependencies on windows in general. I think I may be
ready in a few days. My current outline of changes:

- add manifest embedding/extraction support to pyinstaller
(manifest.py - provides UpdateManifest and GetManifest methods).
Status: 50% done.
- add general resource embedding/extraction support to pyinstaller
(resource.py - provides AddResource and GetResource methods, used by
manifest.py). Status: 50% done.
- add manifest query code to bindepend.py, to look inside binary
dependencies, extract the manifest if any, get the dependant
assemblies if any by looking at the manifest and searching for the
assembly in WinSxS folder, then adding the assembly files as BINARY.
Status: just started working on it.

On 14 Mrz., 16:36, Florian Höch <florian.ho...@gmx.de> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Giovanni Bajo  
View profile  
 More options Mar 17 2009, 8:57 am
From: Giovanni Bajo <ra...@develer.com>
Date: Tue, 17 Mar 2009 13:57:08 +0100
Local: Tues, Mar 17 2009 8:57 am
Subject: Re: [PyInstaller] Re: DLL load failed: The specified module could not be found.
On 3/17/2009 12:50 PM, Florian Höch wrote:

> Just a quick update, I've started working on some patches which should
> fix assembly dependencies on windows in general. I think I may be
> ready in a few days. My current outline of changes:

> - add manifest embedding/extraction support to pyinstaller
> (manifest.py - provides UpdateManifest and GetManifest methods).
> Status: 50% done.
> - add general resource embedding/extraction support to pyinstaller
> (resource.py - provides AddResource and GetResource methods, used by
> manifest.py). Status: 50% done.
> - add manifest query code to bindepend.py, to look inside binary
> dependencies, extract the manifest if any, get the dependant
> assemblies if any by looking at the manifest and searching for the
> assembly in WinSxS folder, then adding the assembly files as BINARY.
> Status: just started working on it.

Well, this seems GREAT progress.

Let me know if you want commit access to PyInstaller's SVN so that you
can develop it directly there.
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Florian Höch  
View profile  
 More options Mar 19 2009, 5:29 pm
From: Florian Höch <florian.ho...@gmx.de>
Date: Thu, 19 Mar 2009 14:29:59 -0700 (PDT)
Local: Thurs, Mar 19 2009 5:29 pm
Subject: Re: DLL load failed: The specified module could not be found.
Thanks for the kind offer, but let's see if I can get my patch out for
some users to test on the weekend :)
What I currently have seems to be working nice (tested with Python 2.5
and 2.6) on my WinXP sys (and also the Windows 7 Beta, still need to
check Vista).

On 17 Mrz., 13:57, Giovanni Bajo <ra...@develer.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Florian Höch  
View profile  
 More options Mar 21 2009, 12:48 pm
From: Florian Höch <florian.ho...@gmx.de>
Date: Sat, 21 Mar 2009 09:48:06 -0700 (PDT)
Local: Sat, Mar 21 2009 12:48 pm
Subject: Re: DLL load failed: The specified module could not be found.
Ok, I've added my patch to the existing ticket here
http://pyinstaller.python-hosting.com/ticket/39 because it also
incorporates jkp's original patch.
It would be great if some users could test it :)

On 19 Mrz., 22:29, Florian Höch <florian.ho...@gmx.de> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »