Closed Bug 1123355 Opened 9 years ago Closed 7 years ago

Error when running ./manage.py loaddata demo_events

Categories

(Mozilla Reps Graveyard :: reps.mozilla.org, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: bsilverberg, Unassigned)

Details

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
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.
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
Closed: 7 years ago
Resolution: --- → WORKSFORME
Product: Mozilla Reps → Mozilla Reps Graveyard
You need to log in before you can comment on or make changes to this bug.