ImportError: No module named thread
16.05.2013, рубрики: FreeBSD, Новости | Теги: www/mono | 1 825 комментариев »1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /usr/ports/www/node# make install clean ===> Building for node-0.10.5 /usr/local/bin/python tools/gyp_node -f make Traceback (most recent call last): File "tools/gyp_node", line 11, in <module> import gyp File "./tools/gyp/pylib/gyp/__init__.py", line 8, in <module> import gyp.input File "./tools/gyp/pylib/gyp/input.py", line 15, in <module> import multiprocessing File "/usr/local/lib/python2.7/multiprocessing/__init__.py", line 65, in <module> from multiprocessing.util import SUBDEBUG, SUBWARNING File "/usr/local/lib/python2.7/multiprocessing/util.py", line 38, in <module> import threading # we want threading to install it's File "/usr/local/lib/python2.7/threading.py", line 6, in <module> import thread ImportError: No module named thread gmake: *** [out/Makefile] Error 1 *** Error code 1 Stop in /usr/ports/www/node. |
Так как у меня установлен python27, переустанавливает порт python27 с поддержкой threads, затем снова собираем mono
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | ===> Extracting for node-0.10.5 => SHA256 Checksum OK for node-v0.10.5.tar.gz. ===> Patching for node-0.10.5 ===> node-0.10.5 depends on file: /usr/local/bin/python2.7 - found ===> node-0.10.5 depends on executable: gmake - found ===> node-0.10.5 depends on shared library: execinfo - found ===> Configuring for node-0.10.5 { 'target_defaults': { 'cflags': [], 'default_configuration': 'Release', 'defines': [], 'include_dirs': [], 'libraries': []}, 'variables': { 'clang': 0, 'gcc_version': 42, 'host_arch': 'ia32', 'node_install_npm': 'false', 'node_prefix': '/usr/local', 'node_shared_cares': 'false', 'node_shared_http_parser': 'false', 'node_shared_libuv': 'false', 'node_shared_openssl': 'false', 'node_shared_v8': 'false', 'node_shared_zlib': 'false', 'node_tag': '', 'node_unsafe_optimizations': 0, 'node_use_dtrace': 'false', 'node_use_etw': 'false', 'node_use_openssl': 'true', 'node_use_perfctr': 'false', 'node_use_systemtap': 'false', 'python': '/usr/local/bin/python', 'target_arch': 'ia32', 'v8_enable_gdbjit': 0, 'v8_no_strict_aliasing': 1, 'v8_use_snapshot': 'true'}} creating ./config.gypi creating ./config.mk ===> Building for node-0.10.5 gmake -C out BUILDTYPE=Release V=1 gmake[1]: Entering directory `/usr/ports/www/node/work/node-v0.10.5/out' cc '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_GNU_SOURCE' '-DHAVE_CONFIG_H' '-DCARES_STATICLIB' -I../deps/cares/include -I../deps/cares/src -I../deps/cares/config/freebsd -Wall -Wextra -Wno-unused-parameter -pthread -m32 -g --std=gnu89 -pedantic -Wall -Wextra -Wno-unused-parameter -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -MMD -MF /usr/ports/www/node/work/node-v0.10.5/out/Release/.deps//usr/ports/www/node/work/node-v0.10.5/out/Release/obj.target/cares/deps/cares/src/ares_cancel.o.d.raw -O2 -pipe -fno-strict-aliasing -c -o /usr/ports/www/node/work/node-v0.10.5/out/Release/obj.target/cares/deps/cares/src/ares_cancel.o ../deps/cares/src/ares_cancel.c |
Процесс пошел.
Оставить комментарий