Bug 1237074
| Summary: | Get error when installing packages with requirements.txt - python-2.x | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Guolei Sun <gusun> |
| Component: | Image | Assignee: | Jakub Hadvig <jhadvig> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Wenjing Zheng <wzheng> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.x | CC: | bparees, gpei, jokerman, libra-bugs, maszulik, mmccomas, xtian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-09-08 20:14:43 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Guolei Sun
2015-06-30 10:23:08 UTC
trusted host appears to only be valid for the python 3.3 cart which uses a different pip than the other 2. This was introduced by the fix for https://bugzilla.redhat.com/show_bug.cgi?id=1225291 we should probably add version guards around the adding of the TRUSTED_HOST arg. i'll see if i can get to it tomorrow. looks like Jakub had already fixed this here: https://github.com/openshift/origin-server/pull/6184 i tested it with 2.6 in a devenv and it's working now. Verified on the devenv_5569. Log: http://pastebin.test.redhat.com/293910 But there are some warning and syntax error in the log when installing python2.x, Please help to confirm this. remote: Installing collected packages: gunicorn, Django remote: Running setup.py install for gunicorn remote: warning: no previously-included files matching '__pycache__' found under directory '*' remote: warning: no previously-included files matching '*.py[co]' found under directory '*' remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/5593565b2ca48cece3000060/python/virtenv/lib/python2.6/site-packages/gunicorn/workers/_gaiohttp.py', 68, 26, ' yield from self.wsgi.close()\n')) remote: remote: Installing gunicorn_paster script to /var/lib/openshift/5593565b2ca48cece3000060/python/virtenv/bin remote: Installing gunicorn script to /var/lib/openshift/5593565b2ca48cece3000060/python/virtenv/bin remote: Installing gunicorn_django script to /var/lib/openshift/5593565b2ca48cece3000060/python/virtenv/bin --------------------------------------- remote: Running setup.py install for gunicorn remote: remote: warning: no previously-included files matching '__pycache__' found under directory '*' remote: warning: no previously-included files matching '*.py[co]' found under directory '*' remote: File "/var/lib/openshift/559355292ca48cece3000008/python/virtenv/lib/python2.7/site-packages/gunicorn/workers/_gaiohttp.py", line 68 remote: yield from self.wsgi.close() remote: ^ remote: SyntaxError: invalid syntax remote: remote: Installing gunicorn_paster script to /var/lib/openshift/559355292ca48cece3000008/python/virtenv/bin remote: Installing gunicorn script to /var/lib/openshift/559355292ca48cece3000008/python/virtenv/bin remote: Installing gunicorn_django script to /var/lib/openshift/559355292ca48cece3000008/python/virtenv/bin(In reply to Ben Parees from comment #3) > looks like Jakub had already fixed this here: > https://github.com/openshift/origin-server/pull/6184 > > i tested it with 2.6 in a devenv and it's working now. Can you mark this verified? (In reply to Ben Parees from comment #5) > Can you mark this verified? Hi, Ben Guolei mentioned in comment 4 that there's still some syntax error , can you help confirm if that need fix? Thanks I suspect it's not something we can fix, but i'll let our resident python expert Maciej weigh in. (In reply to Ben Parees from comment #7) > I suspect it's not something we can fix, but i'll let our resident python > expert Maciej weigh in. Please help to confirm this and I will mark as verified then. Thank you! Confirming, the error comes from the compilation process of all the *.py files. Since that file is targeted at python >= 3.3 it'll pop-up here. At current time you can safely ignore, and the only thing possible to do is updating pip installation, which in newer versions is ignoring that message [1]. This on the other hand is a limitation of packages we have and I think we cannot pass through atm. I'm ok with closing as is. [1] https://github.com/benoitc/gunicorn/issues/788#issuecomment-92877751 Thank you for the confirmation. |