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

bug with pygran #9

Open
estebanpatino21 opened this issue Jul 14, 2023 · 3 comments
Open

bug with pygran #9

estebanpatino21 opened this issue Jul 14, 2023 · 3 comments

Comments

@estebanpatino21
Copy link

Hello, I already have LIGGHTS installed on my computer, run the examples and display them in ParaView and it worked perfectly. Understanding the LIGGGHTS scripts is difficult, that's why I'm trying to install pygran but it's not working.

Traceback (most recent call last):
File "compaction.py", line 1, in
from pygran import simulation
ModuleNotFoundError: No module named 'pygran'

I read the comments of the other reported bugs and tried this:

pip uninstall pygran -y
pip install pygran[extra]

To confirm you have the right version, run: python -c "import pygran; print('pygran version = ', pygran.version)"

But it still doesn't work:

Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'pygran' has no attribute 'version'

Using pip list yes i see pygran 1.4.0

My goal is to run a triaxial compression test of a sand.

I have windows 11 and install ubuntu from the microsoft store:
Ubuntu 2204.2.33.0
In ubuntu I have two versions of python 3.10.6 and 3.7.17, for recommendations I set version 3.7.17 as the default

I hope you can help me with this installation or give me advice to reach my goal.

Thank you so much.

Esteban Patiño
[email protected]
Civil engineering student
National university of Colombia

@anabiman
Copy link
Owner

Does this work?

python -c "import pygran; print('pygran version = ', pygran.__version__)

@estebanpatino21
Copy link
Author

No. The same error appears again:

Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'pygran'

@anabiman
Copy link
Owner

It should work for a fresh installation of pygran. How are you installing pygran? I suggest you purge all pygran installation(s) then run:

pip install pygran

If you still cannot import pygran, then your environment might be broken. Are you running this in a virtual environment? Which OS are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants