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

Installation failure with pip #6

Open
scottclowe opened this issue Jul 24, 2021 · 0 comments
Open

Installation failure with pip #6

scottclowe opened this issue Jul 24, 2021 · 0 comments

Comments

@scottclowe
Copy link

Installation of the latest release of py-pandoc (2.9.2.1.2) fails on Ubuntu 18.04.5 for both Python 3.6 and Python 3.8 using the latest version of pip (21.1.3).

Python 3.6 error message:

$ pip 21.1.3 from /path/to/py3.6-venv/lib/python3.6/site-packages/pip (python 3.6)
$
$ pip install py-pandoc
/path/to/py3.6-venv/lib/python3.6/site-packages/secretstorage/dhcrypto.py:16: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
/path/to/py3.6-venv/lib/python3.6/site-packages/secretstorage/util.py:25: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
Collecting py-pandoc
  Downloading py-pandoc-2.9.2.1.2.tar.gz (10 kB)
Building wheels for collected packages: py-pandoc
  Building wheel for py-pandoc (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /path/to/py3.6-venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-hma45mww
       cwd: /tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/
  Complete output (38 lines):
  running bdist_wheel
  running build
  installing to build/bdist.linux-x86_64/wheel
  running install
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py", line 172, in <module>
      ) if not conda else {})
    File "/path/to/py3.6-venv/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/path/to/py3.6-venv/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 326, in run
      self.run_command('install')
    File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py", line 58, in run
      excract_tar_and_move_files(url=URL, **spec)
    File "/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py", line 141, in excract_tar_and_move_files
      raise e
    File "/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py", line 119, in excract_tar_and_move_files
      raise AssertionError('pip download error:\n\n{}\n\nOr pip download behaviour changed. Downgrade pip or wait for bugfix in this case.'.format(stderr))
  AssertionError: pip download error:
  
  /path/to/py3.6-venv/lib/python3.6/site-packages/secretstorage/dhcrypto.py:16: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
    from cryptography.utils import int_from_bytes
  /path/to/py3.6-venv/lib/python3.6/site-packages/secretstorage/util.py:25: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
    from cryptography.utils import int_from_bytes
  ERROR: File "setup.py" not found for legacy project https://anaconda.org/conda-forge/pandoc/2.9.2.1/download/linux-64/pandoc-2.9.2.1-0.tar.bz2 (from -r /tmp/tmpzmyce92g/requirements.txt (line 1)).
  
  
  Or pip download behaviour changed. Downgrade pip or wait for bugfix in this case.
  ----------------------------------------
  ERROR: Failed building wheel for py-pandoc
  Running setup.py clean for py-pandoc
Failed to build py-pandoc
Installing collected packages: py-pandoc
    Running setup.py install for py-pandoc ... error
    ERROR: Command errored out with exit status 1:
     command: /path/to/py3.6-venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-fbn_103y/install-record.txt --single-version-externally-managed --compile --install-headers /path/to/py3.6-venv/include/site/python3.6/py-pandoc
         cwd: /tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/
    Complete output (29 lines):
    running install
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py", line 172, in <module>
        ) if not conda else {})
      File "/path/to/py3.6-venv/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py", line 58, in run
        excract_tar_and_move_files(url=URL, **spec)
      File "/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py", line 141, in excract_tar_and_move_files
        raise e
      File "/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py", line 119, in excract_tar_and_move_files
        raise AssertionError('pip download error:\n\n{}\n\nOr pip download behaviour changed. Downgrade pip or wait for bugfix in this case.'.format(stderr))
    AssertionError: pip download error:
    
    /path/to/py3.6-venv/lib/python3.6/site-packages/secretstorage/dhcrypto.py:16: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
      from cryptography.utils import int_from_bytes
    /path/to/py3.6-venv/lib/python3.6/site-packages/secretstorage/util.py:25: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
      from cryptography.utils import int_from_bytes
    ERROR: File "setup.py" not found for legacy project https://anaconda.org/conda-forge/pandoc/2.9.2.1/download/linux-64/pandoc-2.9.2.1-0.tar.bz2 (from -r /tmp/tmpwvik64qr/requirements.txt (line 1)).
    
    
    Or pip download behaviour changed. Downgrade pip or wait for bugfix in this case.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /path/to/py3.6-venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pc5bm0lv/py-pandoc_a991d3af2194481cbcf816aa0afb2d30/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-fbn_103y/install-record.txt --single-version-externally-managed --compile --install-headers /path/to/py3.6-venv/include/site/python3.6/py-pandoc Check the logs for full command output.

