Error running programs

Hey there

It’s my first time on FENICS. I’m trying to run the tutorial programs. I get the next error:

python3 ft01_poisson.py
Solving linear variational problem.
Traceback (most recent call last):
File “ft01_poisson.py”, line 44, in
vtkfile << u
File “/usr/lib/petsc/lib/python3/dist-packages/dolfin/io/init.py”, line 14, in lshift
self.write(u._cpp_object)
RuntimeError:

*** -------------------------------------------------------------------------
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at


*** fenics-support@googlegroups.com


*** Remember to include the error message listed below and, if possible,
*** include a minimal running example to reproduce the error.


*** -------------------------------------------------------------------------
*** Error: Unable to write to file.
*** Reason: Unable to open file “poisson/solution.pvd” for writing.
*** Where: This error was encountered inside GenericFile.cpp.
*** Process: 0


*** DOLFIN version: 2019.2.0.dev0
*** Git changeset: ubuntu

Any idea?
Thanks

First of all, if you are new to fenics, we strongly encourage you to use FEniCSx, Ref: The new DOLFINx solver is now recommended over DOLFIN

Your error is most likely related to permission issues with creating the folder poisson

Can I get some help on how to fix the folder issue?

I would suggest creating the folder prior to running the code, or change the read/write permissions of your current folder.

All of this depends on how you installed dolfin, and on what platform.