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

Google colab some library is not showing #339

Open
ramaPatel01 opened this issue Sep 6, 2024 · 1 comment
Open

Google colab some library is not showing #339

ramaPatel01 opened this issue Sep 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ramaPatel01
Copy link

import torch
from pina.problem import TimeDependentProblem, SpatialProblem
from pina.operators import grad
from pina import Condition
from pina.span import Span
from pina import LabelTensor
import pandas as pd
from scipy.io import savemat
import os
import random
import numpy as np


ModuleNotFoundError Traceback (most recent call last)
in <cell line: 5>()
3 from pina.operators import grad
4 from pina import Condition
----> 5 from pina.span import Span
6 from pina import LabelTensor
7 import pandas as pd

ModuleNotFoundError: No module named 'pina.span'

similar error with Solver PINN "ImportError Traceback (most recent call last)
in <cell line: 4>()
2 import torch
3 from torch.nn import Softplus
----> 4 from pina import PINN, Plotter, LabelTensor
5 from pina.model import FeedForward
6 from problems.burgers_with_data import Burgers1D

ImportError: cannot import name 'PINN' from 'pina' (/usr/local/lib/python3.10/dist-packages/pina/init.py)"

@ramaPatel01 ramaPatel01 added the bug Something isn't working label Sep 6, 2024
@dario-coscia
Copy link
Collaborator

Hi @ramaPatel01 ! Can you provide the way you installed PINA on Colab?

I think you are using a very old version of PINA, can you also provided the version number (just run
python -c "import pina; print(pina.__version__)" from bash).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants