You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)"
The text was updated successfully, but these errors were encountered:
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).
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)"
The text was updated successfully, but these errors were encountered: