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

docker build hung up on configparser install #164

Open
athornto2 opened this issue Apr 2, 2020 · 2 comments
Open

docker build hung up on configparser install #164

athornto2 opened this issue Apr 2, 2020 · 2 comments

Comments

@athornto2
Copy link

Docker build is failing at install of configparser. I've tried replacing the requirements.txt call with a custom list calling out an older version in case it was a versioning issue, but continues to attempt install of 5.0.

Ideas for how to make this dependency work or how to temporarily skip it?

Searching for configparser>=3.5.0
Reading https://pypi.org/simple/configparser/
Downloading https://files.pythonhosted.org/packages/e5/7c/d4ccbcde76b4eea8cbd73b67b88c72578e8b4944d1270021596e80b13deb/configparser-5.0.0.tar.gz#sha256=2ca44140ee259b5e3d8aaf47c79c36a7ab0d5e94d70bd4105c03ede7a20ea5a1
Best match: configparser 5.0.0
Processing configparser-5.0.0.tar.gz
Writing /tmp/easy_install-bfIL3V/configparser-5.0.0/setup.cfg
Running configparser-5.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-bfIL3V/configparser-5.0.0/egg-dist-tmp-CotrW6
error: Setup script exited with error: 'egg_base' must be a directory name (got src)
The command '/bin/sh -c sed -i 's/jira>=1.0.10/jira>=1.0.10,<1.0.14/g' setup.py && python setup.py install && pip install apscheduler>=3.3.0 aws-requests-auth>=0.3.0 blist>=1.3.6 boto3>=1.4.4 cffi>=1.11.5 croniter>=0.3.16 elasticsearch>=7.0.0 envparse>=0.2.0 exotel>=0.1.3 "jira>=1.0.10,<1.0.15" jsonschema>=3.0.2 mock==3.0.5 prison>=0.1.2 py-zabbix==1.1.3 PyStaticConfiguration>=0.10.3 "python-dateutil>=2.6.0,<2.7.0" python-magic>=0.4.15 PyYAML>=5.1 requests>=2.0.0 stomp.py==4.1.23 texttable>=0.8.8 thehive4py>=1.4.4 twilio==6.0.0' returned a non-zero code: 1

@athornto2
Copy link
Author

athornto2 commented Apr 2, 2020

Solution found, added line to keep configparser under version 5.0

RUN sed -i 's/jira>=1.0.10/jira>=1.0.10,<1.0.14/g' setup.py &&
sed -i 's/configparser>=3.5.0/configparser>=3.5.0,<5.0.0/g' setup.py &&
python setup.py install &&
pip install -r requirements.txt

@boddumanohar
Copy link

the above modification worked for me.

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

2 participants