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

import error when using submission widget #22

Closed
jdcourcol opened this issue Jun 22, 2017 · 4 comments
Closed

import error when using submission widget #22

jdcourcol opened this issue Jun 22, 2017 · 4 comments
Assignees

Comments

@jdcourcol
Copy link
Contributor

I ran through notebook week 3. Graded exercise as a newly created user:
image

@antonelepfl
Copy link
Contributor

antonelepfl commented Jun 22, 2017

@wvangeit
If we put the pip install and the import of the submission widget on the very top of the notebook (before !pip install -q bluepyopt==1.5.12 matplotlib==2.0.2 numpy==1.13.0)
And then in the end we just call the widget the error disappears.
Could you change that please?

@wvangeit
Copy link
Contributor

ok, interesting .... will have a look

@wvangeit
Copy link
Contributor

Do we know 'why' this happens ?
Not sure we should try to fix it before we know it won't affect other things

@wvangeit
Copy link
Contributor

Ok, we figured out why this happens. For future reference, the 'import neuron' statement sets the PYTHONHOME variable, and this messes up the pip / virtualenv in the collab.
To solve this, one should run:

import os
os.unsetenv('PYTHONHOME')

before every pip (or after importing neuron)

wvangeit added a commit that referenced this issue Jun 22, 2017
Fixes #22 by unsetting PYTHONHOME. Also deleted trail grader code
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

3 participants