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 install fails for 0.10.0

See original GitHub issue

cfn-lint version: (cfn-lint --version)

0.10.0

Description of issue.

My pipeline started failing when installing the latest version via pip.

example:

pip install cfn-lint==0.10.0

[...]
.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    copying regex_3/regex.py -> build/lib.linux-x86_64-3.7
    copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.7
    copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.7
    running build_ext
    building '_regex' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/regex_3
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c regex_3/_regex.c -o build/temp.linux-x86_64-3.7/regex_3/_regex.o
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-r143_0dz/regex/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-record-467tj48_/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-r143_0dz/regex/

Version 0.9.2 works well.

Replicate with:

docker run --rm -it python:3.7.1-alpine3.8 /bin/sh -c 'pip install cfn-lint==0.10.0'

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kddejongcommented, Dec 6, 2018

Pull request #508 adds the ability to do some level of integration testing. This issue would have been caught if we were doing this test. So once merged, going forward, our travis tests will include docker run --rm -it -v ${PWD}:/cfnlint -w /cfnlint python:3.7.1-alpine3.8 /bin/sh -c 'pip3 install -e . && cfn-lint test/fixtures/templates/good/generic.yaml We can of course expand this as needed but figured this was a good spot to start.

1reaction
kddejongcommented, Dec 4, 2018

@shibuyaku We will try to do a better job including that in the release notes. My ideal goal would be to run a test like what was mentioned with the created package. docker run --rm -it python:3.7.1-alpine3.8 /bin/sh -c 'pip install cfn-lint==0.10.0' (slightly adapted for the local package). Our goal has been to keep the dependencies at a minimum and requiring an outside item like gcc would absolutely fall into that. Unfortunately we missed this dependency this time. Thanks for reporting this and your patience in our response. The new version has been published and no longer requires regex

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pip install fails for 0.10.0 · Issue #504 - GitHub
My pipeline started failing when installing the latest version via ... Pip install fails for 0.10.0 #504 ... pip install cfn-lint==0.10.0.
Read more >
pip Install Third-Party Library Error
It indicates that the network has timed out, and there is a problem connecting to pypi.org . This is the website hosting the...
Read more >
Changelog - pip documentation v22.3.1
Fix pip install issues using a proxy due to an inconsistency in how Requests is currently handling variable precedence in ... Upgrade pep517...
Read more >
Installation — pyradiomics 0.0.1 documentation - Read the Docs
Ensure that you have python installed on your machine, at least version 2.7 or 3.4. Clone the repository: git clone git://github.com/Radiomics/pyradiomics ...
Read more >
Why is python using 3.8.1 and 3.9, then fail to install packages ...
Why is python using 3.8.1 and 3.9, then fail to install packages (ERROR: Package pkg requires a different Python: 3.8.1 not in '>=3.9.0')?...
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