Open GoogleCodeExporter opened 9 years ago
can you delete the file
/Library/Python/2.6/site-packages/cpyrit/_cpyrit_cpu.so, delete the /build
folder in your pyrit-sourcecode-directory, re-compile, re-install and try again?
Original comment by lukas.l...@gmail.com
on 1 Jun 2011 at 6:23
cpyrit
re-compile, re-install ==>ok
I had to build using explicit LDFLAGS reference "sudo
LDFLAGS=-L/usr/local/cuda/lib python setup.py build"
pyrit
error generated see below
sudo LDFLAGS=-L/usr/local/cuda/lib python setup.py build
svn: '.' is not a working copy
running build
running build_py
file pyrit_cli.py (for module pyrit_cli) not found
package init file 'cpyrit/__init__.py' not found (or not a regular file)
file cpyrit/cpyrit.py (for module cpyrit.cpyrit) not found
file cpyrit/util.py (for module cpyrit.util) not found
file cpyrit/pckttools.py (for module cpyrit.pckttools) not found
file cpyrit/config.py (for module cpyrit.config) not found
file cpyrit/network.py (for module cpyrit.network) not found
package init file 'cpyrit/__init__.py' not found (or not a regular file)
file pyrit_cli.py (for module pyrit_cli) not found
package init file 'cpyrit/__init__.py' not found (or not a regular file)
file cpyrit/cpyrit.py (for module cpyrit.cpyrit) not found
file cpyrit/util.py (for module cpyrit.util) not found
file cpyrit/pckttools.py (for module cpyrit.pckttools) not found
file cpyrit/config.py (for module cpyrit.config) not found
file cpyrit/network.py (for module cpyrit.network) not found
package init file 'cpyrit/__init__.py' not found (or not a regular file)
running build_ext
building 'cpyrit._cpyrit_cpu' extension
creating build
creating build/temp.macosx-10.6-universal-2.6
creating build/temp.macosx-10.6-universal-2.6/cpyrit
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall
-Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c
cpyrit/_cpyrit_cpu.c -o
build/temp.macosx-10.6-universal-2.6/cpyrit/_cpyrit_cpu.o -Wall
-fno-strict-aliasing -DVERSION="0.4.0"
i686-apple-darwin10-gcc-4.2.1: cpyrit/_cpyrit_cpu.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
powerpc-apple-darwin10-gcc-4.2.1: cpyrit/_cpyrit_cpu.c: No such file or
directory
powerpc-apple-darwin10-gcc-4.2.1: no input files
i686-apple-darwin10-gcc-4.2.1: cpyrit/_cpyrit_cpu.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
lipo: can't figure out the architecture type of: /var/tmp//cc9MI5Ee.out
error: command 'gcc-4.2' failed with exit status 1
locate cpyrit.py returns :
/Library/Python/2.6/site-packages/cpyrit/cpyrit.py
/Library/Python/2.6/site-packages/cpyrit/cpyrit.pyc
/Library/Python/2.6/site-packages/cpyrit/cpyrit.pyo
Original comment by charlesr...@gmail.com
on 1 Jun 2011 at 6:52
you probably deleted these files yourself. They are part of the tarball.
You can overcome the LDFLAGS-problem by symlinking the CUDA-librars to
/usr/lib[64]
Original comment by lukas.l...@gmail.com
on 1 Jun 2011 at 3:38
success !
order of compiling might have been an isssue
1) pyrit
env LDFLAGS="-L/usr/local/cuda/lib" python setup.py build
sudo python setup.py install
2) cpyrit
env LDFLAGS="-L/usr/local/cuda/lib" python setup.py build
sudo python setup.py install
Original comment by charlesr...@gmail.com
on 3 Jun 2011 at 3:09
I have the same issue, but removing the build folder & the _cpyrit_cpu.so, then
python setup.py build & install didn't change anything for me, still get the
same error.
Original comment by cmg.0...@gmail.com
on 15 Jun 2011 at 6:17
Original issue reported on code.google.com by
charlesr...@gmail.com
on 31 May 2011 at 5:44