-
Notifications
You must be signed in to change notification settings - Fork 27
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
geovista.pantry is not a package - VS Code #965
Comments
📢 Nice one! Your first issue! Thanks for telling us how to improve |
Hey @felixdellner! Great to hear from you, and thanks for raising this issue 👍 Thanks also for including the I'm guessing that you're using a development installation of I suspect this might be an issue with the lazy-loader package (and Would it be possible for you to set the For reference see here and here. Also, a quick fix alternative for the example in question might be to explicitly import geovista as gv
import geovista.pantry # <------ force the import
from geovista.pantry.data import nemo_orca2_gradient
from geovista.pantry.meshes import ZLEVEL_SCALE_CLOUD
import geovista.theme Could you also give that a try please? Thanks 👍 |
@all-contributors please add @felixdellner for bug and ideas |
I've put up a pull request to add @felixdellner! 🎉 |
@bjlittle Huge thanks for the quick reply Bill and the great library! However, now I get a blank frame. (Assuming you meant |
@felixdellner My pleasure! Thanks for getting back 👍 Okay, this is really useful to know. I might document this for the community as a known issue within There may be a way to resolve this without disabling lazy importing, but that'll require a wee bit of investigation on my behalf 👍 Yup, just setting the environment variable to anything triggers disabling the lazy loader. Nice one. So are you happy for now with this work around? If so, then please close this issue and I'll spin up another separate one to follow-up with some investigations. Otherwise, happy to keep this issue open and assist further, if I can. Thanks 👍 |
What do you mean? Can you explain further or show me a screenshot? |
@felixdellner I've done a bit more digging into this, and I've decided to re-open this issue as I believe that I've not fully implemented lazy loading correctly within I'd like to attempt to re-address this, if you've still got the time and motivation to kick the tyres ? |
🐛 Bug Report
ModuleNotFoundError: No module named 'geovista.pantry.data'; 'geovista.pantry' is not a package
How to Reproduce
Trying to run the examples provided here gives the above error, specifically this line raises the error
from geovista.pantry.data import nemo_orca2_gradient
Expected Behaviour
A working example :)
Environment
Tried
or
Additional Context
This only happens in Visual Studio Code - in a separate Jupyter Notebook it runs as expected (where I however can not get VTK to run, but I think this might be my own fault, otherwise I'll submit another issue!)
The text was updated successfully, but these errors were encountered: