Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System Dependency Issue #21

Open
ethanwu155 opened this issue Sep 2, 2021 · 0 comments
Open

System Dependency Issue #21

ethanwu155 opened this issue Sep 2, 2021 · 0 comments

Comments

@ethanwu155
Copy link
Contributor

Running into issues with setting up pyc2p in newly created virtual environment.

$ python3 -m pip install c2pa
Requirement already satisfied: c2pa in /Users/macuser/Desktop/coding_projects/numbers/pyc2pa (1.4.1)
Requirement already satisfied: py-multibase>=1.0.3 in /Applications/anaconda3/lib/python3.7/site-packages (from c2pa) (1.0.3)
Requirement already satisfied: pycryptodome>=3.9.9 in /Applications/anaconda3/lib/python3.7/site-packages/pycryptodome-3.9.9-py3.7-macosx-10.9-x86_64.egg (from c2pa) (3.9.9)
Requirement already satisfied: pymultihash>=0.8.2 in /Applications/anaconda3/lib/python3.7/site-packages (from c2pa) (0.8.2)
Requirement already satisfied: py3exiv2>=0.9.3 in /Applications/anaconda3/lib/python3.7/site-packages (from c2pa) (0.9.3)
Requirement already satisfied: endesive>=2.0.2 in /Applications/anaconda3/lib/python3.7/site-packages/endesive-2.0.3-py3.7.egg (from c2pa) (2.0.3)
Requirement already satisfied: morphys<2.0,>=1.0 in /Applications/anaconda3/lib/python3.7/site-packages (from py-multibase>=1.0.3->c2pa) (1.0)
Requirement already satisfied: six<2.0,>=1.10.0 in /Applications/anaconda3/lib/python3.7/site-packages (from py-multibase>=1.0.3->c2pa) (1.10.0)
Requirement already satisfied: python-baseconv<2.0,>=1.2.0 in /Applications/anaconda3/lib/python3.7/site-packages (from py-multibase>=1.0.3->c2pa) (1.2.0)
Requirement already satisfied: cryptography in /Applications/anaconda3/lib/python3.7/site-packages (from endesive>=2.0.2->c2pa) (2.7)
Requirement already satisfied: asn1crypto in /Applications/anaconda3/lib/python3.7/site-packages (from endesive>=2.0.2->c2pa) (1.0.1)
Requirement already satisfied: oscrypto in /Applications/anaconda3/lib/python3.7/site-packages (from endesive>=2.0.2->c2pa) (1.2.1)
Requirement already satisfied: lxml in /Applications/anaconda3/lib/python3.7/site-packages (from endesive>=2.0.2->c2pa) (4.4.1)
Collecting pykcs11 (from endesive>=2.0.2->c2pa)
  Using cached https://files.pythonhosted.org/packages/70/0c/129e4b81340338e00ea8617df3b9a0bb3864357a0955e1654e263beef65c/PyKCS11-1.5.10.tar.gz
