Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

ERROR: Failed building wheel for unicorn (Dependency for cuckoo) #3178

Open
acheong08 opened this issue Feb 17, 2021 · 1 comment
Open

ERROR: Failed building wheel for unicorn (Dependency for cuckoo) #3178

acheong08 opened this issue Feb 17, 2021 · 1 comment

Comments

@acheong08
Copy link

ERROR: Failed building wheel for unicorn

Installing on MacOS 11.2.1

pip2 install cuckoo

  ERROR: Command errored out with exit status 1:
   command: /Users/ac/cuckoo/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xh/y_51j75s3xb5_w4j79jmkgz80000gn/T/pip-req-build-0lZtzX/setup.py'"'"'; __file__='"'"'/private/var/folders/xh/y_51j75s3xb5_w4j79jmkgz80000gn/T/pip-req-build-0lZtzX/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/xh/y_51j75s3xb5_w4j79jmkgz80000gn/T/pip-wheel-Fh54wM
       cwd: /private/var/folders/xh/y_51j75s3xb5_w4j79jmkgz80000gn/T/pip-req-build-0lZtzX/
  Complete output (11 lines):
  running bdist_wheel
  running build
  Building C extensions
  cd qemu && \
  	./configure --cc="cc" --extra-cflags="-DUNICORN_HAS_X86 -DUNICORN_HAS_ARM -DUNICORN_HAS_ARMEB -DUNICORN_HAS_M68K -DUNICORN_HAS_ARM64 -DUNICORN_HAS_MIPS -DUNICORN_HAS_MIPSEL -DUNICORN_HAS_MIPS64 -DUNICORN_HAS_MIPS64EL -DUNICORN_HAS_SPARC -fPIC -fvisibility=hidden -m32 -arch i386 -m64 -arch x86_64" --target-list="x86_64-softmmu, arm-softmmu, armeb-softmmu, m68k-softmmu, aarch64-softmmu, mips-softmmu, mipsel-softmmu, mips64-softmmu, mips64el-softmmu, sparc-softmmu,sparc64-softmmu,"
  
  ERROR: pthread check failed
         Make sure to have the pthread libs and headers installed.
  
  make: *** [qemu/config-host.h-timestamp] Error 1
  error: [Errno 2] No such file or directory: 'libunicorn.dylib'
  ----------------------------------------
  ERROR: Failed building wheel for unicorn

and

ERROR: Command errored out with exit status 1:
     command: /Users/ac/cuckoo/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xh/y_51j75s3xb5_w4j79jmkgz80000gn/T/pip-req-build-0lZtzX/setup.py'"'"'; __file__='"'"'/private/var/folders/xh/y_51j75s3xb5_w4j79jmkgz80000gn/T/pip-req-build-0lZtzX/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/xh/y_51j75s3xb5_w4j79jmkgz80000gn/T/pip-record-5CNeBQ/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ac/cuckoo/venv/include/site/python2.7/unicorn
         cwd: /private/var/folders/xh/y_51j75s3xb5_w4j79jmkgz80000gn/T/pip-req-build-0lZtzX/
    Complete output (11 lines):
    running install
    running build
    Building C extensions
    cd qemu && \
    	./configure --cc="cc" --extra-cflags="-DUNICORN_HAS_X86 -DUNICORN_HAS_ARM -DUNICORN_HAS_ARMEB -DUNICORN_HAS_M68K -DUNICORN_HAS_ARM64 -DUNICORN_HAS_MIPS -DUNICORN_HAS_MIPSEL -DUNICORN_HAS_MIPS64 -DUNICORN_HAS_MIPS64EL -DUNICORN_HAS_SPARC -fPIC -fvisibility=hidden -m32 -arch i386 -m64 -arch x86_64" --target-list="x86_64-softmmu, arm-softmmu, armeb-softmmu, m68k-softmmu, aarch64-softmmu, mips-softmmu, mipsel-softmmu, mips64-softmmu, mips64el-softmmu, sparc-softmmu,sparc64-softmmu,"
    
    ERROR: pthread check failed
           Make sure to have the pthread libs and headers installed.
    
    make: *** [qemu/config-host.h-timestamp] Error 1
    error: [Errno 2] No such file or directory: 'libunicorn.dylib'
    ----------------------------------------

and

ERROR: Command errored out with exit status 1: /Users/ac/cuckoo/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xh/y_51j75s3xb5_w4j79jmkgz80000gn/T/pip-req-build-0lZtzX/setup.py'"'"'; __file__='"'"'/private/var/folders/xh/y_51j75s3xb5_w4j79jmkgz80000gn/T/pip-req-build-0lZtzX/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/xh/y_51j75s3xb5_w4j79jmkgz80000gn/T/pip-record-5CNeBQ/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ac/cuckoo/venv/include/site/python2.7/unicorn 
Check the logs for full command output.
@acheong08
Copy link
Author

Solved by manually downloading and changing the requirements for the cuckoo package to use the most recent version of unicorn

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant