Re: [fluka-discuss]: python3 version of flair AND update of flair-py3

From: Paola Sala <paola.sala_at_mi.infn.it>
Date: Fri, 17 Jun 2022 11:03:43 +0200

Hello Carl
I could not reproduce youtr problem..so I reintroduced the possibility
for the user to force the python command to be used.

So, now, if you either
export PYTHON=python3
or
make PYTHON=python3

python3 will be checked and used

Otherwise, the makefile itself looks   for python version3, which works
for me, hopefully for other systems,  but evidently fails sometimes.
New version is on the website

Thanks
Paola

On 6/16/22 03:05, Carl Ross wrote:
> I've tried the new version but now I can't get the geoviewer to build.
>
> I have an environment variable set as:
>
> PYTHON=python3
>
> When I request the python version I get:
>
> carl_at_carl-HP-PC-570:~$ python --version
> Python 3.8.10
>
> I did make as
>
> make PYTHON3=yes
>
> It returns:
>
> c++ -c geometryobject.cc -DUNIX -O4 -funroll-loops -g -DNDEBUG
> -D_DEBUG=0 -DTHREAD -Wall -Wcast-align -Wcast-qual -Wextra -Wformat
> -Wpointer-arith -Wredundant-decls -Wshadow -Wno-write-strings -fwrapv
> -fstack-protector -fpic  -Ioptimizer -Iviewer -Idata -Igeometry
> -Igraph -Imath -Iutils -m64 -fno-strict-aliasing
>  -I/usr/include/tcl8.6 -I-I/usr/include/python2.7
> -I/usr/include/x86_64-linux-gnu/python2.7
> geometryobject.cc:40:10: fatal error: Python.h: No such file or directory
>    40 | #include <Python.h>
>
> I believe this worked for the previous version.
>
> Sorry I don't have a very good understanding of Python and its
> versions. It still seems to be picking up V2.7.
>
> Carl
>
>
>
> On Mon, Jun 13, 2022 at 5:10 AM <alfredo.ferrari_at_mi.infn.it> wrote:
>
> Dear all
>
> The experimental flair-2.3 python3 file have been updated, hopefully
> fixing the problem reported by Carl.
>
> Please download them again and let us know!
>
> > "An experimental port of flair-2.3 to python3 is also available ..."
> >
> > Here is my experience:
> >
> > Ubuntu 20.04
> > Python 3.8.10
> >
> > Flair starts up fine, reads input files, shows geometry.
> >
> > However, when I go to "Run", "Data", "Clean" I get:
> >
> > File "/usr/local/flairPy3/DataProcess.py", line 75, in _clean
> >     os.remove(f)
> > FileNotFoundError: [Errno 2] No such file or directory
> >
> > During handling of the above exception, another exception occurred:
> >
> > Traceback (most recent call last):
> >   File "/usr/local/flairPy3/FlairProcess.py", line 59, in clean
> >     return self._clean()
> >   File "/usr/local/flairPy3/DataProcess.py", line 80, in _clean
> >     errno, strerror = sys.exc_info()[1]
> > TypeError: cannot unpack non-iterable FileNotFoundError object
> >
> > At this point, it has hung up.
> >
> > Carl
> >
>
>


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Fri Jun 17 2022 - 12:48:35 CEST

This archive was generated by hypermail 2.3.0 : Fri Jun 17 2022 - 12:48:40 CEST