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

Issue on page /chapter1/fundamentals_code.html #125

Open
OsbertWang opened this issue Apr 11, 2023 · 5 comments
Open

Issue on page /chapter1/fundamentals_code.html #125

OsbertWang opened this issue Apr 11, 2023 · 5 comments

Comments

@OsbertWang
Copy link

My operating system is Ubuntu 22.04 in WSL for Windows 11.
When I run the code, there are two points that need attention.
First, pyvista.start_xvfb() should be deleted. I tried to install the recommended packages but failed to run the code. I suspect this is because WSL for Windows 11 already supports GUI in a different way.
Second, dolfinx.io.VTXWriter is not defined. I found the code named utils.py, where VTXWriter is defined under the bool if _cpp.common.has_adios2. I think it means that I don't have adios2 in my WSL.

@jorgensd
Copy link
Owner

First, pyvista.start_xvfb() should be deleted. I tried to install the recommended packages but failed to run the code. I suspect this is because WSL for Windows 11 already supports GUI in a different way.

How are you running the code in the WSL, as a ipynb or as a Python file?

Secondly, how did you install dolfinx and the relevant dependencies?

As you point out in your second question, it does not seem like you have adios2 installed on your system prior to installing dolfinx.

@OsbertWang
Copy link
Author

How are you running the code in the WSL, as a ipynb or as a Python file?

I'm running the code in the WSL as a Python file.

Secondly, how did you install dolfinx and the relevant dependencies?

As you point out in your second question, it does not seem like you have adios2 installed on your system prior to installing dolfinx.

I installed dolfinx using the PPA method and did not install adios2 beforehand.

@jorgensd
Copy link
Owner

I'm running the code in the WSL as a Python file.

you could try adding export PYVISTA_OFF_SCREEN=True in your environment.

I installed dolfinx using the PPA method and did not install adios2 beforehand.

To use adios2 with apt-Get it has to be Pre-installed (I think), as adios2 is not in the ubuntu package manager.

@OsbertWang
Copy link
Author

you could try adding export PYVISTA_OFF_SCREEN=True in your environment.

OK. Actually, I have found that I am able to view the results without having to call pyvista.start_xvfb().

To use adios2 with apt-Get it has to be Pre-installed (I think), as adios2 is not in the ubuntu package manager.

Yes. I looked up how to install adios2 on ubuntu, and it seems that it requires installation from source. Unfortunately, I don't feel comfortable doing that at the moment.

@OsbertWang
Copy link
Author

These days, I attempted to build ADIOS2 from source but unfortunately failed due to my lack of familiarity with the process. However, upon further exploration, I discovered that both FEniCSx and ADIOS2 are available on conda. As such, I am considering installing these two packages using anaconda instead.

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