Requirement already satisfied: Pillow in /Applications/anaconda3/lib/python3.7/site-packages (from endesive>=2.0.2->c2pa) (6.2.0)
Requirement already satisfied: pytz in /Applications/anaconda3/lib/python3.7/site-packages (from endesive>=2.0.2->c2pa) (2019.3)
Requirement already satisfied: requests in /Applications/anaconda3/lib/python3.7/site-packages (from endesive>=2.0.2->c2pa) (2.22.0)
Requirement already satisfied: paramiko in /Applications/anaconda3/lib/python3.7/site-packages (from endesive>=2.0.2->c2pa) (2.7.2)
Requirement already satisfied: pyopenssl in /Applications/anaconda3/lib/python3.7/site-packages (from endesive>=2.0.2->c2pa) (19.0.0)
Requirement already satisfied: attrs in /Applications/anaconda3/lib/python3.7/site-packages (from endesive>=2.0.2->c2pa) (19.2.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /Applications/anaconda3/lib/python3.7/site-packages (from cryptography->endesive>=2.0.2->c2pa) (1.12.3)
Requirement already satisfied: idna<2.9,>=2.5 in /Applications/anaconda3/lib/python3.7/site-packages (from requests->endesive>=2.0.2->c2pa) (2.8)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Applications/anaconda3/lib/python3.7/site-packages (from requests->endesive>=2.0.2->c2pa) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /Applications/anaconda3/lib/python3.7/site-packages (from requests->endesive>=2.0.2->c2pa) (2019.9.11)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /Applications/anaconda3/lib/python3.7/site-packages (from requests->endesive>=2.0.2->c2pa) (1.24.2)
Requirement already satisfied: bcrypt>=3.1.3 in /Applications/anaconda3/lib/python3.7/site-packages (from paramiko->endesive>=2.0.2->c2pa) (3.2.0)
Requirement already satisfied: pynacl>=1.0.1 in /Applications/anaconda3/lib/python3.7/site-packages (from paramiko->endesive>=2.0.2->c2pa) (1.4.0)
Requirement already satisfied: pycparser in /Applications/anaconda3/lib/python3.7/site-packages (from cffi!=1.11.3,>=1.8->cryptography->endesive>=2.0.2->c2pa) (2.19)
Building wheels for collected packages: pykcs11
  Building wheel for pykcs11 (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Applications/anaconda3/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/01/14lsxh9x7czd37dg3pfksr1h0000gn/T/pip-install-k5si2hen/pykcs11/setup.py'"'"'; __file__='"'"'/private/var/folders/01/14lsxh9x7czd37dg3pfksr1h0000gn/T/pip-install-k5si2hen/pykcs11/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/01/14lsxh9x7czd37dg3pfksr1h0000gn/T/pip-wheel-78ed34nf --python-tag cp37
       cwd: /private/var/folders/01/14lsxh9x7czd37dg3pfksr1h0000gn/T/pip-install-k5si2hen/pykcs11/
  Complete output (8 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'PyKCS11._LowLevel' extension
  swigging src/pykcs11.i to src/pykcs11_wrap.cpp
  swig -python -c++ -o src/pykcs11_wrap.cpp src/pykcs11.i
  unable to execute 'swig': No such file or directory
  error: command 'swig' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pykcs11
  Running setup.py clean for pykcs11
Failed to build pykcs11
Installing collected packages: pykcs11
  Running setup.py install for pykcs11 ... error
    ERROR: Command errored out with exit status 1:
     command: /Applications/anaconda3/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/01/14lsxh9x7czd37dg3pfksr1h0000gn/T/pip-install-k5si2hen/pykcs11/setup.py'"'"'; __file__='"'"'/private/var/folders/01/14lsxh9x7czd37dg3pfksr1h0000gn/T/pip-install-k5si2hen/pykcs11/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/01/14lsxh9x7czd37dg3pfksr1h0000gn/T/pip-record-996wa7u3/install-record.txt --single-version-externally-managed --compile
         cwd: /private/var/folders/01/14lsxh9x7czd37dg3pfksr1h0000gn/T/pip-install-k5si2hen/pykcs11/
    Complete output (8 lines):
    running install
    running build
    running build_ext
    building 'PyKCS11._LowLevel' extension
    swigging src/pykcs11.i to src/pykcs11_wrap.cpp
    swig -python -c++ -o src/pykcs11_wrap.cpp src/pykcs11.i
    unable to execute 'swig': No such file or directory
    error: command 'swig' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Applications/anaconda3/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/01/14lsxh9x7czd37dg3pfksr1h0000gn/T/pip-install-k5si2hen/pykcs11/setup.py'"'"'; __file__='"'"'/private/var/folders/01/14lsxh9x7czd37dg3pfksr1h0000gn/T/pip-install-k5si2hen/pykcs11/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/01/14lsxh9x7czd37dg3pfksr1h0000gn/T/pip-record-996wa7u3/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

Issue above resolved by install swig. May be a good idea to set up Docker

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

No branches or pull requests

1 participant