Python 3.8 error message:

$ pip --version
pip 21.1.3 from /path/to/py3.8-venv/lib/python3.8/site-packages/pip (python 3.8)
$
$ pip install py-pandoc
Collecting py-pandoc
  Using cached py-pandoc-2.9.2.1.2.tar.gz (10 kB)
Building wheels for collected packages: py-pandoc
  Building wheel for py-pandoc (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /path/to/py3.8-venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py'"'"'; __file__='"'"'/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-czb3kuw9
       cwd: /tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/
  Complete output (34 lines):
  running bdist_wheel
  running build
  installing to build/bdist.linux-x86_64/wheel
  running install
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py", line 152, in <module>
      setup(
    File "/path/to/py3.8-venv/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/lib/python3.8/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/local/lib/python3.8/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/path/to/py3.8-venv/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 335, in run
      self.run_command('install')
    File "/usr/local/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py", line 58, in run
      excract_tar_and_move_files(url=URL, **spec)
    File "/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py", line 141, in excract_tar_and_move_files
      raise e
    File "/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py", line 119, in excract_tar_and_move_files
      raise AssertionError('pip download error:\n\n{}\n\nOr pip download behaviour changed. Downgrade pip or wait for bugfix in this case.'.format(stderr))
  AssertionError: pip download error:
  
  ERROR: File "setup.py" not found for legacy project https://anaconda.org/conda-forge/pandoc/2.9.2.1/download/linux-64/pandoc-2.9.2.1-0.tar.bz2 (from -r /tmp/tmpqtfuigwd/requirements.txt (line 1)).
  
  
  Or pip download behaviour changed. Downgrade pip or wait for bugfix in this case.
  ----------------------------------------
  ERROR: Failed building wheel for py-pandoc
  Running setup.py clean for py-pandoc
Failed to build py-pandoc
Installing collected packages: py-pandoc
    Running setup.py install for py-pandoc ... error
    ERROR: Command errored out with exit status 1:
     command: /path/to/py3.8-venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py'"'"'; __file__='"'"'/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-2gqj69t9/install-record.txt --single-version-externally-managed --compile --install-headers /path/to/py3.8-venv/include/site/python3.8/py-pandoc
         cwd: /tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/
    Complete output (25 lines):
    running install
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py", line 152, in <module>
        setup(
      File "/path/to/py3.8-venv/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/lib/python3.8/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/lib/python3.8/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py", line 58, in run
        excract_tar_and_move_files(url=URL, **spec)
      File "/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py", line 141, in excract_tar_and_move_files
        raise e
      File "/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py", line 119, in excract_tar_and_move_files
        raise AssertionError('pip download error:\n\n{}\n\nOr pip download behaviour changed. Downgrade pip or wait for bugfix in this case.'.format(stderr))
    AssertionError: pip download error:
    
    ERROR: File "setup.py" not found for legacy project https://anaconda.org/conda-forge/pandoc/2.9.2.1/download/linux-64/pandoc-2.9.2.1-0.tar.bz2 (from -r /tmp/tmp48wmgg4p/requirements.txt (line 1)).
    
    
    Or pip download behaviour changed. Downgrade pip or wait for bugfix in this case.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /path/to/py3.8-venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py'"'"'; __file__='"'"'/tmp/pip-install-87e863co/py-pandoc_2de21f5597b74b4abc51dfe3298e78ae/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-2gqj69t9/install-record.txt --single-version-externally-managed --compile --install-headers /path/to/py3.8-venv/include/site/python3.8/py-pandoc Check the logs for full command output.
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