File "C:\Python23\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py",
Ich arbeite mich derzeit in Python ein. Auf Anraten von hilfreichen Gruppenmitgliedern laufen auch die ersten Programme prima. Nun möchte ich die gewonnen Dateien per Windows bearbeiten. Auf der Suche nach Peispielen fand ich "custdb.py" von Juergen Rauch. Das Starten klappt nicht, da mir wxPython fehlte. Das habe ich nachinstalliert. Wie gehe ich systematisch vor, um den Fehler einzugrenzen? Vielen Dank im Voraus. Werner Warweg Ich erhalte folgende Fehler: Traceback (most recent call last): PythonWin 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on win32. Portions Copyright 1994-2001 Mark Hammond (mhammond@skippinet.com.au) - see 'Help/About PythonWin' for further copyright information. line 310, in RunScript exec codeObject in __main__.__dict__ File "C:\Python23\Lib\site-packages\PythonCardPrototype\samples\custdb\custdb.py", line 18, in ? from PythonCardPrototype import dialog, model File "C:\Python23\Lib\site-packages\PythonCardPrototype\model.py", line 15, in ? from wxPython import wx ImportError: cannot import name wx
_______________________________________________ python-de maillist - python-de@python.net http://python.net/mailman/listinfo/python-de
Werner Warweg wrote:
Das Starten klappt nicht, da mir wxPython fehlte. Das habe ich nachinstalliert. ..... File "C:\Python23\Lib\site-packages\PythonCardPrototype\model.py", line 15, in ? from wxPython import wx ImportError: cannot import name wx
i) wie ist wxPython installiert worden, gibt es ein Verzeichnis C:\Python23\Lib\site-packages\wxPython und darin ein wx.py ii) kann wxPython direkt von python importiert werden (ohne pythonwin und PythonCard), iii) gibt es ein Verzeichnis wxPython im aktuellen Arbeitsverzeichnis (und wird mglw. dieses importiert) ? _______________________________________________ python-de maillist - python-de@python.net http://python.net/mailman/listinfo/python-de
Uwe Hoffmann schrieb:
i) wie ist wxPython installiert worden, gibt es ein Verzeichnis C:\Python23\Lib\site-packages\wxPython und darin ein wx.py ich habe ein Verzeichnis C:\Python23\wxPython darin gibt es _wx.py
ich habe das Paket jetzt nochmals installiert unter C:\Python23\Lib\site-packages Fehler bleibt Python 22 nochmals installiert: neuer Fehler: Konflikt mit ...22.dll
ii) kann wxPython direkt von python importiert werden (ohne pythonwin und PythonCard), wie kann ich das testen (bin Absoluter Anfänger in Python) iii) gibt es ein Verzeichnis wxPython im aktuellen Arbeitsverzeichnis (und wird mglw. dieses importiert) ? unter Python 23 habe ich sowohl ein wx als auch ein wxPythonverzeichnis
MfG Werner Warweg _______________________________________________ python-de maillist - python-de@python.net http://python.net/mailman/listinfo/python-de
On Sun, 11 Apr 2004 08:11:14 +0200 Werner Warweg <werner@warweg.com> wrote:
Python 22 nochmals installiert: neuer Fehler: Konflikt mit ...22.dll
ii) kann wxPython direkt von python importiert werden (ohne pythonwin und PythonCard), wie kann ich das testen (bin Absoluter Anfänger in Python) iii) gibt es ein Verzeichnis wxPython im aktuellen Arbeitsverzeichnis (und wird mglw. dieses importiert) ? unter Python 23 habe ich sowohl ein wx als auch ein wxPythonverzeichnis
Tipp: Deinstallier alle Python versionen, lösche die Ordner, suche nach allen python22.dll und python23.dll und lösche sie (das kann probleme machen, also lösche nur python23.dll) Dann lad dir Python 2.3.3 runter, installier es unter C:\Programme\Python (oder Python23 wenn du py22 auch noch brauchst), dann installierts du win32all für Python 2.3 (_py2.3.exe), und danach die neueste wxPython Version: da du ja XP nutzt (NT 5.1) brauchst du die 'u'nicode version. Diese Installierst du und alles sollte passen. grüße, Marek _______________________________________________ python-de maillist - python-de@python.net http://python.net/mailman/listinfo/python-de
participants (4)
-
Marek Kubica
-
Uwe Hoffmann
-
Werner Warweg
-
Werner.Warweg@t-online.de