question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip 19.0 breaks installation of pandas on python 3.4

See original GitHub issue

Environment

  • pip version: 19.0
  • Python version: 3.4
  • OS: Ubuntu 14.04

Description

With the release of pip 19.0, our script for building a Cython extension has broken, at least in Ubuntu 14.04 environments (probably because they’re still using Python 3.4). Specifically, pip install pandas now fails.

Expected behavior

While I understand that pip 19.1 will drop support for Python 3.4, I didn’t expect that in 19.0, nor in this way. I would expect a deprecation warning and for things to continue working as before.

How to Reproduce

  1. Set up an Ubuntu 14.04 environment.
  2. Upgrade to pip 19.0.
  3. pip install pandas.

Output

$ lsb_release -a
...
Description:	Ubuntu 14.04.5 LTS

$ virtualenv -p python3 a
Running virtualenv with interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in a/bin/python3
Also creating executable in a/bin/python
Installing setuptools, pip...done.
$ source a/bin/activate
(a)$ python --version
Python 3.4.3
(a)$ pip install --upgrade pip
Downloading/unpacking pip from https://files.pythonhosted.org/packages/60/64/73b729587b6b0d13e690a7c3acd2231ee561e8dd28a58ae1b0409a5a2b20/pip-19.0-py2.py3-none-any.whl#sha256=249ab0de4c1cef3dba4cf3f8cca722a07fc447b1692acd9f84e19c646db04c9a
  Downloading pip-19.0-py2.py3-none-any.whl (1.4MB): 1.4MB downloaded
Installing collected packages: pip
  Found existing installation: pip 1.5.4
    Uninstalling pip:
      Successfully uninstalled pip
Successfully installed pip
Cleaning up...
(a)$ pip --version
pip 19.0 from /home/jenkins-slave/a/lib/python3.4/site-packages/pip (python 3.4)
(a)$ pip install pandas
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Collecting pandas
  Using cached https://files.pythonhosted.org/packages/08/01/803834bc8a4e708aedebb133095a88a4dad9f45bbaf5ad777d2bea543c7e/pandas-0.22.0.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  Complete output from command /home/jenkins-slave/a/bin/python3 /home/jenkins-slave/a/lib/python3.4/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpsknqc6o3:
  Traceback (most recent call last):
    File "/home/jenkins-slave/a/lib/python3.4/site-packages/pip/_vendor/pep517/_in_process.py", line 207, in <module>
      main()
    File "/home/jenkins-slave/a/lib/python3.4/site-packages/pip/_vendor/pep517/_in_process.py", line 197, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/jenkins-slave/a/lib/python3.4/site-packages/pip/_vendor/pep517/_in_process.py", line 54, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-z5ha9gs9/overlay/lib/python3.4/site-packages/setuptools/build_meta.py", line 115, in get_requires_for_build_wheel
      return _get_build_requires(config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-z5ha9gs9/overlay/lib/python3.4/site-packages/setuptools/build_meta.py", line 101, in _get_build_requires
      _run_setup()
    File "/tmp/pip-build-env-z5ha9gs9/overlay/lib/python3.4/site-packages/setuptools/build_meta.py", line 85, in _run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 27, in <module>
      import versioneer
  ImportError: No module named 'versioneer'
  
  ----------------------------------------

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dstufftcommented, Jan 23, 2019

@marcosamorim You’re looking for #6158, this appears to be a different issue.

0reactions
lock[bot]commented, May 30, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not able to install pandas using pip - Stack Overflow
I'm using python 3.4 on windows10. Check that pip is in your PATH environment. If it is, just type pip install pandas in...
Read more >
Installation — pandas 0.19.2 documentation
Installing from PyPI​​ pandas can be installed via pip from PyPI. This will likely require the installation of a number of dependencies, including...
Read more >
Changelog - pip documentation v22.3.1
When this field is present for a release link, pip will ignore the download when installing to a Python version that doesn't satisfy...
Read more >
pandas · PyPI
pandas is a Python package that provides fast, flexible, and expressive data structures designed to make working with "relational" or "labeled" data both...
Read more >
What's New In Python 3.9 — Python 3.11.1 documentation
You should check for DeprecationWarning in your code¶. When Python 2.7 was still supported, a lot of functionality in Python 3 was kept...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found