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

separated info lines into separate file #12

Closed
wants to merge 1 commit into from

Conversation

jameskhedley
Copy link

Installing couchdblogger in a Cloud Foundry environment fails because setup.py imports couchdblogger to get the version string, which in turn imports requests, which it doesn't have installed yet. So a minor refactoring solves this.

2015-11-04T19:18:13.84+0000 [STG]     ERR Cloning into 'compile-extensions'...
2015-11-04T19:18:14.66+0000 [STG]     OUT Submodule path 'compile-extensions': checked out 'ce9345a9a6e7b00266194cadd18dbef37e791a7b'
2015-11-04T19:18:14.96+0000 [STG]     OUT -------> Buildpack version 1.5.0
2015-11-04T19:18:15.10+0000 [STG]     OUT -----> Installing runtime (python-2.7.10)
2015-11-04T19:18:22.88+0000 [STG]     OUT -----> Installing dependencies with pip
2015-11-04T19:18:23.30+0000 [STG]     ERR You are using pip version 7.1.0, however version 7.1.2 is available.
2015-11-04T19:18:23.30+0000 [STG]     ERR You should consider upgrading via the 'pip install --upgrade pip' command.
2015-11-04T19:18:23.32+0000 [STG]     OUT        Collecting Flask (from -r requirements.txt (line 1))
2015-11-04T19:18:23.39+0000 [STG]     OUT          Downloading Flask-0.10.1.tar.gz (544kB)
2015-11-04T19:18:23.88+0000 [STG]     OUT        Collecting subprocess32 (from -r requirements.txt (line 2))
2015-11-04T19:18:23.91+0000 [STG]     OUT          Downloading subprocess32-3.2.6.tar.gz (51kB)
2015-11-04T19:18:24.16+0000 [STG]     OUT        Collecting uwsgi (from -r requirements.txt (line 3))
2015-11-04T19:18:24.21+0000 [STG]     OUT          Downloading uwsgi-2.0.11.2.tar.gz (782kB)
2015-11-04T19:18:24.99+0000 [STG]     OUT        Collecting cloudant (from -r requirements.txt (line 4))
2015-11-04T19:18:25.03+0000 [STG]     OUT          Downloading cloudant-0.5.10-py2-none-any.whl
2015-11-04T19:18:25.05+0000 [STG]     OUT        Collecting requests (from -r requirements.txt (line 5))
2015-11-04T19:18:25.15+0000 [STG]     OUT          Downloading requests-2.8.1-py2.py3-none-any.whl (497kB)
2015-11-04T19:18:25.27+0000 [STG]     OUT        Collecting couchdblogger (from -r requirements.txt (line 6))
2015-11-04T19:18:25.29+0000 [STG]     OUT          Downloading couchdblogger-0.1.2.tar.gz
2015-11-04T19:18:25.53+0000 [STG]     OUT            Complete output from command python setup.py egg_info:
2015-11-04T19:18:25.53+0000 [STG]     OUT            Traceback (most recent call last):
2015-11-04T19:18:25.53+0000 [STG]     OUT              File "<string>", line 20, in <module>
2015-11-04T19:18:25.53+0000 [STG]     OUT              File "/tmp/pip-build-cq_BWJ/couchdblogger/setup.py", line 15, in <module>
2015-11-04T19:18:25.53+0000 [STG]     OUT                import couchdblogger
2015-11-04T19:18:25.53+0000 [STG]     OUT              File "/tmp/pip-build-cq_BWJ/couchdblogger/src/couchdblogger.py", line 8, in <module>
2015-11-04T19:18:25.53+0000 [STG]     OUT                import requests
2015-11-04T19:18:25.53+0000 [STG]     OUT            ImportError: No module named requests
2015-11-04T19:18:25.53+0000 [STG]     OUT            ----------------------------------------
2015-11-04T19:18:25.66+0000 [STG]     ERR Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cq_BWJ/couchdblogger
2015-11-04T19:18:25.71+0000 [STG]     OUT Staging failed: Buildpack compilation step failed
2015-11-04T19:18:25.88+0000 [API]     ERR encountered error: App staging failed in the buildpack compile phase

@histrio
Copy link
Owner

histrio commented Nov 5, 2015

Hi @jameskhedley
Thanks for the bug report and PR. Issue is fixed now.

@histrio histrio closed this Nov 5, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants