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.

pipenv v11.10.2 requires gcc on Python <3.5 due to transitive scandir dependency

See original GitHub issue
Expected result

Expected to be able to install pipenv without needing gcc.

Actual result

Failed to install pipenv on Python versions earlier than 3.5 due to transitive dependency on scandir.

Steps to replicate

On a clean system, using a python version earlier than 3.5, run pip install pipenv:

Collecting pipenv
  Downloading https://files.pythonhosted.org/packages/ae/3f/49aef3c9b24acda0e5f9e681ae9f5d8113ebff16e15cb0c436b627791a7c/pipenv-11.10.2-py2-none-any.whl (6.4MB)
    100% |████████████████████████████████| 6.4MB 73.3MB/s
Requirement already satisfied: certifi in /usr/lib/python2.7/site-packages (from pipenv)
Requirement already satisfied: virtualenv in /usr/lib/python2.7/site-packages (from pipenv)
Requirement already satisfied: setuptools>=36.2.1 in /usr/lib/python2.7/site-packages (from pipenv)
Requirement already satisfied: virtualenv-clone>=0.2.5 in /usr/lib/python2.7/site-packages (from pipenv)
Requirement already satisfied: pip>=9.0.1 in /usr/lib/python2.7/site-packages (from pipenv)
Requirement already satisfied: pathlib2; python_version < "3.4" in /usr/lib/python2.7/site-packages (from pipenv)
Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from pathlib2; python_version < "3.4"->pipenv)
Collecting scandir; python_version < "3.5" (from pathlib2; python_version < "3.4"->pipenv)
  Downloading https://files.pythonhosted.org/packages/13/bb/e541b74230bbf7a20a3949a2ee6631be299378a784f5445aa5d0047c192b/scandir-1.7.tar.gz
Installing collected packages: pipenv, scandir
  Running setup.py install for scandir ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ovM7h_/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-U2JSRH-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    copying scandir.py -> build/lib.linux-x86_64-2.7
    running build_ext
    building '_scandir' extension
    creating build/temp.linux-x86_64-2.7
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c _scandir.c -o build/temp.linux-x86_64-2.7/_scandir.o
    unable to execute gcc: No such file or directory
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ovM7h_/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-U2JSRH-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ovM7h_/scandir/

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
techalchemycommented, May 7, 2018

New release is up, fixed

0reactions
lorengordoncommented, May 7, 2018

Lol, before I could even finish writing a commit message for the PR I was about to open. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve Python package dependencies with pipenv?
You likely have a mismatch in your sub-dependencies. First try clearing your dependency cache with $ pipenv lock --clear, then try the original...
Read more >
https://d13k9s5899twdr.cloudfront.net/product-file...
Due credit should be given to The Werken Company. (http://classworlds.werken.com/). THIS SOFTWARE IS PROVIDED BY THE WERKEN COMPANY AND CONTRIBUTORS ``AS ...
Read more >
Allegro free physical viewer 16. 6 pdf file downloads free software
NET Core 2 Console App Dependencies Issue on AzureCreate PDF file with default “zoom to page level” (pdfbox)How to export a special file...
Read more >
Bemoan News Daily debug native app Code Example
Answers related to “debug native app”. react native debugger · debug apk ... It doesn't seem to be a Python package or a...
Read more >
Gsap tutorial pdf file download windows 10
jsFile system permissionsWhat do I need to know to transfer a working Node project? ... [duplicate]how to execute a python script from javascript...
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