OPENi-ict / api-framework

0 stars 2 forks source link

Failing to run during dev environment setup #41

Open philipobrien opened 10 years ago

philipobrien commented 10 years ago

During setup command python manage.py runserver 0.0.0.0:8889 is resulting in the following error

Traceback (most recent call last):
  File "manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
mpetyx commented 10 years ago

that means that you have installed the dependencies correctly. Most probably you missed django itself while installing

philipobrien commented 10 years ago

That's what I assumed, but I'm following the build steps exactly

mpetyx commented 10 years ago

could you please paste here the github url from where you follow the steps? The exact file of guidelines to see if there is something wrong. Thank you

philipobrien commented 10 years ago

It happens when I follow the README steps for setting up the open-dev-env

mpetyx commented 10 years ago

at some point it runs this command. virtualenv venv if this crashes, all the rest is crashing. but i do not see that been installed in this file. Maybe somewhere else. Are you executing the script line by line or you are trying through the vagrant environment?

philipobrien commented 10 years ago

I'm running the scripts from within the vm after it has finished provisioning. It worked for me before, but is now failing. Have you spun up a vagrant box for the dev-env since the latest commits?

mpetyx commented 10 years ago

no no unfortunately. so, for some reason something has changed. i will try to tomorrow to do exactly that. thank you for identifying this working issue.

philipobrien commented 10 years ago

So it seems that the problem is not executing the venv python version, so

python manage.py runserver 0.0.0.0:8889

should be

venv/bin/python manage.py runserver 0.0.0.0:8889