Closed
Bug 1134740
Opened 11 years ago
Closed 11 years ago
Make vendor packages be used in preference to those globally installed
Categories
(Tree Management :: Treeherder, defect, P1)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: emorley)
References
Details
Attachments
(1 file)
Currently we:
sys.path.append(path('..', 'vendor'))
Rather than:
sys.path.insert(1, path('..', 'vendor'))
The site-packages version will be seen first - and unfortunately we have old versions of things like datasource in there, which is causing bug 1134140.
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8566643 -
Flags: review?(mdoglio)
Comment 2•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder-service
https://github.com/mozilla/treeherder-service/commit/c59ff78589679138e2698c9c0ccfcdfcb81ec427
Bug 1134740 - Use vendor packages in preference to globally installed
There is currently duplication between the packages in vendor/ and those
globally installed on stage/production. This change ensures we use those
in vendor/ in preference to those in site-packages & so are using the
version we expected.
| Assignee | ||
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Attachment #8566643 -
Flags: review?(mdoglio) → review+
| Assignee | ||
Comment 3•11 years ago
|
||
Confirmation this has worked - compare the paths for datasource in these stack traces before/after:
Traceback (most recent call last):
...
File "/usr/lib/python2.7/site-packages/datasource/bases/SQLHub.py", line 245, in disconnect if self.connection[host_type]['con_obj'].open:
AttributeError: 'NoneType' object has no attribute 'open'
Traceback (most recent call last):
...
File "/data/www/treeherder.allizom.org/treeherder-service/treeherder/../vendor/datasource/bases/SQLHub.py", line 245, in disconnect if self.connection[host_type]['con_obj'].open:
AttributeError: 'NoneType' object has no attribute 'open'
You need to log in
before you can comment on or make changes to this bug.
Description
•