Probleme mit nicht gefundener .dll

Wenn du dir nicht sicher bist, in welchem der anderen Foren du die Frage stellen sollst, dann bist du hier im Forum für allgemeine Fragen sicher richtig.
Antworten
JohnR
User
Beiträge: 23
Registriert: Freitag 25. Juni 2010, 19:42

Hallo

Ich habe bisher mit Python zwar nicht allzuviel am Hut gehabt, aber ich hoffe das mir hier auch als newbie geholfen wird.

Grundsätzlich

Ich nutze recht häufig den freien auf Phyton basierenden Messenger "Torchat", vermisse aber bei diesen eine einfache LogFunktion (nach dem Motto das habe ich dir doch vorige Woche geschrieben, nein hast du nicht).

Also dachte ich mir, Python (Basics) wolltest du schon immer mal lernen, also bastle Dir da doch was.

Leider scheitere ich bisweilen daran die binarys zu erstellen.

In der Source ist dazu schon eine make_windows_binary.py enthalten.

Wenn ich diese aufrief bekam ich bisher immer die Meldung das die .dll MSVCP90.dll nicht gefunden wurde.

Also habe ich mir diese .dll per http://www.dll-files.com heruntergeladen und in /windows/system32 gespeichert.

Jetzt bekomme ich aber das und kann damit nichts anfangen, gibt es unterschiedliche .dll`s mit den gleichen Namen, habe ich womöglich eine falsche ?


MSVCP90.dll - C:\WINDOWS\system32\MSVCP90.dll
1 Datei(en) kopiert.
Das System kann die angegebene Datei nicht finden.
1 Datei(en) kopiert.



hier etwas ausführlicher

Code: Alles auswählen

*** binary dependencies ***
Your executable(s) also depend on these dlls which are not included,
you may or may not need to distribute them.

Make sure you have the license if you distribute any of them, and
make sure you don't distribute files belonging to the operating system.

   RPCRT4.dll - C:\WINDOWS\system32\RPCRT4.dll
   OLEAUT32.dll - C:\WINDOWS\system32\OLEAUT32.dll
   USER32.dll - C:\WINDOWS\system32\USER32.dll
   SHELL32.dll - C:\WINDOWS\system32\SHELL32.dll
   KERNEL32.dll - C:\WINDOWS\system32\KERNEL32.dll
   COMDLG32.dll - C:\WINDOWS\system32\COMDLG32.dll
   WSOCK32.dll - C:\WINDOWS\system32\WSOCK32.dll
   COMCTL32.dll - C:\WINDOWS\system32\COMCTL32.dll
   ADVAPI32.dll - C:\WINDOWS\system32\ADVAPI32.dll
   WS2_32.dll - C:\WINDOWS\system32\WS2_32.dll
   WINSPOOL.DRV - C:\WINDOWS\system32\WINSPOOL.DRV
   GDI32.dll - C:\WINDOWS\system32\GDI32.dll
   gdiplus.dll - C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\gdiplus.dll

   ole32.dll - C:\WINDOWS\system32\ole32.dll
   WINMM.dll - C:\WINDOWS\system32\WINMM.dll
   MSVCP90.dll - C:\WINDOWS\system32\MSVCP90.dll
        1 Datei(en) kopiert.
Das System kann die angegebene Datei nicht finden.
        1 Datei(en) kopiert.
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2010
UPX 3.05w       Markus Oberhumer, Laszlo Molnar & John Reiser   Apr 27th 2010

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
    107008 ->     46592   43.54%    win32/pe     _ctypes.pyd
    287232 ->    121856   42.42%    win32/pe     _hashlib.pyd
     48128 ->     21504   44.68%    win32/pe     _socket.pyd
    724480 ->    308736   42.61%    win32/pe     _ssl.pyd
     71680 ->     35328   49.29%    win32/pe     bz2.pyd
   1700352 ->    886727   52.15%    win32/pe     gdiplus.dll
   2286080 ->   1011712   44.26%    win32/pe     python27.dll
     11776 ->      7680   65.22%    win32/pe     select.pyd
   1439712 ->   1431520   99.43%    win32/pe     torchat.exe
    688128 ->    264704   38.47%    win32/pe     unicodedata.pyd
    258352 ->    101168   39.16%    win32/pe     unicows.dll
    966144 ->    153600   15.90%    win32/pe     wx._controls_.pyd
    981504 ->    187392   19.09%    win32/pe     wx._core_.pyd
    746496 ->    139264   18.66%    win32/pe     wx._gdi_.pyd
    674816 ->    119296   17.68%    win32/pe     wx._misc_.pyd
    670720 ->    105472   15.73%    win32/pe     wx._windows_.pyd
    122368 ->     57856   47.28%    win32/pe     wxbase28uh_net_vc.dll
   1300480 ->    653312   50.24%    win32/pe     wxbase28uh_vc.dll
    727552 ->    303616   41.73%    win32/pe     wxmsw28uh_adv_vc.dll
   3164672 ->   1430528   45.20%    win32/pe     wxmsw28uh_core_vc.dll
    479744 ->    174592   36.39%    win32/pe     wxmsw28uh_html_vc.dll
   --------------------   ------   -----------   -----------
  17457424 ->   7562455   43.32%                 [ 21 files ]

Packed 21 files.
dist\bz2.pyd
dist\gdiplus.dll
dist\python27.dll
dist\select.pyd
dist\torchat.exe
dist\unicodedata.pyd
dist\unicows.dll
dist\wx._controls_.pyd
dist\wx._core_.pyd
dist\wx._gdi_.pyd
dist\wx._misc_.pyd
dist\wx._windows_.pyd
dist\wxbase28uh_net_vc.dll
dist\wxbase28uh_vc.dll
dist\wxmsw28uh_adv_vc.dll
dist\wxmsw28uh_core_vc.dll
dist\wxmsw28uh_html_vc.dll
dist\_ctypes.pyd
dist\_hashlib.pyd
dist\_socket.pyd
dist\_ssl.pyd
        1 Datei(en) kopiert.

C:\Python27\torchat-source-0.9.9.287\src>

Sicher kann ich nicht ausschliessen das ich noch den einen oder anderen Fehler drin habe, aber beim kompilieren wird nicht wirklich etwas angezeigt, und eigentlich müßten doch die Dateien erstellt werden :?:

mit freundlichen Gruß

John
Mad-Marty
User
Beiträge: 317
Registriert: Mittwoch 18. Januar 2006, 19:46

Python selbst ist gegen Microsoft Visual C Plus Plus (MSVCP90.dll, ...) gelinkt.

Daher brauchst du diese auch im einen Loader (py2exe in dem fall) bauen zu lassen.

Und wieso versuchst du das ganze mit Python 2.7 Alpha/Beta/RC?
Nimm eine 2.6 und melde dich dann wieder.
JohnR
User
Beiträge: 23
Registriert: Freitag 25. Juni 2010, 19:42

o.k. habe jetzt die 2.7 deinstalliert

dann die 2.6 installiert, mit dem dazugehörigem wxpython und py2exe.

das Ergebnis ist aber leider das gleiche

Code: Alles auswählen

*** binary dependencies ***
Your executable(s) also depend on these dlls which are not included,
you may or may not need to distribute them.

Make sure you have the license if you distribute any of them, and
make sure you don't distribute files belonging to the operating system.

   OLEAUT32.dll - C:\WINDOWS\system32\OLEAUT32.dll
   USER32.dll - C:\WINDOWS\system32\USER32.dll
   COMCTL32.dll - C:\WINDOWS\system32\COMCTL32.dll
   SHELL32.dll - C:\WINDOWS\system32\SHELL32.dll
   ole32.dll - C:\WINDOWS\system32\ole32.dll
   WINMM.dll - C:\WINDOWS\system32\WINMM.dll
   WSOCK32.dll - C:\WINDOWS\system32\WSOCK32.dll
   COMDLG32.dll - C:\WINDOWS\system32\COMDLG32.dll
   ADVAPI32.dll - C:\WINDOWS\system32\ADVAPI32.dll
   gdiplus.dll - C:\Python26\lib\site-packages\wx-2.8-msw-ansi\wx\gdiplus.dll
   WS2_32.dll - C:\WINDOWS\system32\WS2_32.dll
   WINSPOOL.DRV - C:\WINDOWS\system32\WINSPOOL.DRV
   GDI32.dll - C:\WINDOWS\system32\GDI32.dll
   RPCRT4.dll - C:\WINDOWS\system32\RPCRT4.dll
   KERNEL32.dll - C:\WINDOWS\system32\KERNEL32.dll
   MSVCP90.dll - C:\WINDOWS\system32\MSVCP90.dll
        1 Datei(en) kopiert.
Das System kann die angegebene Datei nicht finden.
        1 Datei(en) kopiert.
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2010
UPX 3.05w       Markus Oberhumer, Laszlo Molnar & John Reiser   Apr 27th 2010

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
     73728 ->     33280   45.14%    win32/pe     _ctypes.pyd
    311808 ->    130048   41.71%    win32/pe     _hashlib.pyd
     39936 ->     18432   46.15%    win32/pe     _socket.pyd
    645120 ->    270848   41.98%    win32/pe     _ssl.pyd
     71168 ->     35328   49.64%    win32/pe     bz2.pyd
   1700352 ->    886727   52.15%    win32/pe     gdiplus.dll
   2134016 ->    953344   44.67%    win32/pe     python26.dll
     11776 ->      7680   65.22%    win32/pe     select.pyd
   1306290 ->   1298098   99.37%    win32/pe     torchat.exe
    585728 ->    240128   41.00%    win32/pe     unicodedata.pyd
    258352 ->    101168   39.16%    win32/pe     unicows.dll
    965632 ->    153600   15.91%    win32/pe     wx._controls_.pyd
    979968 ->    187392   19.12%    win32/pe     wx._core_.pyd
    745984 ->    138752   18.60%    win32/pe     wx._gdi_.pyd
    674304 ->    119296   17.69%    win32/pe     wx._misc_.pyd
    670208 ->    105472   15.74%    win32/pe     wx._windows_.pyd
    118784 ->     56832   47.84%    win32/pe     wxbase28h_net_vc.dll
   1220608 ->    635392   52.06%    win32/pe     wxbase28h_vc.dll
    717824 ->    301568   42.01%    win32/pe     wxmsw28h_adv_vc.dll
   3092992 ->   1424896   46.07%    win32/pe     wxmsw28h_core_vc.dll
    475648 ->    174592   36.71%    win32/pe     wxmsw28h_html_vc.dll
   --------------------   ------   -----------   -----------
  16800226 ->   7272873   43.29%                 [ 21 files ]

Packed 21 files.
dist\bz2.pyd
dist\gdiplus.dll
dist\python26.dll
dist\select.pyd
dist\torchat.exe
dist\unicodedata.pyd
dist\unicows.dll
dist\wx._controls_.pyd
dist\wx._core_.pyd
dist\wx._gdi_.pyd
dist\wx._misc_.pyd
dist\wx._windows_.pyd
dist\wxbase28h_net_vc.dll
dist\wxbase28h_vc.dll
dist\wxmsw28h_adv_vc.dll
dist\wxmsw28h_core_vc.dll
dist\wxmsw28h_html_vc.dll
dist\_ctypes.pyd
dist\_hashlib.pyd
dist\_socket.pyd
dist\_ssl.pyd
        1 Datei(en) kopiert.

C:\Python26\torchat-source-0.9.9.287\src>
Benutzeravatar
/me
User
Beiträge: 3555
Registriert: Donnerstag 25. Juni 2009, 14:40
Wohnort: Bonn

JohnR hat geschrieben:dann die 2.6 installiert, mit dem dazugehörigem wxpython und py2exe.

das Ergebnis ist aber leider das gleiche
Ich kann nur raten, da ich dieses Gefummel mit dem Erstellen einer EXE-Datei nie brauche: Hat die DLL eventuell weitere Abhängigkeiten?
JohnR
User
Beiträge: 23
Registriert: Freitag 25. Juni 2010, 19:42

o.k. jetzt sieht es schon etwas besser aus

notwendig ist aber wohl Python 2.5

Code: Alles auswählen

Therefore you will need Python-2.5 and wxPython-2.8 installed.
hier hätte ich wohl genauer lesen sollen :?

Die Ausgabe sieht jetzt auch gut aus, und es wird auch ein Ordner Binarys erzeugt in dem auch alle Dateien vorhanden sind, welcher aber wenn der Skript das Ende erreicht wieder verschwindet :?:

Kann mir einer sagen was ich hier offensichtlich nicht begreife ?

hier nochmal die Ausgabe

Code: Alles auswählen


C:\Python25\torchat-source-0.9.9.287\src>rem doubelclick this on xp to get a com
mandline in the current dir

C:\Python25\torchat-source-0.9.9.287\src>cmd
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Python25\torchat-source-0.9.9.287\src>make_windows_binary.py
running py2exe
creating C:\Python25\torchat-source-0.9.9.287\src\build
creating C:\Python25\torchat-source-0.9.9.287\src\build\bdist.win32
creating C:\Python25\torchat-source-0.9.9.287\src\build\bdist.win32\winexe
creating C:\Python25\torchat-source-0.9.9.287\src\build\bdist.win32\winexe\colle
ct-2.5
creating C:\Python25\torchat-source-0.9.9.287\src\build\bdist.win32\winexe\bundl
e-2.5
creating C:\Python25\torchat-source-0.9.9.287\src\build\bdist.win32\winexe\temp
creating C:\Python25\torchat-source-0.9.9.287\src\dist
*** searching for required modules ***
*** parsing results ***
*** finding dlls needed ***
*** create binaries ***
*** byte compile python files ***
creating C:\Python25\torchat-source-0.9.9.287\src\build\bdist.win32\winexe\colle
ct-2.5\ctypes
creating C:\Python25\torchat-source-0.9.9.287\src\build\bdist.win32\winexe\colle
ct-2.5\encodings
creating C:\Python25\torchat-source-0.9.9.287\src\build\bdist.win32\winexe\colle
ct-2.5\wx
creating C:\Python25\torchat-source-0.9.9.287\src\build\bdist.win32\winexe\colle
ct-2.5\SocksiPy
creating C:\Python25\torchat-source-0.9.9.287\src\build\bdist.win32\winexe\colle
ct-2.5\translations
*** copy extensions ***
copying C:\Python25\DLLs\_ctypes.pyd -> C:\Python25\torchat-source-0.9.9.287\src
\dist
copying C:\Python25\DLLs\_hashlib.pyd -> C:\Python25\torchat-source-0.9.9.287\sr
c\dist
copying C:\Python25\DLLs\_socket.pyd -> C:\Python25\torchat-source-0.9.9.287\src
\dist
copying C:\Python25\DLLs\_ssl.pyd -> C:\Python25\torchat-source-0.9.9.287\src\di
st
copying C:\Python25\DLLs\bz2.pyd -> C:\Python25\torchat-source-0.9.9.287\src\dis
t
copying C:\Python25\DLLs\select.pyd -> C:\Python25\torchat-source-0.9.9.287\src\
dist
copying C:\Python25\DLLs\unicodedata.pyd -> C:\Python25\torchat-source-0.9.9.287
\src\dist
copying C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_controls_.pyd -> C:
\Python25\torchat-source-0.9.9.287\src\dist\wx._controls_.pyd
copying C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_core_.pyd -> C:\Pyt
hon25\torchat-source-0.9.9.287\src\dist\wx._core_.pyd
copying C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi_.pyd -> C:\Pyth
on25\torchat-source-0.9.9.287\src\dist\wx._gdi_.pyd
copying C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_misc_.pyd -> C:\Pyt
hon25\torchat-source-0.9.9.287\src\dist\wx._misc_.pyd
copying C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_windows_.pyd -> C:\
Python25\torchat-source-0.9.9.287\src\dist\wx._windows_.pyd
*** copy dlls ***
copying C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\wxmsw28uh_core_vc.dl
l -> C:\Python25\torchat-source-0.9.9.287\src\dist
copying C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\wxmsw28uh_html_vc.dl
l -> C:\Python25\torchat-source-0.9.9.287\src\dist
copying C:\WINDOWS\system32\python25.dll -> C:\Python25\torchat-source-0.9.9.287
\src\dist
copying C:\WINDOWS\system32\MSVCR71.dll -> C:\Python25\torchat-source-0.9.9.287\
src\dist
copying C:\Python25\MSVCR71.dll -> C:\Python25\torchat-source-0.9.9.287\src\dist

copying C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\wxbase28uh_vc.dll ->
 C:\Python25\torchat-source-0.9.9.287\src\dist
copying C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\wxbase28uh_net_vc.dl
l -> C:\Python25\torchat-source-0.9.9.287\src\dist
copying C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\wxmsw28uh_adv_vc.dll
 -> C:\Python25\torchat-source-0.9.9.287\src\dist
copying C:\Python25\lib\site-packages\py2exe\run_w.exe -> C:\Python25\torchat-so
urce-0.9.9.287\src\dist\torchat.exe

*** binary dependencies ***
Your executable(s) also depend on these dlls which are not included,
you may or may not need to distribute them.

Make sure you have the license if you distribute any of them, and
make sure you don't distribute files belonging to the operating system.

   OLEAUT32.dll - C:\WINDOWS\system32\OLEAUT32.dll
   USER32.dll - C:\WINDOWS\system32\USER32.dll
   SHELL32.dll - C:\WINDOWS\system32\SHELL32.dll
   ole32.dll - C:\WINDOWS\system32\ole32.dll
   comdlg32.dll - C:\WINDOWS\system32\comdlg32.dll
   WSOCK32.dll - C:\WINDOWS\system32\WSOCK32.dll
   COMCTL32.dll - C:\WINDOWS\system32\COMCTL32.dll
   ADVAPI32.dll - C:\WINDOWS\system32\ADVAPI32.dll
   MSVCP71.dll - C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\MSVCP71.dll

   WS2_32.dll - C:\WINDOWS\system32\WS2_32.dll
   WINSPOOL.DRV - C:\WINDOWS\system32\WINSPOOL.DRV
   GDI32.dll - C:\WINDOWS\system32\GDI32.dll
   WINMM.dll - C:\WINDOWS\system32\WINMM.dll
   KERNEL32.dll - C:\WINDOWS\system32\KERNEL32.dll
   gdiplus.dll - C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\gdiplus.dll

   RPCRT4.dll - C:\WINDOWS\system32\RPCRT4.dll
        1 Datei(en) kopiert.
        1 Datei(en) kopiert.
        1 Datei(en) kopiert.
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2010
UPX 3.05w       Markus Oberhumer, Laszlo Molnar & John Reiser   Apr 27th 2010

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
     81920 ->     30208   36.88%    win32/pe     _ctypes.pyd
    323584 ->    124416   38.45%    win32/pe     _hashlib.pyd
     53248 ->     18944   35.58%    win32/pe     _socket.pyd
    655360 ->    265728   40.55%    win32/pe     _ssl.pyd
     77824 ->     32768   42.11%    win32/pe     bz2.pyd
   1700352 ->    886727   52.15%    win32/pe     gdiplus.dll
    499712 ->    303616   60.76%    win32/pe     msvcp71.dll
    348160 ->    165888   47.65%    win32/pe     MSVCR71.dll
   2109440 ->    887808   42.09%    win32/pe     python25.dll
      7680 ->      5632   73.33%    win32/pe     select.pyd
   1120921 ->   1113241   99.31%    win32/pe     torchat.exe
    475136 ->    200192   42.13%    win32/pe     unicodedata.pyd
    258352 ->    101168   39.16%    win32/pe     unicows.dll
    942080 ->    143360   15.22%    win32/pe     wx._controls_.pyd
    983040 ->    182272   18.54%    win32/pe     wx._core_.pyd
    741376 ->    132096   17.82%    win32/pe     wx._gdi_.pyd
    663552 ->    113152   17.05%    win32/pe     wx._misc_.pyd
    655360 ->     98304   15.00%    win32/pe     wx._windows_.pyd
    135168 ->     56832   42.05%    win32/pe     wxbase28uh_net_vc.dll
   1327104 ->    658432   49.61%    win32/pe     wxbase28uh_vc.dll
    724992 ->    300544   41.45%    win32/pe     wxmsw28uh_adv_vc.dll
   3186688 ->   1434112   45.00%    win32/pe     wxmsw28uh_core_vc.dll
    483328 ->    172032   35.59%    win32/pe     wxmsw28uh_html_vc.dll
   --------------------   ------   -----------   -----------
  17554377 ->   7427472   42.31%                 [ 23 files ]

Packed 23 files.
dist\bz2.pyd
dist\gdiplus.dll
dist\msvcp71.dll
dist\MSVCR71.dll
dist\python25.dll
dist\select.pyd
dist\torchat.exe
dist\unicodedata.pyd
dist\unicows.dll
dist\wx._controls_.pyd
dist\wx._core_.pyd
dist\wx._gdi_.pyd
dist\wx._misc_.pyd
dist\wx._windows_.pyd
dist\wxbase28uh_net_vc.dll
dist\wxbase28uh_vc.dll
dist\wxmsw28uh_adv_vc.dll
dist\wxmsw28uh_core_vc.dll
dist\wxmsw28uh_html_vc.dll
dist\_ctypes.pyd
dist\_hashlib.pyd
dist\_socket.pyd
dist\_ssl.pyd
        1 Datei(en) kopiert.

C:\Python25\torchat-source-0.9.9.287\src>
ms4py
User
Beiträge: 1178
Registriert: Montag 19. Januar 2009, 09:37

Vermutlich wird ein build und ein dist Ordner erzeugt, und der build wieder gelöscht?!

(Und im dist befindet sich dann die erzeugten Dateien...)
„Lieber von den Richtigen kritisiert als von den Falschen gelobt werden.“
Gerhard Kocher

http://ms4py.org/
JohnR
User
Beiträge: 23
Registriert: Freitag 25. Juni 2010, 19:42

letzte Zeilen der der make_windows_binary.py

Code: Alles auswählen

deleteDirectory("dist")
deleteDirectory("build")

time.sleep(2)
Mir verschließt sich zwar der Sinn aber es erklärt das verschwinden des Ordners.

Wenn ich nun die die deleteDirectory Zeilen auskommentiere und die originale Source ohne jede Veränderung kompiliere finden sich im Ordner Source alle erforderlichen Dateien.

Wenn ich die Torchat.exe aber starten will bekomme ich eine Fehlermeldung mit verweis auf eine .log Datei.

Code: Alles auswählen

Traceback (most recent call last):
  File "torchat.py", line 54, in <module>
  File "torchat.py", line 26, in main
  File "config.pyc", line 334, in main
  File "config.pyc", line 152, in readConfig
  File "config.pyc", line 137, in getDataDir
  File "shutil.pyc", line 80, in copy
  File "shutil.pyc", line 46, in copyfile
IOError: [Errno 2] No such file or directory: 'Tor\\tor.exe'
Beim ersten start jedenfalls....

Ab dem zweiten Start kommt dann keinerlei Fehlermeldung mehr, und es wird auch ein Prozess Namens Torchat.exe ausgeführt, aber von einer grafischen Oberfläche oder ähnlichen fehlt jede Spur.

Gruß John
Mad-Marty
User
Beiträge: 317
Registriert: Mittwoch 18. Januar 2006, 19:46

JohnR hat geschrieben:letzte Zeilen der der make_windows_binary.py

Code: Alles auswählen

deleteDirectory("dist")
deleteDirectory("build")

time.sleep(2)
Mir verschließt sich zwar der Sinn aber es erklärt das verschwinden des Ordners.

Wenn ich nun die die deleteDirectory Zeilen auskommentiere und die originale Source ohne jede Veränderung kompiliere finden sich im Ordner Source alle erforderlichen Dateien.

Wenn ich die Torchat.exe aber starten will bekomme ich eine Fehlermeldung mit verweis auf eine .log Datei.
Aha, und schonmal auf die VÖLLIG ABWEGIGE IDEE GEKOMMEN dir die logdatei anzusehen?
:K
Den dist ordner zu löschen kann durchaus sinn machen, wenn z.b. der dist umkopiert wurde, ein innosetup erzeugt wurde oder ähnliches.
JohnR hat geschrieben:

Code: Alles auswählen

Traceback (most recent call last):
  File "torchat.py", line 54, in <module>
  File "torchat.py", line 26, in main
  File "config.pyc", line 334, in main
  File "config.pyc", line 152, in readConfig
  File "config.pyc", line 137, in getDataDir
  File "shutil.pyc", line 80, in copy
  File "shutil.pyc", line 46, in copyfile
IOError: [Errno 2] No such file or directory: 'Tor\\tor.exe'
Beim ersten start jedenfalls....

Ab dem zweiten Start kommt dann keinerlei Fehlermeldung mehr, und es wird auch ein Prozess Namens Torchat.exe ausgeführt, aber von einer grafischen Oberfläche oder ähnlichen fehlt jede Spur.

Gruß John
Wahrscheinlich ist der Wrapper nicht ok und hängt irgendwo.


Wie wärs wenn du dir einfach mal ein paar examples mit py2exe anschaust und ein paar tests machst.
Bei großen abhängigkeiten ist ein Bundlen nicht trivial.
JohnR
User
Beiträge: 23
Registriert: Freitag 25. Juni 2010, 19:42

o.k. das testen der samples bringt ähnliche Fehler.

Deinstallieren und wieder Installieren bringt auch nicht wirklich was.

Kann es sein das es daran liegt das ich die ganze Python Umgebung im XP-Modus von Windows 7 installiert habe (unter Windows 7 Ultimate 64bit lies es sich leider nicht installieren)?
ms4py
User
Beiträge: 1178
Registriert: Montag 19. Januar 2009, 09:37

JohnR hat geschrieben: (unter Windows 7 Ultimate 64bit lies es sich leider nicht installieren)?
Das geht im Normalfall! Was hat denn dabei nicht geklappt?
(Das ist vermutlich die Ursache...)
„Lieber von den Richtigen kritisiert als von den Falschen gelobt werden.“
Gerhard Kocher

http://ms4py.org/
JohnR
User
Beiträge: 23
Registriert: Freitag 25. Juni 2010, 19:42

o.k. wenn ich den Pfad anstelle C:/python25 auf Programme(x86) erzwinge geht es.

Also jetzt das ganze in Windows 7

Code: Alles auswählen

C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src>make_windows_binary
.py
running py2exe
creating C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\build
creating C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\build\bdis
t.win32
creating C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\build\bdis
t.win32\winexe
creating C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\build\bdis
t.win32\winexe\collect-2.5
creating C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\build\bdis
t.win32\winexe\bundle-2.5
creating C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\build\bdis
t.win32\winexe\temp
creating C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\dist
*** searching for required modules ***
*** parsing results ***
*** finding dlls needed ***
*** create binaries ***
*** byte compile python files ***
creating C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\build\bdis
t.win32\winexe\collect-2.5\ctypes
creating C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\build\bdis
t.win32\winexe\collect-2.5\encodings
creating C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\build\bdis
t.win32\winexe\collect-2.5\wx
creating C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\build\bdis
t.win32\winexe\collect-2.5\SocksiPy
creating C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\build\bdis
t.win32\winexe\collect-2.5\translations
*** copy extensions ***
copying C:\Program Files (x86)\Python25\DLLs\_ctypes.pyd -> C:\Program Files (x8
6)\Python25\torchat-source-0.9.9.287\src\dist
copying C:\Program Files (x86)\Python25\DLLs\_hashlib.pyd -> C:\Program Files (x
86)\Python25\torchat-source-0.9.9.287\src\dist
copying C:\Program Files (x86)\Python25\DLLs\_socket.pyd -> C:\Program Files (x8
6)\Python25\torchat-source-0.9.9.287\src\dist
copying C:\Program Files (x86)\Python25\DLLs\_ssl.pyd -> C:\Program Files (x86)\
Python25\torchat-source-0.9.9.287\src\dist
copying C:\Program Files (x86)\Python25\DLLs\bz2.pyd -> C:\Program Files (x86)\P
ython25\torchat-source-0.9.9.287\src\dist
copying C:\Program Files (x86)\Python25\DLLs\select.pyd -> C:\Program Files (x86
)\Python25\torchat-source-0.9.9.287\src\dist
copying C:\Program Files (x86)\Python25\DLLs\unicodedata.pyd -> C:\Program Files
 (x86)\Python25\torchat-source-0.9.9.287\src\dist
copying C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\
_controls_.pyd -> C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\d
ist\wx._controls_.pyd
copying C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\
_core_.pyd -> C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\dist\
wx._core_.pyd
copying C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\
_gdi_.pyd -> C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\dist\w
x._gdi_.pyd
copying C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\
_misc_.pyd -> C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\dist\
wx._misc_.pyd
copying C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\
_windows_.pyd -> C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\di
st\wx._windows_.pyd
*** copy dlls ***
copying C:\Program Files (x86)\Python25\MSVCR71.dll -> C:\Program Files (x86)\Py
thon25\torchat-source-0.9.9.287\src\dist
copying C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\
wxmsw28uh_adv_vc.dll -> C:\Program Files (x86)\Python25\torchat-source-0.9.9.287
\src\dist
copying C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\
wxbase28uh_net_vc.dll -> C:\Program Files (x86)\Python25\torchat-source-0.9.9.28
7\src\dist
copying C:\Windows\system32\python25.dll -> C:\Program Files (x86)\Python25\torc
hat-source-0.9.9.287\src\dist
copying C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\
wxmsw28uh_core_vc.dll -> C:\Program Files (x86)\Python25\torchat-source-0.9.9.28
7\src\dist
copying C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\
wxbase28uh_vc.dll -> C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\sr
c\dist
copying C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\
wxmsw28uh_html_vc.dll -> C:\Program Files (x86)\Python25\torchat-source-0.9.9.28
7\src\dist
copying C:\Program Files (x86)\Python25\lib\site-packages\py2exe\run_w.exe -> C:
\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\dist\torchat.exe

*** binary dependencies ***
Your executable(s) also depend on these dlls which are not included,
you may or may not need to distribute them.

Make sure you have the license if you distribute any of them, and
make sure you don't distribute files belonging to the operating system.

   OLEAUT32.dll - C:\Windows\system32\OLEAUT32.dll
   USER32.dll - C:\Windows\system32\USER32.dll
   SHELL32.dll - C:\Windows\system32\SHELL32.dll
   ole32.dll - C:\Windows\system32\ole32.dll
   comdlg32.dll - C:\Windows\system32\comdlg32.dll
   gdiplus.dll - C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-un
icode\wx\gdiplus.dll
   WSOCK32.dll - C:\Windows\system32\WSOCK32.dll
   COMCTL32.dll - C:\Windows\system32\COMCTL32.dll
   ADVAPI32.dll - C:\Windows\system32\ADVAPI32.dll
   WS2_32.dll - C:\Windows\system32\WS2_32.dll
   WINSPOOL.DRV - C:\Windows\system32\WINSPOOL.DRV
   GDI32.dll - C:\Windows\system32\GDI32.dll
   WINMM.dll - C:\Windows\system32\WINMM.dll
   KERNEL32.dll - C:\Windows\system32\KERNEL32.dll
   MSVCP71.dll - C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-un
icode\wx\MSVCP71.dll
   RPCRT4.dll - C:\Windows\system32\RPCRT4.dll
Das System kann die angegebene Datei nicht finden.
Das System kann die angegebene Datei nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Der Befehl "upx" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
dist\bz2.pyd
dist\MSVCR71.dll
dist\python25.dll
dist\select.pyd
dist\torchat.exe
dist\unicodedata.pyd
dist\wx._controls_.pyd
dist\wx._core_.pyd
dist\wx._gdi_.pyd
dist\wx._misc_.pyd
dist\wx._windows_.pyd
dist\wxbase28uh_net_vc.dll
dist\wxbase28uh_vc.dll
dist\wxmsw28uh_adv_vc.dll
dist\wxmsw28uh_core_vc.dll
dist\wxmsw28uh_html_vc.dll
dist\_ctypes.pyd
dist\_hashlib.pyd
dist\_socket.pyd
dist\_ssl.pyd
        1 Datei(en) kopiert.

C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src>make_windows_binary
.py
running py2exe
*** searching for required modules ***
*** parsing results ***
*** finding dlls needed ***
*** create binaries ***
*** byte compile python files ***
*** copy extensions ***
*** copy dlls ***
copying C:\Program Files (x86)\Python25\lib\site-packages\py2exe\run_w.exe -> C:
\Program Files (x86)\Python25\torchat-source-0.9.9.287\src\dist\torchat.exe

*** binary dependencies ***
Your executable(s) also depend on these dlls which are not included,
you may or may not need to distribute them.

Make sure you have the license if you distribute any of them, and
make sure you don't distribute files belonging to the operating system.

   OLEAUT32.dll - C:\Windows\system32\OLEAUT32.dll
   USER32.dll - C:\Windows\system32\USER32.dll
   SHELL32.dll - C:\Windows\system32\SHELL32.dll
   ole32.dll - C:\Windows\system32\ole32.dll
   comdlg32.dll - C:\Windows\system32\comdlg32.dll
   gdiplus.dll - C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-un
icode\wx\gdiplus.dll
   WSOCK32.dll - C:\Windows\system32\WSOCK32.dll
   COMCTL32.dll - C:\Windows\system32\COMCTL32.dll
   ADVAPI32.dll - C:\Windows\system32\ADVAPI32.dll
   WS2_32.dll - C:\Windows\system32\WS2_32.dll
   WINSPOOL.DRV - C:\Windows\system32\WINSPOOL.DRV
   GDI32.dll - C:\Windows\system32\GDI32.dll
   WINMM.dll - C:\Windows\system32\WINMM.dll
   KERNEL32.dll - C:\Windows\system32\KERNEL32.dll
   MSVCP71.dll - C:\Program Files (x86)\Python25\lib\site-packages\wx-2.8-msw-un
icode\wx\MSVCP71.dll
   RPCRT4.dll - C:\Windows\system32\RPCRT4.dll
Das System kann die angegebene Datei nicht finden.
Das System kann die angegebene Datei nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Der Befehl "upx" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
dist\bz2.pyd
dist\MSVCR71.dll
dist\python25.dll
dist\select.pyd
dist\torchat.exe
dist\unicodedata.pyd
dist\wx._controls_.pyd
dist\wx._core_.pyd
dist\wx._gdi_.pyd
dist\wx._misc_.pyd
dist\wx._windows_.pyd
dist\wxbase28uh_net_vc.dll
dist\wxbase28uh_vc.dll
dist\wxmsw28uh_adv_vc.dll
dist\wxmsw28uh_core_vc.dll
dist\wxmsw28uh_html_vc.dll
dist\_ctypes.pyd
dist\_hashlib.pyd
dist\_socket.pyd
dist\_ssl.pyd
        1 Datei(en) kopiert.

C:\Program Files (x86)\Python25\torchat-source-0.9.9.287\src>
Also die .dll ist vorhanden (RPCRT4.dll)
und den upx-Packer habe ich unter windows/system32 kopiert aber offensichtlich klappt das nicht

RPCRT4.dll - C:\Windows\system32\RPCRT4.dll
Das System kann die angegebene Datei nicht finden.
Das System kann die angegebene Datei nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Der Befehl "upx" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Mad-Marty
User
Beiträge: 317
Registriert: Mittwoch 18. Januar 2006, 19:46

Installiere python nach c:\python25.

Spaces und/oder special folders (Programme/Documents/etc) machen probleme.
Diese Pfade sind nicht immer real, daher je nach verwendeter API auch nicht existent.

Programme z.b. ist real ab Vista ProgramData glaube.
Die Userhomes liegen z.b. auch nicht unter "Benutzer oder Users" sondern ist genauso ein Special Folder.


Ich z.b. mache den build von einem dist immer in C:\tmp ;) ... schön kurz und problemlos.
Mein Python ist in C:\Python26.

Evtl. musst du später noch mit den Assemblies basteln ("Die Anwendung ist nicht korrekt installier ...").


Und noch ein Hinweis: Irgendwelchen Schund nach %WINDIR%\system32 zu kopieren ist auch daneben.
Für sowas gibts die Umgebungsvariablen, PATH im speziellen damit das command von überall gefunden wird.
JohnR
User
Beiträge: 23
Registriert: Freitag 25. Juni 2010, 19:42

im Win7 64 bit wäre es korrekt Program Files (x86), das hatte ich auch alles bedacht.

Hab es jetzt aber wie von Dir empfohlen unter c:/python25 installiert und habe auch das .dll Problem nicht mehr :D

Aber leider klemmt immer noch der upx Packer

Der Befehl "upx" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.


Was muss ich denn tun um den unter win7 in Funktion zu bringen?

Habe auch schon die SuFu des Forums genutzt ebenso google aber nicht wirklich etwas gefunden :?
Mad-Marty
User
Beiträge: 317
Registriert: Mittwoch 18. Januar 2006, 19:46

JohnR hat geschrieben:im Win7 64 bit wäre es korrekt Program Files (x86), das hatte ich auch alles bedacht.

Hab es jetzt aber wie von Dir empfohlen unter c:/python25 installiert und habe auch das .dll Problem nicht mehr :D
Eben weil "Program Files (x86)" ein special folder ist. Glaubs ruhig. Abhängig von der jeweiligen Internationalization des Windows. :P

JohnR hat geschrieben: Aber leider klemmt immer noch der upx Packer

Der Befehl "upx" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.


Was muss ich denn tun um den unter win7 in Funktion zu bringen?

Habe auch schon die SuFu des Forums genutzt ebenso google aber nicht wirklich etwas gefunden :?

Er findet scheinbar den upx packer nicht. Editiere deine environment variablen. Wenn du das getan hast und der Pfad zum upx mit in PATH drin ist,
sollte bei eingabe in einer cmd dann auch "upx" entsprechenden output generieren.

Der UPX dürfte aber ziemlich optional sein. Exe-packer sind heutzutage recht sinnfrei finde ich. Wenn alles andere ging, sollte trotzdem eine entsprechende .exe daliegen und startbar sein.
JohnR
User
Beiträge: 23
Registriert: Freitag 25. Juni 2010, 19:42

Ich bin da durchaus lernfähig und auch sehr dankbar für deine/eure Hilfe.

Den UPX Befehl zum packen der exe habe ich jetzt einfach mal auskommentiert 8)

Das ganze läuft jetzt auch ohne jede Fehlermeldung durch und erstellt wenn ich die Befehle zum löschen der Ordner Dist und Build auch noch auskommentiere die Dateien.

Aber die .exe startet halt nicht, sie bringt keinerlei Fehlermeldung und läuft als Prozess macht aber kein GUI.

Kann es sein das der skript für was ganz anderes da ist er heißt ja make_windows_binarys.py und legt in der Originalform eine Datei namens bin an ?

Also entschuldigt die vielleicht blöde Frage, aber ich habe in python noch nichts groß gemacht, von daher fehlt mir hier noch etwas der Durchblick O.o .
ms4py
User
Beiträge: 1178
Registriert: Montag 19. Januar 2009, 09:37

Warum führst du das Programm nicht einfach aus, *ohne* die Binaries zu erstellen.

Dieses exe erstellen von Python-Programmen ist eigentlich nicht üblich und deshalb wirst du hier auch keinen ausführlichen Support erhalten können...
„Lieber von den Richtigen kritisiert als von den Falschen gelobt werden.“
Gerhard Kocher

http://ms4py.org/
JohnR
User
Beiträge: 23
Registriert: Freitag 25. Juni 2010, 19:42

Weil ich einen ziemlichen Dickkopf habe und es mich stört das es bei mir nicht klappt :wink: .

Ich bin aber wieder ein Stück weiter, anscheinend werden beim erstellen der Binarys nicht alle für das Programm notwendigen Sachen miterstellt, wenn ich die originale fertige im Netz erhältliche Tor Chat Distribution und meine selbst erstellte vergleiche fehlen mir unter anderen die Ordner Tor und Image (das erklärt dann wahrscheinlich warum der GUI nicht starten wollte) und auch die .ini.

Wenn ich diese jetzt aus der normalen im Netz erhältlichen Tor-Chat Version in meine erstellte kopiere läuft das ganze schon mal an :D :D .

Mal sehen was mich da noch erwartet..........

Gruß und Danke für eure Hilfe

John
Antworten