-
Notifications
You must be signed in to change notification settings - Fork 641
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
Installation Instructions for Google Colab Platform #460
Comments
This seems to work:
|
Did that solve your problem @sugatoray? |
Hello @ChristopherHogan thank you for replying. I tried your solution and got an error for the following command:
The error was:
I am not very savvy with which options I should use and what the command would look like then. If you could kindly help me out here I will really appreciate that. |
Okay, I made some progress but got stuck at another error. I changed the command
The warning message was:
When I tried running the following command I got an error:
|
I don't know anything about Google Colaboratory but it seems to save the VM state and prevent modifications to PATH. If I |
Thank you @ChristopherHogan. |
This this for setting the pythonpath, |
I did !rm '-rf /usr/local' before I run @sugatoray instruction, but I received the following error. ModuleNotFoundError: No module named 'meep' |
I've tried running And with that it works importing meep in google colab, but when you call functions like Vector3, Medium, etc. It tells you
Thanks ! |
@Alex-l-r The |
@danielwboyce then i don't know what I have installed there lol. Thanks for the answer ! Then i'm back the point of @8192A of using the commands given up there but unable to import meep |
Hello @pierreluc-plt currently I've been able to make it work in the actual version of google collab with this:
Then you can load meep
And the you should be able to run it. It has the drawback of downloading and installing meep everytime you open the notebook, since collab can use Google Drive sure must be a way to have it downloaded there and just "load" those files, but well, it works fine and you are sure you have always the last version of meep. I hope this helps :) |
It works! Thanks @Alex-l-r ! |
To install meep in colab I ran the code:- import sys Download miniconda!wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh Install packages from Anaconda!conda install -y -c conda-forge --prefix /usr/local pymeep Append path to be able to run packages installed with condasys.path.append('/content/anaconda/envs/mp/lib/python3.8/site-packages/') and when I run :- I get the error:-AttributeError Traceback (most recent call last) AttributeError: module 'meep' has no attribute 'vector3' Any help would be much appreciated. |
The google colab platform runs on Ubuntu version: "17.10 (Artful Aardvark)"
I tried installing Meep by using the following command and the installation failed. Please provide a working set of commands or other means to be able to use Meep in Google Colab Platform.
Command used in Colab to install meep:
!apt-get install meep h5utils
Google Colaboratory Platform: https://colab.research.google.com
The text was updated successfully, but these errors were encountered: