Error when running ./manage.py loaddata demo_events

RESOLVED WORKSFORME

Status

Mozilla Reps
reps.mozilla.org
RESOLVED WORKSFORME
3 years ago
a month ago

People

(Reporter: bsilverberg, Unassigned)

Tracking

Details

(Reporter)

Description

3 years ago
I was following the installation instructions and when I got to the step where I needed to execute the command:

./manage.py loaddata demo_events

Running it threw the following exception:

ImportError: Problem installing fixture '/Users/bsilverberg/gitRepos/remo/remo/events/fixtures/demo_events.json': dlopen(/Users/bsilverberg/.virtualenvs/remo/lib/python2.7/site-packages/Crypto/Cipher/_AES.so, 2): Symbol not found: _rpl_malloc
  Referenced from: /Users/bsilverberg/.virtualenvs/remo/lib/python2.7/site-packages/Crypto/Cipher/_AES.so
  Expected in: flat namespace
 in /Users/bsilverberg/.virtualenvs/remo/lib/python2.7/site-packages/Crypto/Cipher/_AES.so


Note that the other loaddata calls worked (for demo_users and demo_functional_areas).

I am on OS X 10.10 and Python 2.7.6
(Reporter)

Comment 1

3 years ago
It turns out I see this same error when trying to run the site as well, so it's not specifically related to loaddata demo_events. I will investigate further.
(Reporter)

Comment 2

3 years ago
I seem to have fixed it, but I cannot claim to have understood what I did. :P

Based on this post: https://bugs.launchpad.net/pycrypto/+bug/1096207

I reinstalled the requirements specifying the environment variable `ac_cv_func_malloc_0_nonnull`, like so:

ac_cv_func_malloc_0_nonnull=yes pip install -r requirements/dev.txt

and that seems to have resolved the issue. I'm not sure if this is worth documenting somewhere in case someone else comes across the problem.
Status: NEW → RESOLVED
Last Resolved: a month ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.