freewso / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

ImportError: No module named _cpyrit_cpu #295

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run pyrit

What is the expected output? What do you see instead?
that pyrit runs 

I get

Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 4, in <module>
    import pyrit_cli
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 32, in <module>
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 41, in <module>
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/util.py", line 52, in <module>
ImportError: No module named _cpyrit_cpu
.

Original issue reported on code.google.com by spliff...@googlemail.com on 7 Apr 2011 at 4:18

GoogleCodeExporter commented 8 years ago
rebuild and re-install pyrit, watch for error messages, leave the pyrit-source 
directory before executing it.

Original comment by lukas.l...@gmail.com on 7 Apr 2011 at 4:22

GoogleCodeExporter commented 8 years ago

svn: '.' is not a working copy
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.6
copying pyrit_cli.py -> build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/cpyrit
copying cpyrit/__init__.py -> build/lib.linux-x86_64-2.6/cpyrit
copying cpyrit/cpyrit.py -> build/lib.linux-x86_64-2.6/cpyrit
copying cpyrit/util.py -> build/lib.linux-x86_64-2.6/cpyrit
copying cpyrit/pckttools.py -> build/lib.linux-x86_64-2.6/cpyrit
copying cpyrit/config.py -> build/lib.linux-x86_64-2.6/cpyrit
copying cpyrit/network.py -> build/lib.linux-x86_64-2.6/cpyrit
copying cpyrit/storage.py -> build/lib.linux-x86_64-2.6/cpyrit
running build_ext
building 'cpyrit._cpyrit_cpu' extension
creating build/temp.linux-x86_64-2.6
creating build/temp.linux-x86_64-2.6/cpyrit
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c cpyrit/_cpyrit_cpu.c -o 
build/temp.linux-x86_64-2.6/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing 
-DVERSION="0.4.0"
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c cpyrit/_cpyrit_cpu_sse2.S 
-o build/temp.linux-x86_64-2.6/cpyrit/_cpyrit_cpu_sse2.o -Wall 
-fno-strict-aliasing -DVERSION="0.4.0"
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
build/temp.linux-x86_64-2.6/cpyrit/_cpyrit_cpu.o 
build/temp.linux-x86_64-2.6/cpyrit/_cpyrit_cpu_sse2.o -lcrypto -lpcap -o 
build/lib.linux-x86_64-2.6/cpyrit/_cpyrit_cpu.so
running build_scripts
creating build/scripts-2.6
copying and adjusting pyrit -> build/scripts-2.6
changing mode of build/scripts-2.6/pyrit from 770 to 775
splifftor@stealth:~/Downloads/pyrit-0.4.0$ sudo python setup.py install
svn: '.' is not a working copy
running install
running build
running build_py
running build_ext
running build_scripts
changing mode of build/scripts-2.6/pyrit from 770 to 775
running install_lib
copying build/lib.linux-x86_64-2.6/cpyrit/_cpyrit_cpu.so -> 
/usr/local/lib/python2.6/dist-packages/cpyrit
writing byte-compilation script '/tmp/tmpa1wbuk.py'
/usr/bin/python -O /tmp/tmpa1wbuk.py
removing /tmp/tmpa1wbuk.py
running install_scripts
copying build/scripts-2.6/pyrit -> /usr/local/bin
changing mode of /usr/local/bin/pyrit to 775
running install_egg_info
Removing /usr/local/lib/python2.6/dist-packages/pyrit-0.4.0.egg-info
Writing /usr/local/lib/python2.6/dist-packages/pyrit-0.4.0.egg-info
splifftor@stealth:~/Downloads/pyrit-0.4.0$ cd ..
splifftor@stealth:~/Downloads$ pyrit 
Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 4, in <module>
    import pyrit_cli
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 32, in <module>
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 41, in <module>
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/util.py", line 52, in <module>
ImportError: No module named _cpyrit_cpu

Original comment by spliff...@googlemail.com on 7 Apr 2011 at 4:41