Hallo Alle! Ich habe gerade erste Kontakt mit FreeBSD (fresh installed) Anscheinend fehlt das Modul thread. Was tut man wenn sowas passiert? Gruss nora Python 2.4.1 (#2, Jun 19 2005, 08:06:30) [GCC 3.4.2 [FreeBSD] 20040728] on freebsd5 Type "help", "copyright", "credits" or "license" for more information.
import thread Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named thread
%python Karrigell.py Traceback (most recent call last): File "Karrigell.py", line 20, in ? import KarrigellRequestHandler File "/usr/home/noob/Karrigell-2.1.5/KarrigellRequestHandler.py", line 57, in ? import Cookie, urlparse, mimetypes, BaseHTTPServer, cgi, urllib, threading File "/usr/local/lib/python2.4/threading.py", line 6, in ? import thread ImportError: No module named thread _______________________________________________ python-de maillist - python-de@python.net http://python.net/mailman/listinfo/python-de
nora central wrote:
Ich habe gerade erste Kontakt mit FreeBSD (fresh installed) Anscheinend fehlt das Modul thread. Was tut man wenn sowas passiert?
Es ist nicht klar, was hier "fresh installed" ist: FreeBSD oder Python? Wenn das mit FreeBSD vorinstallierte Python kein Thread-Modul enthält, muss man gucken, ob das Modul vielleicht nachzuinstallieren ist. Falls nicht, kann man Python selbst übersetzen. Falls man Python selbst übersetzt hat und es fehlen dann die Threads, schaut man sich noch einmal den configure-Output an, um zu sehen, an welcher Stelle entschieden wurde, dass das System keine Threads unterstützt. Ciao, Martin _______________________________________________ python-de maillist - python-de@python.net http://python.net/mailman/listinfo/python-de
On, Fri Jun 24, 2005, nora central wrote:
Hallo Alle!
Ich habe gerade erste Kontakt mit FreeBSD (fresh installed) Anscheinend fehlt das Modul thread. Was tut man wenn sowas passiert?
Den Python-Port aus lang/python neu installieren und make die Option WITH_THREADS=yes mitgeben (ist normalerweise schon so eingestellt, siehe auch das Makefile des Ports). gruss Marcus _______________________________________________ python-de maillist - python-de@python.net http://python.net/mailman/listinfo/python-de
participants (3)
-
"Martin v. Löwis"
-
Marcus von Appen
-
nora central