unable to load package '/Users/hammad/.modular/pkg/packages.modular.com_mojo/lib/mojo/stdlib.mojopkg

I just started working on an educational physics engine when suddenly mojo interpreter got angry at me for no reason and started throwing this error:
unable to load package '/Users/hammad/.modular/pkg/packages.modular.com_mojo/lib/mojo/stdlib.mojopkg'mojo
unable to load package '/Users/hammad/.modular/pkg/packages.modular.com_mojo/lib/mojo/stdlib.mojopkg'mojo
Code:
struct System:
elasticPotentialEnergy = 0.0
kineticEnergy = 0.0
gravitaionalPotentialEnergy = 0.0
...
struct System:
elasticPotentialEnergy = 0.0
kineticEnergy = 0.0
gravitaionalPotentialEnergy = 0.0
...
What's wrong?
3 Replies
Ehsan M. Kermani (Modular)
Did this happen in mojo repl, jupyter notebook? Is this all the error message you get? If not, please share the complete error message.
Hammad Ali
Hammad AliOP9mo ago
I was using vscode. I've restarted the IDE and the computer to discover that the error had disappeared. Was this a problem with vscode or Mojo?
Ehsan M. Kermani (Modular)
Hard to tell. Glad it's fixed.
Want results from more Discord servers?
Add your server