Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when installing #287

Open
dalareo opened this issue May 5, 2016 · 9 comments
Open

Error when installing #287

dalareo opened this issue May 5, 2016 · 9 comments

Comments

@dalareo
Copy link

dalareo commented May 5, 2016

Hi @dirkcuys, I am trying to install Lernanta without Chef and Vagrant but...
When I try to execute the app

python manage.py whatever

I get:

Error: cannot import name setup
@dirkcuys
Copy link
Member

dirkcuys commented May 6, 2016

Hey @dalareo - what instructions did you follow to get lernanta setup?

@dalareo
Copy link
Author

dalareo commented May 6, 2016

@dirkcuys
Copy link
Member

dirkcuys commented May 6, 2016

I wonder if workon lernanta is causing trouble, I haven't used virtualenvwrapper recentky. Try creating a virtual environment by running virtualenv --system-site-packages venv in the lernanta folder and then activate it using source venv/bin/activiate. Then install requirements as per the docs:

pip install -r lernanta/lernanta/requirements/prod.txt
pip install -r lernanta/lernanta/requirements/dev.txt

It's been a while since I've installed lernanta from scratch! We're not actively developing it anymore - it's still running Django 1.3!

Let me know how it goes

@dalareo
Copy link
Author

dalareo commented May 6, 2016

I was already using virtualenv. I tried using the option --system-site-packages but I still get the same error. I have NEVER used virtualenvwrapper before. I will try the workon approach instead!
I know you're not actively developing learnanta anymore, we've talked about it in another issue-chat. Thank you very much for your patience with me @dirkcuys

I am looking for a lighter-than-EdX MOOC solution but your Jekyll course template is lacking some functionalities. We are developing a team-learning platform (checkout educaas.github.io and github.com/educaas, we are in a veeeery early stage) based on Rancher/Docker but including some standard learning resources as MOOC capability.

@dirkcuys
Copy link
Member

dirkcuys commented May 6, 2016

I actually meant that you shouldn't use virtualenvwrapper.

Since the setup required --system-site-packages, running it on anything newer than Ubuntu 12.04 could potentially be causing the problems.

Sorry, didn't register that we talked about this before :) Lernanta with some surgery could work for you - the course part is actually small compared to the whole project and could be lifted from the rest of the application.

I'm happy to help and be patient ;) - we can also help you out with software on a contract basis, drop me a mail at dirk @ p2pu.org if you're interested.

@dalareo
Copy link
Author

dalareo commented May 6, 2016

I tried with virtualenvwrapper but still get the same error:

Error: cannot import name setup

I am using 16.04!! We will have a group session next week and I will put on the table the possibility of counting on you on a contract basis. Thanks again!!

@dirkcuys
Copy link
Member

dirkcuys commented May 6, 2016

Running python -v manage.py shell seems to indicate that there's a problem with django_nose. I strongly suspect that it is related to outdated packages. Try running everything inside a docker image or virtual machine running Ubuntu 12.04 and see if you still get the error? Other than that I can't really help - would love to have the resources to update Lernanta

@dalareo
Copy link
Author

dalareo commented May 6, 2016

I tried the installation in a fresh 12.04 Docker container but I still get the same error

@dirkcuys
Copy link
Member

dirkcuys commented May 6, 2016

Ah, I think I know what's going on. Requirements aren't pinned to specific revisions. It seems like this commit in django-nose introduced the error we are seeing. You can try to install an earlier version of django-nose, probably something pre-2014.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants