Closed
Bug 976578
Opened 11 years ago
Closed 11 years ago
ordereddict needed for honcho on python 2.6
Categories
(Socorro :: General, task)
Tracking
(Not tracked)
RESOLVED
FIXED
77
People
(Reporter: selenamarie, Assigned: rhelmer)
Details
07:46 < zoubi> | when launching honcho start in a vagrant instance (for dev) I have this error : pkg_resources.DistributionNotFound: ordereddict
Comment 1•11 years ago
|
||
I could fix the problem with the command:
easy_install ordereddict
Comment 2•11 years ago
|
||
Where does it say this? From starting the webapp? If so, there's something really wrong with out it's started because the file is there in webapp-django/vendor-local/lib/python/ordereddict.py
| Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Peter Bengtsson [:peterbe] from comment #2)
> Where does it say this? From starting the webapp? If so, there's something
> really wrong with out it's started because the file is there in
> webapp-django/vendor-local/lib/python/ordereddict.py
Here is how it's started by honcho:
https://github.com/mozilla/socorro/blob/master/Procfile#L1
Comment 4•11 years ago
|
||
If it's failing to load stuff from vendor-local/lib/python we're likely to have other more severe problems. Or perhaps this is just the first one.
Could it be because the `manage.py` needs to be started from within the ./webapp-django/ directory.
| Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Peter Bengtsson [:peterbe] from comment #4)
> If it's failing to load stuff from vendor-local/lib/python we're likely to
> have other more severe problems. Or perhaps this is just the first one.
>
> Could it be because the `manage.py` needs to be started from within the
> ./webapp-django/ directory.
n.b. in Procfile it is doing "cd webapp-django;" first - not sure why that shouldn't work :(
I can reproduce this BTW, and if I manually cd into webapp-django and run ./manage.py then it works, so I suspect it's something Procfile or honcho-specific in how it's treating the environment. I'll take a closer look, since I'm the one that added this anyway.
Assignee: nobody → rhelmer
Status: NEW → ASSIGNED
| Assignee | ||
Comment 6•11 years ago
|
||
OK so this isn't just vagrant - honcho needs ordereddict, and python2.6 doesn't provide it. I must've been using a virtualenv from 2.7 when I added this feature - sorry about that!
| Assignee | ||
Updated•11 years ago
|
Summary: Vagrant issue - pkg_resources.DistributionNotFound: ordereddict → ordereddict needed for honcho on python 2.6
Comment 7•11 years ago
|
||
It's there in vendor-local::
(socorro)peterbe@mpb:...$ ./manage.py shell
>>> import ordereddict
>>> ordereddict.__file__
'/Users/peterbe/dev/MOZILLA/SOCORRO/socorro/webapp-django/vendor-local/lib/python/ordereddict.pyc'
So it's not missing from the code.
https://github.com/mozilla/socorro/blob/master/webapp-django/vendor-local/lib/python/ordereddict.py
However, the original description is about `pkg_resources.DistributionNotFound: ordereddict` which isn't the same as `ImportError`. There must be some code that tries to figure out what version of ordereddict is installed or something.
I'd like to see the whole "error" and see if there are more clues in that.
Could it simply be that honcho itself needs ordereddict to function? If so, should we have something like requirements/honcho.txt?
| Assignee | ||
Comment 8•11 years ago
|
||
| Assignee | ||
Comment 9•11 years ago
|
||
(In reply to Peter Bengtsson [:peterbe] from comment #7)
> Could it simply be that honcho itself needs ordereddict to function? If so,
> should we have something like requirements/honcho.txt?
It is honcho itself. We install honcho into the primary Socorro virtualenv so we should just install it's dependencies there too, right? The instructions right now are to install the Socorro virtualenv, activate it, then run "honcho start"
Comment 10•11 years ago
|
||
Commits pushed to master at https://github.com/mozilla/socorro
https://github.com/mozilla/socorro/commit/0c135405f359cc92bbeacb4fbe8287ba86bd81c3
fixes bug 976578 - honcho needs ordereddict for python2.6
https://github.com/mozilla/socorro/commit/c9dc376aae78aa4bd0bbd09d3fee1e00608127b2
Merge pull request #1924 from rhelmer/bug976578-honcho-needs-ordereddict
fixes bug 976578 - honcho needs ordereddict for python2.6
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Target Milestone: --- → 77
You need to log in
before you can comment on or make changes to this bug.
Description
•