[Wien] WIEN2k-3233

Peter Blaha peter.blaha at tuwien.ac.at
Thu Nov 2 16:38:20 CET 2023


I'm not a python expert, but when I google "python print" it tells me 
that the  "f-strings" like

 >      print(DEFAULT_PREFIX + f"SCRATCH = {scratch}")
 >                                                  ^
 > SyntaxError: invalid syntax

are supported only in python 3.6 or later.
Most likely, you must update your python version.

Regards
Peter Blaha

Am 02.11.2023 um 14:56 schrieb Safae Benyoussef:
> Hello,
> 
> I am writing to seek your assistance in testing Example 5 of the 
> tutorial for Raspberry Pi - TaAs.
> 
> I have encountered several issues while attempting to run this example. 
> Despite my efforts to resolve them by using both the Wein19, Wein21, and 
> Wein23 versions, the same errors persist:
> 
> d
> Input file name: Wloop.in
> Additional options:
> Checking existance of Wloop.in
> -- OK
> Success
> Working directory = 
> /home/halima/Documents/wien19/SRC_BerryPI/BerryPI/tutorials/tutorial5/TaAs
> Wilson Loop ---------------------  1 of 91
>    File "/home/halima/Documents/wien19/SRC_BerryPI/BerryPI/berrypi", 
> line 184
>      print(DEFAULT_PREFIX + f"SCRATCH = {scratch}")
>                                                  ^
> SyntaxError: invalid syntax
> Traceback (most recent call last):
>    File "WloopPHI.py", line 267, in <module>
>      direction, Data = Solve(WorkingDir, KlistFileName, n, multiplier, 
> S_Band, E_Band, K_Start, K_End)
>    File "WloopPHI.py", line 162, in Solve
>      with open(berrypiOutFileName, 'r') as read_file:
> FileNotFoundError: [Errno 2] No such file or directory: 'TaAs.outputberry'
> 
> I would greatly appreciate your guidance and support in troubleshooting 
> and resolving these issues.
> 
> Thank you in advance for your assistance.
> 
> Cordially,
> 
> Safae Benyoussef
> 
> 
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
> SEARCH the MAILING-LIST at:  http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html

-- 
--------------------------------------------------------------------------
Peter BLAHA, Inst.f. Materials Chemistry, TU Vienna, A-1060 Vienna
Phone: +43-1-58801-165300
Email: peter.blaha at tuwien.ac.at    WIEN2k: http://www.wien2k.at
WWW:   http://www.imc.tuwien.ac.at
-------------------------------------------------------------------------


More information about the Wien mailing list