pyce icon indicating copy to clipboard operation
pyce copied to clipboard

Installation Error on Debian (Kali Linux)

Open alimp5 opened this issue 5 years ago • 0 comments

Why pip3/pip install pyce doesn't work on Debian:

root@milani:~/Desktop# pip install pyce
ERROR: Could not find a version that satisfies the requirement pyce (from versions: none)
ERROR: No matching distribution found for pyce

easy_install-3.6 pyce is using python 3.8.5 for installation:

root@milani:~/Desktop# easy_install-3.6 pyce
WARNING: The easy_install command is deprecated and will be removed in a future version.
Searching for pyce
Reading https://pypi.org/simple/pyce/
Downloading https://files.pythonhosted.org/packages/39/79/cba14351f49d92d9ece1a5d25700808304a13ba7c57c275397ff7945b894/pyce-2.0.0-py3-none-any.whl#sha256=3a679de025d444dc66250ed73a52f61ef2930ff595b69ba471d6ba438253f877
Best match: pyce 2.0.0
Processing pyce-2.0.0-py3-none-any.whl
Installing pyce-2.0.0-py3-none-any.whl to /usr/local/lib/python3.8/dist-packages
Adding pyce 2.0.0 to easy-install.pth file

Installed /usr/local/lib/python3.8/dist-packages/pyce-2.0.0-py3.8.egg
Processing dependencies for pyce
Searching for cryptography==2.3.1
Reading https://pypi.org/simple/cryptography/
Downloading https://files.pythonhosted.org/packages/59/32/92cade62c645756a83598edf56289e9b19aae5370642a7ce690cd06bc72f/cryptography-2.3.1-cp34-abi3-manylinux1_x86_64.whl#sha256=8229ceb79a1792823d87779959184a1bf95768e9248c93ae9f97c7a2f60376a1
Best match: cryptography 2.3.1
Processing cryptography-2.3.1-cp34-abi3-manylinux1_x86_64.whl
Installing cryptography-2.3.1-cp34-abi3-manylinux1_x86_64.whl to /usr/local/lib/python3.8/dist-packages
Adding cryptography 2.3.1 to easy-install.pth file
Installed /usr/local/lib/python3.8/dist-packages/cryptography-2.3.1-py3.8-linux-x86_64.egg
Finished processing dependencies for pyce

easy_install pyce is using Python 2.7.15 for installation:

root@milani:~/Desktop# easy_install pyce
WARNING: The easy_install command is deprecated and will be removed in a future version.
Searching for pyce
Reading https://pypi.org/simple/pyce/
Downloading https://files.pythonhosted.org/packages/4e/cd/9d8d9299e8ad81a0fa0352d242f269a2789228c3976f622c9364ef7e2723/pyce-2.0.0.tar.gz#sha256=edb5d4d44ebec0453f76d7930c85c92af2c036b6ecd5d1ad83f6c3213c7be758
Best match: pyce 2.0.0
Processing pyce-2.0.0.tar.gz
Writing /tmp/easy_install-uV_mN_/pyce-2.0.0/setup.cfg
Running pyce-2.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-uV_mN_/pyce-2.0.0/egg-dist-tmp-IUDJVP
Traceback (most recent call last):
  File "/usr/local/bin/easy_install", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 2321, in main
    **kw
  File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 424, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 685, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 711, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 896, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1164, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1150, in run_setup
    run_setup(setup_script, args)
  File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 253, in run_setup
    raise
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/usr/local/lib/python2.7/dist-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-uV_mN_/pyce-2.0.0/setup.py", line 32, in <module>
  File "/tmp/easy_install-uV_mN_/pyce-2.0.0/pyce/__init__.py", line 36, in <module>
  File "/tmp/easy_install-uV_mN_/pyce-2.0.0/pyce/_crypto.py", line 52
    def __init__(self, message: str) -> None:
                              ^
SyntaxError: invalid syntax

alimp5 avatar Nov 07 '20 15:11 alimp5