This worked. Thanks very much Florian.
On 12 October 2010 17:14, Florian Höch <[email protected]> wrote:
> Hi,
>
> if you edit pyinstaller's bindepend.py, and add the following after line
> 113:
>
> 'RASAPI32.DLL':1,
>
> Then delete the 'build' directory before calling Build.py. Does it change
> anything?
>
> Am 12.10.2010 16:23, schrieb pard:
>
> Sample code:
>>
>> import win32ras
>> import time
>>
>> def main():
>> winras_params = ('MTN','*99#')
>> (hras, success) = win32ras.Dial(None, None, winras_params,
>> winras_callback)
>> time.sleep(30)
>> try:
>> print 'Trying to connect'
>> win32ras.HangUp(hras)
>> except Exception, e:
>> print 'Could not connect, closing application.'
>>
>> def winras_callback(hrascon, msg, rascs, error, extendedError):
>> print hrascon, msg, rascs, error, extendedError
>>
>>
>> if __name__ == "__main__":
>> main()
>>
>>
>> This is the output from running the executable.
>>
>> C:\Documents and Settings\mbali\Desktop>test.exe
>> Hello world!
>> Hello world!
>> workpath: C:/DOCUME~1/mbali/LOCALS~1/Temp/_MEI48162/
>> Traceback (most recent call last):
>> File "<string>", line 1, in <module>
>> File "C:\Users\Kabelo\pyinstaller\iu.py", line 436, in importHook
>> File "C:\Users\Kabelo\pyinstaller\iu.py", line 505, in doimport
>> File "C:\Users\Kabelo\pyinstaller\iu.py", line 297, in getmod
>> File "C:\Users\Kabelo\pyinstaller\iu.py", line 109, in getmod
>> ImportError: DLL load failed: The specified procedure could not be found.
>> About to call cleanUp
>>
>
> (PS. Whoops, my debug prints are still in winmain.c - please ignore the
> 'Hello world!', 'workpath: ...' and 'About to call cleanUp' messages)
>
>
>> This is the output of echo%PATH%
>>
>> C:\Documents and Settings\mbali\Desktop>echo %PATH%
>> C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
>> Files\Intel\D
>> MIX;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software
>> Stack\bin\;C:\Program
>> Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program
>> Files\Intel\WiFi\bi
>> n\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program
>> Files\Common
>> Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\Microsoft SQL
>> Server\80\Tool
>> s\BINN;C:\PROGRA~1\ESWN\CLIENT~1\BIN;C:\Program
>> Files\QuickTime\QTSystem\;C:\Pro
>> gram Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Common
>> Files\HP\
>> Digital Imaging\bin;C:\Program Files\HP\Digital Imaging\bin\;C:\Program
>> Files\HP
>> \Digital Imaging\bin\Qt\Qt 4.3.3;
>>
>> Thanks
>>
>> On 12 October 2010 14:58, Martin Zibricky <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> pard pardie píše v Út 12. 10. 2010 v 05:26 -0700:
>> > Hi
>> >
>> > I am getting a dll load error when launching a pyinstaller exe on a
>> > different machine to the one it was created on. It seems that the
>> line
>> > number it is complaining about has the following code:
>> >
>> > import win32ras
>>
>> Could you post a small code example with win32ras which is failing?
>>
>> >
>> > The application was created on a windows vista machine, using:
>> >
>> > python 2.6.5
>> > pyinstaller loaded from the snapshot zip file on pyinstaller
>> > Python26Win page.
>> >
>> > The executable works on the machine it was created on but doesn't
>> on a
>> > different machine running windows xp professional.
>>
>> What is the output of the following command in command prompt?
>>
>> echo %PATH%
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "PyInstaller" group.
>> To post to this group, send email to [email protected]
>> <mailto:[email protected]>.
>>
>> To unsubscribe from this group, send email to
>>
>> [email protected]<pyinstaller%[email protected]>
>>
>> <mailto:pyinstaller%[email protected]<pyinstaller%[email protected]>
>> >.
>>
>> For more options, visit this group at
>> http://groups.google.com/group/pyinstaller?hl=en.
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "PyInstaller" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<pyinstaller%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/pyinstaller?hl=en.
>>
>
> --
> Florian Höch
>
> --
> You received this message because you are subscribed to the Google Groups
> "PyInstaller" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<pyinstaller%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pyinstaller?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.