-
Notifications
You must be signed in to change notification settings - Fork 16
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
ValueError: Could not convert string to float #help #value_error #7
Comments
Which version pf pygran are you using and how did you install it? |
Please use version pip install pygran[extra] should install pygran and all its extra dependencies. For running specific scripts with plotting/interactive visualization, you might need to install additional requirements like matplotlib, etc. |
Try removing pip uninstall pygran -y
pip install pygran[extra] To confirm you have the right version, run: |
I can run the multisphere / rotating tumbler just fine. Where are you getting your material definitions from? Or how are you defining them? In the original script, |
|
The script you posted runs just fine on my system. |
Th is what I get when I import
|
Have you tried running the script directly from the WSL2 terminal i.e. without Jupyter notebook or VS Code ? |
I have modified script to run it directly Ubuntu terminal. The script is as follows:
However the output or run is stuck at the The output is shown here:
|
The stalling is due to pygran trying to find the DEM engine (default is liggghts) library. My bet is you don't have it installed on your system. |
Try the following: git clone https://github.com/anabiman/pyliggghts
cd pyliggghts
python setup.py build This will attempt to compile P.S. The old LIGGGHTS code (3.8.0) from CFDEM is no longer supported and cannot be compiled with the latest versions of gcc. |
I have the old liggghts from CFDEM, i will work on the solution proposed by you. |
If u already have |
Would you please share details or step wise instructions. I have |
You're missing the header files. These are packaged on Ubuntu with the sudo apt install libvtk9.1-dev |
I run the command but fell into error. |
I dont know what it's exactly called (I'm not on Ubuntu), I was just showing an example. Search for it with |
According to launchpad, the header files are stored in the the pkg |
Can pyliggghts be compiled on native windows? Without WSL Ubuntu? |
It can but hard to do and would require a lot of changes to the make files. |
I am working to resolve the issue, but I am unable to find solution for vtk problem. |
Were you able to install |
I am extracting files for vtk9.1 at the moment, then I will attempt to install it. |
If you're on ubuntu, it should be available via aptitude i.e. no need to manually install the header files. |
I am on the WSL2 Ubuntu. I have tried the official link but in vain. The link is here |
I already asked you to search for the library via aptitude: |
Here is the output from the command. I cannot see vtk9.1
|
I followed the instructions but now I am getting new error and it appears to be a known issue of liggghts |
Well I packaged pyliggghts so it would work out of the box with vtk9.1. I can automate the cmake build process to make this a smoother process and get the compilation to work with previous versions of vtk. I'll look into this more closely in the weekend. I'm assuming you installed the header library files, right? u ran |
I installed the header files, but now there is different error originating from LAMMPS
|
Which compiler (gcc) version are you using? |
gcc version is 9.4.0 |
Use something newer like gcc 11 or above. |
I am able to install gcc10, gcc11 is not being installed. I am working on it. |
I updated to gcc 11
|
Are you sure you're using gcc 11? The code compiles just fine. Try doing it manually: cd pyliggghts/tcc/src
make clean-all
make auto |
See from the output of the makefile which gcc compiler is being used. |
Also paste here what |
The gcc version is 11:
I have followed the commands, my path is pyliggghts/cc/src/
|
which version of gcc is |
mpicxx or g++ version is 9.4 |
Try the CLI. Maybe it's |
gcc version is 11, mpicxx version is 9.4 |
mpicxx is just a wrapper around g++. It should return the same version as gcc. So there's your problem ... you have gcc 9 still installed, and the makefile is calling its mpi wrapper. Get rid of gcc 9 and make sure g++/mpicxx are version 11. |
MPICXX version is updated. Still error persists
|
I tried the
|
Make sure to clean before building. |
I did use |
Hi, I worked with new Ubuntu installation with vtk is limited to 7.1. I am still experiencing same error. Would you please share your environment settings? Including hardware specifications. Please mention OS and related libraries. I hope to hear from you soon. |
Hi
I am working with Pygran in WSL. Initially I faced the error of latex could not be found. I installed latex then I was able to perform visco elastic and elastoplastic models.
When I try to run an actual dem such as multi-sphere case or another from PyGran examples, I face value error. Please help how this can be resolved.
The text was updated successfully, but these errors were encountered: