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

"No module named 'behresp'" in Colab #77

Closed
MaxGhenis opened this issue Sep 22, 2020 · 3 comments
Closed

"No module named 'behresp'" in Colab #77

MaxGhenis opened this issue Sep 22, 2020 · 3 comments

Comments

@MaxGhenis
Copy link
Contributor

MaxGhenis commented Sep 22, 2020

After installing behresp in Colab using the below commands (notebook), import behresp fails:

!wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh -bfp /usr/local
# Append path to be able to run packages installed with conda
import sys
# This must correspond to the conda Python version, which may differ from
# the base Colab Python installation.
sys.path.append('/usr/local/lib/python3.8/site-packages')
# Install PSL packages from Anaconda
!yes | conda install -c conda-forge paramtools
!yes | conda install -c PSLmodels taxcalc behresp

...
The following NEW packages will be INSTALLED:
...
behresp PSLmodels/linux-64::behresp-0.11.0-py38_0
...

import taxcalc  # No error.
import behresp

ModuleNotFoundError: No module named 'behresp'

This works fine when I run in a new conda environment locally.

@jdebacker
Copy link
Member

@MaxGhenis Do you still find this issue when installing behresp from conda-forge?

@MaxGhenis
Copy link
Contributor Author

Works now! Here's the notebook.

@jdebacker
Copy link
Member

Excellent - thanks for confirming.

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