I'm trying to install Chromium depot tools in a Raspberry Pi but I not able to fetch anything. From the tutorial I do:
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=/path/to/depot_tools:$PATH
Then I try to execyte a simple help command: fetch --help command. It gives the error:
pi#raspberrypi:~/experiments/build-webrtc/depot_tools $ fetch --help
Errors:
failed to resolve infra/3pp/tools/git/linux-armv6l#version:2.24.1.chromium.5 (line 27): no such package
failed to resolve infra/3pp/tools/cpython/linux-armv6l#version:2.7.17.chromium.22 (line 21): no such package
failed to resolve infra/3pp/tools/cpython3/linux-armv6l#version:3.8.0.chromium.8 (line 24): no such package
/home/pi/experiments/build-webrtc/depot_tools/bootstrap_python3: line 32: bootstrap-3.8.0.chromium.8_bin/python3/bin/python3: No such file or directory
cat: /home/pi/experiments/build-webrtc/depot_tools/python3_bin_reldir.txt: No such file or directory
[E2020-05-01T13:00:13.414783+01:00 20120 0 annotate.go:241] original error: fork/exec /home/pi/experiments/build-webrtc/depot_tools/python3: no such file or directory
[E2020-05-01T13:00:13.414904+01:00 20120 0 annotate.go:241]
[E2020-05-01T13:00:13.414950+01:00 20120 0 annotate.go:241] goroutine 1:
[E2020-05-01T13:00:13.415009+01:00 20120 0 annotate.go:241] #0 go.chromium.org/luci/vpython/python/interpreter.go:89 - python.(*Interpreter).GetVersion()
[E2020-05-01T13:00:13.415049+01:00 20120 0 annotate.go:241] #1 go.chromium.org/luci/vpython/venv/config.go:286 - venv.(*Config).resolvePythonInterpreter()
[E2020-05-01T13:00:13.415088+01:00 20120 0 annotate.go:241] reason: failed to determine Python version for: /home/pi/experiments/build-webrtc/depot_tools//python3
[E2020-05-01T13:00:13.415127+01:00 20120 0 annotate.go:241]
[E2020-05-01T13:00:13.415163+01:00 20120 0 annotate.go:241] #2 go.chromium.org/luci/vpython/venv/config.go:186 - venv.(*Config).makeEnv()
[E2020-05-01T13:00:13.415214+01:00 20120 0 annotate.go:241] reason: failed to resolve system Python interpreter
[E2020-05-01T13:00:13.415254+01:00 20120 0 annotate.go:241]
[E2020-05-01T13:00:13.415290+01:00 20120 0 annotate.go:241] #3 go.chromium.org/luci/vpython/venv/venv.go:150 - venv.With()
[E2020-05-01T13:00:13.415326+01:00 20120 0 annotate.go:241] reason: failed to initialize empty probe environment
[E2020-05-01T13:00:13.415363+01:00 20120 0 annotate.go:241]
[E2020-05-01T13:00:13.415413+01:00 20120 0 annotate.go:241] #4 go.chromium.org/luci/vpython/run.go:62 - vpython.Run()
[E2020-05-01T13:00:13.415451+01:00 20120 0 annotate.go:241] #5 go.chromium.org/luci/vpython/application/application.go:320 - application.(*application).mainImpl()
[E2020-05-01T13:00:13.415488+01:00 20120 0 annotate.go:241] #6 go.chromium.org/luci/vpython/application/application.go:406 - application.(*Config).Main.func1()
[E2020-05-01T13:00:13.415526+01:00 20120 0 annotate.go:241] #7 go.chromium.org/luci/vpython/application/support.go:46 - application.run()
[E2020-05-01T13:00:13.415563+01:00 20120 0 annotate.go:241] #8 go.chromium.org/luci/vpython/application/application.go:405 - application.(*Config).Main()
[E2020-05-01T13:00:13.415601+01:00 20120 0 annotate.go:241] #9 vpython/main.go:106 - main.mainImpl()
[E2020-05-01T13:00:13.415638+01:00 20120 0 annotate.go:241] #10 vpython/main.go:112 - main.main()
[E2020-05-01T13:00:13.415674+01:00 20120 0 annotate.go:241] #11 runtime/proc.go:203 - runtime.main()
[E2020-05-01T13:00:13.415710+01:00 20120 0 annotate.go:241] #12 runtime/asm_arm.s:868 - runtime.goexit()
I ran into the exact same issue, i.e.
python3_bin_reldir.txt - No such file or directory
failed to determine Python version
...
On Windows, it turned out that the environment variable DEPOT_TOOLS_UPDATE=0 was to blame. Once I removed that, everything worked smoothly. It seems that it stopped the depot_tools tools from properly bootstrapping on Windows.
Please try to unset this environment variable and see if it works for you.
Related
Upgrade to Xamarin Forms 5.0.0.2012 from 4.8 makes the app (only in debug mode) to freeze for few seconds for each interaction and makes tons of outputs:
Thread started: <Thread Pool> #41
[Mono] GC_BRIDGE waiting for bridge processing to finish
[Mono] GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 169 xref 4 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.07ms tarjan 0.09ms scc-setup 0.06ms gather-xref 0.00ms xref-setup 0.00ms cleanup 0.00ms
[Mono] GC_BRIDGE: Complete, was running for 0.05ms
[Mono] GC_MINOR: (Nursery full) time 15.02ms, stw 18.82ms promoted 1445K major size: 33920K in use: 32001K los size: 9472K in use: 7121K
Thread started: <Thread Pool> #42
Thread started: <Thread Pool> #43
Thread started: <Thread Pool> #44
Thread started: <Thread Pool> #45
Thread started: <Thread Pool> #46
Thread started: <Thread Pool> #47
Thread started: <Thread Pool> #48
Thread started: <Thread Pool> #49
Thread started: <Thread Pool> #50
Thread started: <Thread Pool> #51
[Mono] GC_BRIDGE waiting for bridge processing to finish
[Mono] GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 169 xref 4 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.07ms tarjan 0.09ms scc-setup 0.06ms gather-xref 0.00ms xref-setup 0.00ms cleanup 0.00ms
[Mono] GC_BRIDGE: Complete, was running for 0.07ms
[Mono] GC_MINOR: (Nursery full) time 11.92ms, stw 14.43ms promoted 926K major size: 34896K in use: 32961K los size: 12544K in use: 10620K
[mono] Full thread dump:
[Mono] GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 169 xref 4 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.07ms tarjan 0.09ms scc-setup 0.06ms gather-xref 0.00ms xref-setup 0.00ms cleanup 0.00ms
[Mono] GC_BRIDGE waiting for bridge processing to finish
[Mono] GC_BRIDGE: Complete, was running for 0.07ms
[Mono] GC_MINOR: (Nursery full) time 13.09ms, stw 15.10ms promoted 860K major size: 35728K in use: 33849K los size: 17664K in use: 15619K
[Mono] GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 169 xref 4 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.07ms tarjan 0.09ms scc-setup 0.06ms gather-xref 0.00ms xref-setup 0.00ms cleanup 0.00ms
[Mono] GC_BRIDGE: Complete, was running for 0.07ms
[Mono] GC_MINOR: (Concurrent start) time 3.81ms, stw 13.08ms promoted 1K major size: 35728K in use: 33851K los size: 17664K in use: 15619K
[Mono] GC_MAJOR_CONCURRENT_START: (LOS overflow)
[Mono] GC_BRIDGE waiting for bridge processing to finish
Any idea how to bring back useability of a debugger?
removing a CachingStrategy="RecycleElement" from ListView was a partial solution
Xamarin garba collection runs often
Is it possible to tell whether a process/thread has the PF_NO_SETAFFINITY flag set? I'm running taskset on a series of process ids and some are throwing errors of the following form:
taskset: failed to set pid 30's affinity: Invalid argument
I believe this is because some processes have PF_NO_SETAFFINITY set (see Answer).
Thank you!
Yes - look at /proc/PID/stat's 'flag' field
<linux/sched.h
#define PF_NO_SETAFFINITY 0x04000000 /* Userland is not allowed to meddle with cpus_allowed */
Look here for details on using /proc:
http://man7.org/linux/man-pages/man5/proc.5.html
https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk65143
Example:
ps -eaf
www-data 30084 19962 0 07:09 ? 00:00:00 /usr/sbin/apache2 -k start
...
cat /proc/30084/stat
30084 (apache2) S 19962 19962 19962 0 -1 4194624 554 0 3 0 0 0 0 0 20 0 1 0 298837672 509616128 5510 18446744073709551615 1 1 0 0 0 0 0 16781312 201346799 0 0 0 17 0 0 0 0 0 0 0 0 0 0 0 0 0 0
The flags are 4194624
Q: Do you mind specifying how you'd write a simple script that outputs
true/false based on whether you're allowed to set affinity?
A: I don't feel comfortable providing this without the opportunity to test, but you can try something like this...
flags=$(cut -f 9 -d ' ' /proc/30084/stat)
echo $(($flags & 0x40000000))
I'm trying to mount xfs disk.
I prepared directories.
sudo mkdir /grid/;
sudo mkdir /grid/0;
then I tried
sudo mount -t xfs /dev/sdc /grid/0;
But I always receive
can't find /dev/sdc /grid/0 in /etc/fstab
My fstab looks like this
#
# /etc/fstab
# Created by anaconda on Tue Dec 18 11:05:19 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/rhel-root / xfs defaults 0 0
UUID=xxx /boot xfs defaults 0 0
UUID=zzz /boot/efi vfat umask=0077,shortname=winnt 0 0
/dev/mapper/rhel-home /home xfs defaults 0 0
/dev/mapper/rhel-var_log /var/log xfs defaults 0 0
/dev/mapper/rhel-swap swap swap defaults 0 0
/dev/sdc /grid/0 xfs defaults,noatime 0 0
/dev/sdd /grid/1 xfs defaults,noatime 0 0
/dev/sde /grid/2 xfs defaults,noatime 0 0
/dev/sdf /grid/3 xfs defaults,noatime 0 0
/dev/sdg /grid/4 xfs defaults,noatime 0 0
/dev/sdh /grid/5 xfs defaults,noatime 0 0
/dev/sdi /grid/6 xfs defaults,noatime 0 0
/dev/sdj /grid/7 xfs defaults,noatime 0 0
is something wrong with my fstab ? I can't find what I did wrong.
edit: lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 447.1G 0 disk
\u251c\u2500sda1 8:1 0 200M 0 part /boot/efi
\u251c\u2500sda2 8:2 0 1G 0 part /boot
\u2514\u2500sda3 8:3 0 445.9G 0 part
\u251c\u2500rhel-root 253:0 0 361.9G 0 lvm /
\u251c\u2500rhel-swap 253:1 0 4G 0 lvm [SWAP]
\u251c\u2500rhel-home 253:2 0 50G 0 lvm /home
\u2514\u2500rhel-var_log 253:3 0 30G 0 lvm /var/log
sdc 8:32 0 3.7T 0 disk
sdd 8:48 0 3.7T 0 disk
sde 8:64 0 3.7T 0 disk
sdf 8:80 0 3.7T 0 disk
sdg 8:96 0 3.7T 0 disk
sdh 8:112 0 3.7T 0 disk
sdi 8:128 0 3.7T 0 disk
sdj 8:144 0 3.7T 0 disk
The issue was caused by non-breakable space which was mixed in fstab records and in mount command.
After converting text to ASCII and checking on "Show All Characters" in notepad++ I replaced all non-breakable space with ordinary space and command finished successfully.
Fresh install. OSX 10.10.5. I found a post several years old that mentioned a solution of making sure 127.0.0.1 (null) was not in /etc/hosts. No effect.
Here's a dump of the error:
Process: MAMP [2867]
Path: /Applications/MAMP/MAMP.app/Contents/MacOS/MAMP
Identifier: de.appsolute.MAMP
Version: 3.4 (3.4)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: MAMP [2867]
User ID: 962435817
Date/Time: 2015-11-09 11:29:13.754 -0500
OS Version: Mac OS X 10.10.5 (14F1021)
Report Version: 11
Anonymous UUID: C3B21FD3-E569-950C-7452-43A3D5CEDC99
Time Awake Since Boot: 1300 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Regions Near 0:
-->
__TEXT 0000000100000000-0000000100015000 [ 84K] r-x/rwx SM=COW /Applications/MAMP/MAMP.app/Contents/MacOS/MAMP
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 de.appsolute.MAMP 0x0000000100006a6b 0x100000000 + 27243
1 de.appsolute.MAMP 0x0000000100006d7a 0x100000000 + 28026
2 de.appsolute.MAMP 0x0000000100008b84 0x100000000 + 35716
3 de.appsolute.MAMP 0x000000010000313d 0x100000000 + 12605
4 com.apple.CoreFoundation 0x00007fff887be45c
This question already has answers here:
Reading comment lines correctly in an input file using Fortran 90
(3 answers)
Closed 8 years ago.
I am trying to read a number from a file .dat in Fortran 90. The problem is than this .dat file has lines starting with the "#" symbol which I want Fortran to ignore. Here is the file I am reading
#number of free parameters= 252
#used norm for the fit= 3.231250e+02
#0 0 0 0 0 -6.458147e+06
#0 0 0 0 1 3.105635e+01
#0 0 0 0 2 2.525518e-04
#0 0 0 0 3 -4.281012e-09
#0 0 0 0 4 -2.759312e-14
#0 0 0 0 5 1.534108e-19
#0 0 0 1 0 6.646356e-01
#0 0 0 1 1 7.311006e-04
#0 0 0 1 2 -2.619385e-09
#0 0 0 1 3 -2.686922e-14
#0 0 0 1 4 -1.679757e-20
#0 0 0 2 0 -3.188727e-04
#0 0 0 2 1 -6.512261e-10
#0 0 0 2 2 2.366201e-14
#0 0 0 2 3 -7.321188e-20
#0 0 0 3 0 -2.747463e-09
#0 0 0 3 1 -2.713283e-15
#0 0 0 3 2 6.595914e-20
#0 0 0 4 0 -3.916931e-14
#0 0 0 4 1 -1.166710e-19
#0 0 0 5 0 7.337420e-20
#0 0 1 0 0 1.098464e+02
#0 0 1 0 1 4.974315e-04
#0 0 1 0 2 2.851914e-09
#0 0 1 0 3 -2.829991e-14
#0 0 1 0 4 -1.078132e-19
#0 0 1 1 0 -3.428791e-04
#0 0 1 1 1 2.540000e-09
#0 0 1 1 2 -5.170717e-14
#0 0 1 1 3 9.467328e-20
#0 0 1 2 0 1.536840e-09
#0 0 1 2 1 -2.862305e-14
#0 0 1 2 2 2.214778e-19
#0 0 1 3 0 -7.982451e-15
#0 0 1 3 1 -1.115507e-19
#0 0 1 4 0 -1.784763e-19
#0 0 2 0 0 -3.354193e-04
#0 0 2 0 1 -2.608933e-09
#0 0 2 0 2 1.603134e-14
#0 0 2 0 3 1.544635e-21
#0 0 2 1 0 9.286391e-11
#0 0 2 1 1 2.212860e-14
#0 0 2 1 2 4.500369e-19
#0 0 2 2 0 4.355379e-14
#0 0 2 2 1 -1.988663e-19
#0 0 2 3 0 1.375598e-19
#0 0 3 0 0 -5.089157e-09
#0 0 3 0 1 -6.290206e-15
#0 0 3 0 2 6.371429e-20
#0 0 3 1 0 -1.164189e-14
#0 0 3 1 1 1.980810e-19
#0 0 3 2 0 -1.530186e-20
#0 0 4 0 0 -8.497320e-15
#0 0 4 0 1 -3.419311e-20
#0 0 4 1 0 1.151535e-19
#0 0 5 0 0 -4.965320e-20
#0 1 0 0 0 -1.259427e+02
#0 1 0 0 1 -3.900548e-05
#0 1 0 0 2 3.691997e-09
#0 1 0 0 3 1.526078e-14
#0 1 0 0 4 2.153889e-19
#0 1 0 1 0 -1.518887e-04
#0 1 0 1 1 1.725796e-09
#0 1 0 1 2 -1.001640e-14
#0 1 0 1 3 1.515356e-19
#0 1 0 2 0 2.629831e-09
#0 1 0 2 1 6.313110e-15
#0 1 0 2 2 3.219031e-19
#0 1 0 3 0 2.906599e-14
#0 1 0 3 1 2.167608e-19
#0 1 0 4 0 1.696993e-19
#0 1 1 0 0 -9.267004e-04
#0 1 1 0 1 2.093122e-09
#0 1 1 0 2 4.148898e-14
#0 1 1 0 3 9.015903e-20
#0 1 1 1 0 -5.283470e-09
#0 1 1 1 1 2.942465e-14
#0 1 1 1 2 -1.620549e-19
#0 1 1 2 0 -1.392080e-15
#0 1 1 2 1 4.239008e-21
#0 1 1 3 0 4.896848e-20
#0 1 2 0 0 2.685715e-09
#0 1 2 0 1 1.666833e-14
#0 1 2 0 2 -7.874688e-20
#0 1 2 1 0 9.224232e-15
#0 1 2 1 1 -4.773437e-19
#0 1 2 2 0 -1.519710e-19
#0 1 3 0 0 5.053813e-14
#0 1 3 0 1 4.160181e-20
#0 1 3 1 0 1.370084e-19
#0 1 4 0 0 -8.886168e-21
#0 2 0 0 0 -2.300488e-04
#0 2 0 0 1 7.564571e-09
#0 2 0 0 2 -1.102233e-14
#0 2 0 0 3 -6.403138e-21
#0 2 0 1 0 -4.206376e-09
#0 2 0 1 1 -3.403031e-14
#0 2 0 1 2 -3.346447e-19
#0 2 0 2 0 5.381533e-15
#0 2 0 2 1 -1.823920e-19
#0 2 0 3 0 -1.178995e-19
#0 2 1 0 0 -1.655777e-09
#0 2 1 0 1 2.935844e-14
#0 2 1 0 2 -6.278178e-20
#0 2 1 1 0 1.300195e-14
#0 2 1 1 1 -8.475176e-21
#0 2 1 2 0 1.052778e-19
#0 2 2 0 0 3.096973e-15
#0 2 2 0 1 1.549711e-19
#0 2 2 1 0 -7.566176e-20
#0 2 3 0 0 -2.251950e-19
#0 3 0 0 0 -3.739465e-09
#0 3 0 0 1 2.295125e-14
#0 3 0 0 2 -4.084332e-20
#0 3 0 1 0 4.950778e-15
#0 3 0 1 1 -1.106986e-19
#0 3 0 2 0 -4.027040e-20
#0 3 1 0 0 1.621460e-14
#0 3 1 0 1 -1.062879e-19
#0 3 1 1 0 -2.483709e-19
#0 3 2 0 0 1.690545e-19
#0 4 0 0 0 6.163400e-15
#0 4 0 0 1 6.288739e-20
#0 4 0 1 0 1.192787e-19
#0 4 1 0 0 -1.455520e-19
#0 5 0 0 0 -9.933712e-20
#1 0 0 0 0 -3.666264e+01
#1 0 0 0 1 9.549133e-04
#1 0 0 0 2 -4.365234e-09
#1 0 0 0 3 2.588782e-16
#1 0 0 0 4 -2.076915e-20
#1 0 0 1 0 1.481452e-03
#1 0 0 1 1 1.904617e-09
#1 0 0 1 2 -1.930502e-14
#1 0 0 1 3 2.011388e-20
#1 0 0 2 0 8.142289e-11
#1 0 0 2 1 -2.718983e-14
#1 0 0 2 2 -8.626389e-20
#1 0 0 3 0 1.100715e-14
#1 0 0 3 1 -6.753546e-21
#1 0 0 4 0 1.454479e-19
#1 0 1 0 0 1.163360e-03
#1 0 1 0 1 -1.811381e-09
#1 0 1 0 2 -3.732141e-14
#1 0 1 0 3 -1.731446e-19
#1 0 1 1 0 -1.368255e-09
#1 0 1 1 1 -1.199297e-14
#1 0 1 1 2 -1.829752e-19
#1 0 1 2 0 8.200737e-15
#1 0 1 2 1 -1.118786e-19
#1 0 1 3 0 -9.719783e-20
#1 0 2 0 0 -2.880947e-09
#1 0 2 0 1 1.251979e-14
#1 0 2 0 2 -1.047222e-19
#1 0 2 1 0 -1.228216e-14
#1 0 2 1 1 9.662320e-20
#1 0 2 2 0 -3.024362e-21
#1 0 3 0 0 -2.423240e-14
#1 0 3 0 1 8.306093e-20
#1 0 3 1 0 -1.033559e-19
#1 0 4 0 0 -7.429864e-20
#1 1 0 0 0 6.989398e-04
#1 1 0 0 1 -1.581314e-09
#1 1 0 0 2 -2.193096e-14
#1 1 0 0 3 -1.899676e-19
#1 1 0 1 0 3.866920e-09
#1 1 0 1 1 -5.727360e-15
#1 1 0 1 2 -3.347686e-20
#1 1 0 2 0 -2.266355e-14
#1 1 0 2 1 3.559480e-19
#1 1 0 3 0 3.783552e-20
#1 1 1 0 0 -4.351640e-09
#1 1 1 0 1 -4.493149e-14
#1 1 1 0 2 3.886234e-20
#1 1 1 1 0 1.795029e-14
#1 1 1 1 1 -1.723292e-19
#1 1 1 2 0 3.898557e-19
#1 1 2 0 0 3.297662e-14
#1 1 2 0 1 -6.122045e-20
#1 1 2 1 0 -3.220305e-20
#1 1 3 0 0 1.550060e-19
#1 2 0 0 0 1.132462e-09
#1 2 0 0 1 9.649800e-15
#1 2 0 0 2 -1.487728e-19
#1 2 0 1 0 -1.033199e-14
#1 2 0 1 1 -1.066775e-19
#1 2 0 2 0 -1.074791e-19
#1 2 1 0 0 -5.672266e-14
#1 2 1 0 1 -4.539318e-19
#1 2 1 1 0 4.278144e-20
#1 2 2 0 0 -1.761885e-20
#1 3 0 0 0 3.350312e-14
#1 3 0 0 1 1.410364e-19
#1 3 0 1 0 1.155801e-19
#1 3 1 0 0 1.753253e-19
#1 4 0 0 0 2.302075e-19
#2 0 0 0 0 -1.251751e-03
#2 0 0 0 1 -1.528697e-09
#2 0 0 0 2 2.022063e-14
#2 0 0 0 3 3.612229e-19
#2 0 0 1 0 -1.394598e-09
#2 0 0 1 1 1.493080e-14
#2 0 0 1 2 2.747549e-19
#2 0 0 2 0 1.440434e-14
#2 0 0 2 1 -1.147694e-19
#2 0 0 3 0 5.537588e-21
#2 0 1 0 0 6.623155e-09
#2 0 1 0 1 2.730209e-15
#2 0 1 0 2 4.181196e-20
#2 0 1 1 0 1.488522e-14
#2 0 1 1 1 -1.643706e-20
#2 0 1 2 0 -3.837800e-19
#2 0 2 0 0 -3.120561e-14
#2 0 2 0 1 9.825753e-20
#2 0 2 1 0 1.769783e-19
#2 0 3 0 0 -1.549952e-19
#2 1 0 0 0 -3.557290e-09
#2 1 0 0 1 1.033207e-14
#2 1 0 0 2 -1.516672e-19
#2 1 0 1 0 1.499897e-14
#2 1 0 1 1 1.675754e-20
#2 1 0 2 0 1.290456e-20
#2 1 1 0 0 3.365246e-14
#2 1 1 0 1 1.912043e-19
#2 1 1 1 0 1.251717e-19
#2 1 2 0 0 4.824158e-20
#2 2 0 0 0 -6.775576e-15
#2 2 0 0 1 3.018091e-19
#2 2 0 1 0 -1.955331e-19
#2 2 1 0 0 1.276077e-20
#2 3 0 0 0 2.575621e-20
#3 0 0 0 0 -8.039580e-10
#3 0 0 0 1 -6.643968e-14
#3 0 0 0 2 1.627232e-19
#3 0 0 1 0 -8.617469e-15
#3 0 0 1 1 1.842556e-19
#3 0 0 2 0 -6.082756e-20
#3 0 1 0 0 -2.047656e-15
#3 0 1 0 1 -6.400721e-20
#3 0 1 1 0 -1.705284e-19
#3 0 2 0 0 3.026086e-19
#3 1 0 0 0 4.164057e-14
#3 1 0 0 1 -6.256086e-20
#3 1 0 1 0 -9.961920e-20
#3 1 1 0 0 -2.004688e-19
#3 2 0 0 0 -4.014110e-19
#4 0 0 0 0 1.059104e-14
#4 0 0 0 1 -3.637782e-20
#4 0 0 1 0 -2.760611e-21
#4 0 1 0 0 1.484074e-19
#4 1 0 0 0 4.916317e-20
#5 0 0 0 0 -1.274646e-20
#average insample error= 1.010769e-01
1.374988e+05
I only need to read the value "1.374988e+05", any idea?
This program solves the problem by implementing the suggestion to "skip the lines with empty read or use iostat and use the first succesful read."
program xread_data
implicit none
integer, parameter :: iu = 10
real :: x
integer :: ierr
open (unit=iu,file="data.txt",action="read")
do
read (iu,*,iostat=ierr) x
if (ierr == 0) exit
end do
print*,"x =",x
end program xread_data