# Parsing error: configparser.ParsingError: Source contains parsing errors: '\<string\>'

**URL:** <https://pyfr.discourse.group/t/parsing-error-configparser-parsingerror-source-contains-parsing-errors-string/635>\
**Category:** General\
**Created:** [4 July 2022 20:32 UTC](https://pyfr.discourse.group/t/parsing-error-configparser-parsingerror-source-contains-parsing-errors-string/635 "2022-07-04T20:32:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathanbl](https://avatars.discourse-cdn.com/v4/letter/n/e480ec/32.png) [@nathanbl](https://pyfr.discourse.group/u/nathanbl)\
**Post date:** [4 July 2022 20:32 UTC](https://pyfr.discourse.group/t/parsing-error-configparser-parsingerror-source-contains-parsing-errors-string/635/1 "2022-07-04T20:32:47Z")

</div>

I am repeatedly encountering a parsing error, seems to be related to my ini file but the ini file doesn’t seem to have any problems. because I couldn’t upload files I am attaching the text of the error message and the ini file here:

Edit: the issue was fixed when I replaced  
w=0.0  
with  
w=0

```ini
[backend]
precision = double
rank-allocator = linear

[backend-openmp]
;cblas = Enter path to local BLAS library for OpenMP backend

[backend-cuda]
device-id = local-rank
[constants]
gamma = 1.6667
mu = 4.6296e-6

Pr = 0.67

cp = 5192

Pc = 1380000
Pa=8e4

cpTs = 415360
cpTref = 1557600

;[soln-plugin-sampler]
;nsteps = 10000
;samp-pts = [(-0.5, 0.015),(-0.45, 0.015), (-0.4, 0.015),(-0.35, 0.015),(-0.3, 0.015),(-0.25, 0.015),(-0.2, 0.015),(-0.15, 0.015),(-0.1, 0.015),(-0.05, 0.015),(0, 0.015),(0.05, 0.015),(0.1, 0.015),(0.15, 0.015),(0.2, 0.015),(0.25, 0.015),(0.3, 0.015),(0.35, 0.015),(0.4, 0.015),(0.45, 0.015),(0.5, 0.015)]
;format = primitive
;file = /home/nathan-blanc/point-data.csv
;header = true

[solver]
system = navier-stokes
order = 3
viscosity-correction= sutherland

[solver-time-integrator]
formulation = std
scheme = rk45
controller = pi
;controller = none
atol = 0.000001
rtol = 0.000001
errest-norm = l2
safety-fact = 0.7

tstart = 0.06675
tend = 0.1
;dt = 0.0001
dt = 1e-10

[solver-interfaces]
riemann-solver = rusanov
ldg-beta = 0.5
ldg-tau = 0.1

[solver-interfaces-line]
flux-pts = gauss-legendre
;quad-deg = 9
quad-pts = gauss-legendre

[solver-interfaces-quad]
flux-pts = gauss-legendre
;quad-deg = 9
quad-pts = gauss-legendre

[solver-elements-tri]
soln-pts = williams-shunn
;quad-deg = 8
quad-pts = williams-shunn

[solver-elements-quad]
soln-pts = gauss-legendre
;quad-deg = 9
quad-pts = gauss-legendre

[solver-elements-hex]
soln-pts = gauss-legendre
;quad-deg = 9
quad-pts = gauss-legendre

[soln-plugin-writer]
dt-out = 0.00025

;basedir = .
basedir=/home/nathan-blanc
basename = aeror_{t:.4f}

[soln-bcs-stack]
type = no-slp-Tprofilewall
cpTw = cp*min(max(-4.9536e3*x-1.4654e3,303),623)

[soln-ics]
u = 0
v = 0.0
w=0.0
p = Pc+Pa*sin(x*3.14159)
;p=Pc
rho=((gamma)/(gamma-1))*(Pc/min(max(-4.9536e3*x-1.4654e3,303),623)/cp)
;rho=1
[soln-bcs-top]
type =no-slp-adia-wall

[soln-bcs-bottom]
type =no-slp-adia-wall

[soln-bcs-left]
type =no-slp-adia-wall

[soln-bcs-right]
type =no-slp-adia-wall

```

and the traceback

```bash
error message:
Mon 04 Jul 2022 07:58:50 PM IDT
Traceback (most recent call last):
  File "/usr/local/bin/pyfr", line 11, in <module>
    load_entry_point('pyfr==1.12.3', 'console_scripts', 'pyfr')()
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/ __main__.py", line 117, in main
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/ __main__.py", line 251, in process_run
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/inifile.py", line 33, in load
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/inifile.py", line 26, in __init__
  File "/usr/lib/python3.8/configparser.py", line 723, in read_string
    self.read_file(sfile, source)
  File "/usr/lib/python3.8/configparser.py", line 718, in read_file
    self._read(f, source)
  File "/usr/lib/python3.8/configparser.py", line 1113, in _read
    raise e
configparser.ParsingError: Source contains parsing errors: '<string>'
	[line 115]: '\x00\x00\x00\x00\x00'
Traceback (most recent call last):
  File "/usr/local/bin/pyfr", line 11, in <module>
    load_entry_point('pyfr==1.12.3', 'console_scripts', 'pyfr')()
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/ __main__.py", line 117, in main
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/ __main__.py", line 251, in process_run
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/inifile.py", line 33, in load
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/inifile.py", line 26, in __init__
  File "/usr/lib/python3.8/configparser.py", line 723, in read_string
    self.read_file(sfile, source)
  File "/usr/lib/python3.8/configparser.py", line 718, in read_file
    self._read(f, source)
  File "/usr/lib/python3.8/configparser.py", line 1113, in _read
    raise e
configparser.ParsingError: Source contains parsing errors: '<string>'
	[line 115]: '\x00\x00\x00\x00\x00'
Traceback (most recent call last):
  File "/usr/local/bin/pyfr", line 11, in <module>
    load_entry_point('pyfr==1.12.3', 'console_scripts', 'pyfr')()
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/ __main__.py", line 117, in main
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/ __main__.py", line 251, in process_run
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/inifile.py", line 33, in load
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/inifile.py", line 26, in __init__
  File "/usr/lib/python3.8/configparser.py", line 723, in read_string
    self.read_file(sfile, source)
  File "/usr/lib/python3.8/configparser.py", line 718, in read_file
    self._read(f, source)
  File "/usr/lib/python3.8/configparser.py", line 1113, in _read
    raise e
configparser.ParsingError: Source contains parsing errors: '<string>'
	[line 115]: '\x00\x00\x00\x00\x00'
Traceback (most recent call last):
  File "/usr/local/bin/pyfr", line 11, in <module>
    load_entry_point('pyfr==1.12.3', 'console_scripts', 'pyfr')()
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/ __main__.py", line 117, in main
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/ __main__.py", line 251, in process_run
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/inifile.py", line 33, in load
  File "/usr/local/lib/python3.8/dist-packages/pyfr-1.12.3-py3.8.egg/pyfr/inifile.py", line 26, in __init__
  File "/usr/lib/python3.8/configparser.py", line 723, in read_string
    self.read_file(sfile, source)
  File "/usr/lib/python3.8/configparser.py", line 718, in read_file
    self._read(f, source)
  File "/usr/lib/python3.8/configparser.py", line 1113, in _read
    raise e
configparser.ParsingError: Source contains parsing errors: '<string>'
	[line 115]: '\x00\x00\x00\x00\x00'
srun: error: n306: tasks 0-3: Exited with exit code 1

```

---

<div class="post-metadata">

**Author:** ![WillT](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WillT](https://pyfr.discourse.group/u/WillT)\
**Post date:** [4 July 2022 20:37 UTC](https://pyfr.discourse.group/t/parsing-error-configparser-parsingerror-source-contains-parsing-errors-string/635/2 "2022-07-04T20:37:34Z")

</div>

Without running the ini file myself, I think the error is from your number formatting, I don’t think your use of standard form is correct.

Also, on a different note you might want to consider normalising your pressure terms, you will be burning a few digits in accuracy with large values like the ones you have. This is

---

<div class="post-metadata">

**Author:** ![nathanbl](https://avatars.discourse-cdn.com/v4/letter/n/e480ec/32.png) [@nathanbl](https://pyfr.discourse.group/u/nathanbl)\
**Post date:** [5 July 2022 06:23 UTC](https://pyfr.discourse.group/t/parsing-error-configparser-parsingerror-source-contains-parsing-errors-string/635/3 "2022-07-05T06:23:11Z")

</div>

Thanks a lot for your answer Will. The issue was fixed when I replaced  
w= 0.0

with  
w=0

the rest of the numbers were left in standard form

thank you for your other reccomendation as well, I will definetly scale the pressure if it will improve the accuracy
