Csound Csound-dev Csound-tekno Search About

[Csnd] pyexeci behavior

Date2020-11-06 14:56
FromRichard
Subject[Csnd] pyexeci behavior
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it 
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in 
     import PySimpleGUI as sg
   File 
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py", 
line 2, in 
     from .PySimpleGUI import *
   File 
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py", 
line 18512, in 
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2020-11-07 06:25
FromFrancois PINOT
SubjectRe: [Csnd] pyexeci behavior
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-07 09:53
FromRichard van Bemmelen
SubjectRe: [Csnd] pyexeci behavior
Attachmentswindow.py  pycall.csd  
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-07 10:03
FromFrancois PINOT
SubjectRe: [Csnd] pyexeci behavior
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-07 10:19
FromRichard van Bemmelen
SubjectRe: [Csnd] pyexeci behavior
I did not install it. I think it came with the default Python...

Op za 7 nov. 2020 om 11:03 schreef Francois PINOT <fggpinot@gmail.com>:
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-07 10:22
FromFrancois PINOT
SubjectRe: [Csnd] pyexeci behavior
On my system (Ubuntu 20.04) I had to install it with
sudo apt install python3-tk

François

Le sam. 7 nov. 2020 à 11:19, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
I did not install it. I think it came with the default Python...

Op za 7 nov. 2020 om 11:03 schreef Francois PINOT <fggpinot@gmail.com>:
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-07 10:26
FromRichard van Bemmelen
SubjectRe: [Csnd] pyexeci behavior
When I do that, I get:
python3-tk is already the newest version (3.6.9-1~18.04).

Op za 7 nov. 2020 om 11:22 schreef Francois PINOT <fggpinot@gmail.com>:
On my system (Ubuntu 20.04) I had to install it with
sudo apt install python3-tk

François

Le sam. 7 nov. 2020 à 11:19, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
I did not install it. I think it came with the default Python...

Op za 7 nov. 2020 om 11:03 schreef Francois PINOT <fggpinot@gmail.com>:
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-07 11:14
FromFrancois PINOT
SubjectRe: [Csnd] pyexeci behavior
You seem to use ubuntu 18.04. My suggestion is to upgrade to ubuntu 20.04. Ubuntu 18.04 still had Python 2.7 as the default Python. Since 20.04, Python 3.8.5 is the default Python on this system.

François

Le sam. 7 nov. 2020 à 11:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
When I do that, I get:
python3-tk is already the newest version (3.6.9-1~18.04).

Op za 7 nov. 2020 om 11:22 schreef Francois PINOT <fggpinot@gmail.com>:
On my system (Ubuntu 20.04) I had to install it with
sudo apt install python3-tk

François

Le sam. 7 nov. 2020 à 11:19, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
I did not install it. I think it came with the default Python...

Op za 7 nov. 2020 om 11:03 schreef Francois PINOT <fggpinot@gmail.com>:
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-07 11:27
FromRichard van Bemmelen
SubjectRe: [Csnd] pyexeci behavior
Well, I have Linux Mint 19.3. I could upgrade, would that work?


Op za 7 nov. 2020 om 12:14 schreef Francois PINOT <fggpinot@gmail.com>:
You seem to use ubuntu 18.04. My suggestion is to upgrade to ubuntu 20.04. Ubuntu 18.04 still had Python 2.7 as the default Python. Since 20.04, Python 3.8.5 is the default Python on this system.

François

Le sam. 7 nov. 2020 à 11:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
When I do that, I get:
python3-tk is already the newest version (3.6.9-1~18.04).

Op za 7 nov. 2020 om 11:22 schreef Francois PINOT <fggpinot@gmail.com>:
On my system (Ubuntu 20.04) I had to install it with
sudo apt install python3-tk

François

Le sam. 7 nov. 2020 à 11:19, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
I did not install it. I think it came with the default Python...

Op za 7 nov. 2020 om 11:03 schreef Francois PINOT <fggpinot@gmail.com>:
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-07 11:29
FromFrancois PINOT
SubjectRe: [Csnd] pyexeci behavior
Well it's working for me on Ubuntu 20.04 with Python 3.8.5, and Csound 6.15 built from sources...

François

Le sam. 7 nov. 2020 à 12:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Well, I have Linux Mint 19.3. I could upgrade, would that work?


Op za 7 nov. 2020 om 12:14 schreef Francois PINOT <fggpinot@gmail.com>:
You seem to use ubuntu 18.04. My suggestion is to upgrade to ubuntu 20.04. Ubuntu 18.04 still had Python 2.7 as the default Python. Since 20.04, Python 3.8.5 is the default Python on this system.

François

Le sam. 7 nov. 2020 à 11:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
When I do that, I get:
python3-tk is already the newest version (3.6.9-1~18.04).

Op za 7 nov. 2020 om 11:22 schreef Francois PINOT <fggpinot@gmail.com>:
On my system (Ubuntu 20.04) I had to install it with
sudo apt install python3-tk

François

Le sam. 7 nov. 2020 à 11:19, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
I did not install it. I think it came with the default Python...

Op za 7 nov. 2020 om 11:03 schreef Francois PINOT <fggpinot@gmail.com>:
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-07 12:55
FromRichard van Bemmelen
SubjectRe: [Csnd] pyexeci behavior
I did an upgrade to Mint 20.
Now I got a slightly other error:
(it looks like python3.6 folder is still being used, while running python3 gives me version 3.8.5,
maybe a simple simlink can solve this?)

pyexeci: python exception
Traceback (most recent call last):
  File "./window.py", line 1, in <module>
    import PySimpleGUI as sg
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py", line 2, in <module>
    from .PySimpleGUI import *
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py", line 107, in <module>
    from tkinter import filedialog
ImportError: cannot import name 'filedialog'

Op za 7 nov. 2020 om 12:30 schreef Francois PINOT <fggpinot@gmail.com>:
Well it's working for me on Ubuntu 20.04 with Python 3.8.5, and Csound 6.15 built from sources...

François

Le sam. 7 nov. 2020 à 12:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Well, I have Linux Mint 19.3. I could upgrade, would that work?


Op za 7 nov. 2020 om 12:14 schreef Francois PINOT <fggpinot@gmail.com>:
You seem to use ubuntu 18.04. My suggestion is to upgrade to ubuntu 20.04. Ubuntu 18.04 still had Python 2.7 as the default Python. Since 20.04, Python 3.8.5 is the default Python on this system.

François

Le sam. 7 nov. 2020 à 11:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
When I do that, I get:
python3-tk is already the newest version (3.6.9-1~18.04).

Op za 7 nov. 2020 om 11:22 schreef Francois PINOT <fggpinot@gmail.com>:
On my system (Ubuntu 20.04) I had to install it with
sudo apt install python3-tk

François

Le sam. 7 nov. 2020 à 11:19, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
I did not install it. I think it came with the default Python...

Op za 7 nov. 2020 om 11:03 schreef Francois PINOT <fggpinot@gmail.com>:
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-07 13:11
FromRichard van Bemmelen
SubjectRe: [Csnd] pyexeci behavior
After creating an alias for python3 things are worse: I get:
(I guess I have to rebuild the plugins?)

WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libserial.so' (/usr/local/lib/csound/plugins64-6.0/libserial.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libstkops.so' (libstk-4.5.0.so: cannot open shared object file: No such file or directory)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libquadbezier.so' (/usr/local/lib/csound/plugins64-6.0/libquadbezier.so: undefined symbol: __sqrt_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libemugens.so' (/usr/local/lib/csound/plugins64-6.0/libemugens.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libscugens.so' (/usr/local/lib/csound/plugins64-6.0/libscugens.so: undefined symbol: __exp_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libfluidOpcodes.so' (libfluidsynth.so.1: cannot open shared object file: No such file or directory)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libbeosc.so' (/usr/local/lib/csound/plugins64-6.0/libbeosc.so: undefined symbol: __fmod_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libbuchla.so' (/usr/local/lib/csound/plugins64-6.0/libbuchla.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libgtf.so' (/usr/local/lib/csound/plugins64-6.0/libgtf.so: undefined symbol: __exp_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libexciter.so' (/usr/local/lib/csound/plugins64-6.0/libexciter.so: undefined symbol: __sqrt_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libsterrain.so' (/usr/local/lib/csound/plugins64-6.0/libsterrain.so: undefined symbol: __pow_finite)

Op za 7 nov. 2020 om 13:55 schreef Richard van Bemmelen <zappfinger@gmail.com>:
I did an upgrade to Mint 20.
Now I got a slightly other error:
(it looks like python3.6 folder is still being used, while running python3 gives me version 3.8.5,
maybe a simple simlink can solve this?)

pyexeci: python exception
Traceback (most recent call last):
  File "./window.py", line 1, in <module>
    import PySimpleGUI as sg
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py", line 2, in <module>
    from .PySimpleGUI import *
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py", line 107, in <module>
    from tkinter import filedialog
ImportError: cannot import name 'filedialog'

Op za 7 nov. 2020 om 12:30 schreef Francois PINOT <fggpinot@gmail.com>:
Well it's working for me on Ubuntu 20.04 with Python 3.8.5, and Csound 6.15 built from sources...

François

Le sam. 7 nov. 2020 à 12:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Well, I have Linux Mint 19.3. I could upgrade, would that work?


Op za 7 nov. 2020 om 12:14 schreef Francois PINOT <fggpinot@gmail.com>:
You seem to use ubuntu 18.04. My suggestion is to upgrade to ubuntu 20.04. Ubuntu 18.04 still had Python 2.7 as the default Python. Since 20.04, Python 3.8.5 is the default Python on this system.

François

Le sam. 7 nov. 2020 à 11:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
When I do that, I get:
python3-tk is already the newest version (3.6.9-1~18.04).

Op za 7 nov. 2020 om 11:22 schreef Francois PINOT <fggpinot@gmail.com>:
On my system (Ubuntu 20.04) I had to install it with
sudo apt install python3-tk

François

Le sam. 7 nov. 2020 à 11:19, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
I did not install it. I think it came with the default Python...

Op za 7 nov. 2020 om 11:03 schreef Francois PINOT <fggpinot@gmail.com>:
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-07 13:22
FromRichard van Bemmelen
SubjectRe: [Csnd] pyexeci behavior
The build does not work anymore:
Maybe I should recompile csound as well?

/home/richard/Downloads/plugins-master/py/src/pythonopcodes.c:33:12: fatal error: Python.h: No such file or directory
   33 | #  include <Python.h>

Op za 7 nov. 2020 om 14:11 schreef Richard van Bemmelen <zappfinger@gmail.com>:
After creating an alias for python3 things are worse: I get:
(I guess I have to rebuild the plugins?)

WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libserial.so' (/usr/local/lib/csound/plugins64-6.0/libserial.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libstkops.so' (libstk-4.5.0.so: cannot open shared object file: No such file or directory)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libquadbezier.so' (/usr/local/lib/csound/plugins64-6.0/libquadbezier.so: undefined symbol: __sqrt_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libemugens.so' (/usr/local/lib/csound/plugins64-6.0/libemugens.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libscugens.so' (/usr/local/lib/csound/plugins64-6.0/libscugens.so: undefined symbol: __exp_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libfluidOpcodes.so' (libfluidsynth.so.1: cannot open shared object file: No such file or directory)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libbeosc.so' (/usr/local/lib/csound/plugins64-6.0/libbeosc.so: undefined symbol: __fmod_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libbuchla.so' (/usr/local/lib/csound/plugins64-6.0/libbuchla.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libgtf.so' (/usr/local/lib/csound/plugins64-6.0/libgtf.so: undefined symbol: __exp_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libexciter.so' (/usr/local/lib/csound/plugins64-6.0/libexciter.so: undefined symbol: __sqrt_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libsterrain.so' (/usr/local/lib/csound/plugins64-6.0/libsterrain.so: undefined symbol: __pow_finite)

Op za 7 nov. 2020 om 13:55 schreef Richard van Bemmelen <zappfinger@gmail.com>:
I did an upgrade to Mint 20.
Now I got a slightly other error:
(it looks like python3.6 folder is still being used, while running python3 gives me version 3.8.5,
maybe a simple simlink can solve this?)

pyexeci: python exception
Traceback (most recent call last):
  File "./window.py", line 1, in <module>
    import PySimpleGUI as sg
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py", line 2, in <module>
    from .PySimpleGUI import *
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py", line 107, in <module>
    from tkinter import filedialog
ImportError: cannot import name 'filedialog'

Op za 7 nov. 2020 om 12:30 schreef Francois PINOT <fggpinot@gmail.com>:
Well it's working for me on Ubuntu 20.04 with Python 3.8.5, and Csound 6.15 built from sources...

François

Le sam. 7 nov. 2020 à 12:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Well, I have Linux Mint 19.3. I could upgrade, would that work?


Op za 7 nov. 2020 om 12:14 schreef Francois PINOT <fggpinot@gmail.com>:
You seem to use ubuntu 18.04. My suggestion is to upgrade to ubuntu 20.04. Ubuntu 18.04 still had Python 2.7 as the default Python. Since 20.04, Python 3.8.5 is the default Python on this system.

François

Le sam. 7 nov. 2020 à 11:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
When I do that, I get:
python3-tk is already the newest version (3.6.9-1~18.04).

Op za 7 nov. 2020 om 11:22 schreef Francois PINOT <fggpinot@gmail.com>:
On my system (Ubuntu 20.04) I had to install it with
sudo apt install python3-tk

François

Le sam. 7 nov. 2020 à 11:19, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
I did not install it. I think it came with the default Python...

Op za 7 nov. 2020 om 11:03 schreef Francois PINOT <fggpinot@gmail.com>:
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-07 16:09
FromFrancois PINOT
SubjectRe: [Csnd] pyexeci behavior
In fact here I never upgrade my ubuntu. I use ubuntu nn.04 where nn is an even number. These distributions are Long Term Support (LTS) distros. Every two years, I reinstall all my Ubuntu system from zero so that I'm sure I have a clean installation without any garbage remaining from the precedent distro.

François

Le sam. 7 nov. 2020 à 14:23, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
The build does not work anymore:
Maybe I should recompile csound as well?

/home/richard/Downloads/plugins-master/py/src/pythonopcodes.c:33:12: fatal error: Python.h: No such file or directory
   33 | #  include <Python.h>

Op za 7 nov. 2020 om 14:11 schreef Richard van Bemmelen <zappfinger@gmail.com>:
After creating an alias for python3 things are worse: I get:
(I guess I have to rebuild the plugins?)

WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libserial.so' (/usr/local/lib/csound/plugins64-6.0/libserial.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libstkops.so' (libstk-4.5.0.so: cannot open shared object file: No such file or directory)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libquadbezier.so' (/usr/local/lib/csound/plugins64-6.0/libquadbezier.so: undefined symbol: __sqrt_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libemugens.so' (/usr/local/lib/csound/plugins64-6.0/libemugens.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libscugens.so' (/usr/local/lib/csound/plugins64-6.0/libscugens.so: undefined symbol: __exp_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libfluidOpcodes.so' (libfluidsynth.so.1: cannot open shared object file: No such file or directory)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libbeosc.so' (/usr/local/lib/csound/plugins64-6.0/libbeosc.so: undefined symbol: __fmod_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libbuchla.so' (/usr/local/lib/csound/plugins64-6.0/libbuchla.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libgtf.so' (/usr/local/lib/csound/plugins64-6.0/libgtf.so: undefined symbol: __exp_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libexciter.so' (/usr/local/lib/csound/plugins64-6.0/libexciter.so: undefined symbol: __sqrt_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libsterrain.so' (/usr/local/lib/csound/plugins64-6.0/libsterrain.so: undefined symbol: __pow_finite)

Op za 7 nov. 2020 om 13:55 schreef Richard van Bemmelen <zappfinger@gmail.com>:
I did an upgrade to Mint 20.
Now I got a slightly other error:
(it looks like python3.6 folder is still being used, while running python3 gives me version 3.8.5,
maybe a simple simlink can solve this?)

pyexeci: python exception
Traceback (most recent call last):
  File "./window.py", line 1, in <module>
    import PySimpleGUI as sg
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py", line 2, in <module>
    from .PySimpleGUI import *
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py", line 107, in <module>
    from tkinter import filedialog
ImportError: cannot import name 'filedialog'

Op za 7 nov. 2020 om 12:30 schreef Francois PINOT <fggpinot@gmail.com>:
Well it's working for me on Ubuntu 20.04 with Python 3.8.5, and Csound 6.15 built from sources...

François

Le sam. 7 nov. 2020 à 12:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Well, I have Linux Mint 19.3. I could upgrade, would that work?


Op za 7 nov. 2020 om 12:14 schreef Francois PINOT <fggpinot@gmail.com>:
You seem to use ubuntu 18.04. My suggestion is to upgrade to ubuntu 20.04. Ubuntu 18.04 still had Python 2.7 as the default Python. Since 20.04, Python 3.8.5 is the default Python on this system.

François

Le sam. 7 nov. 2020 à 11:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
When I do that, I get:
python3-tk is already the newest version (3.6.9-1~18.04).

Op za 7 nov. 2020 om 11:22 schreef Francois PINOT <fggpinot@gmail.com>:
On my system (Ubuntu 20.04) I had to install it with
sudo apt install python3-tk

François

Le sam. 7 nov. 2020 à 11:19, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
I did not install it. I think it came with the default Python...

Op za 7 nov. 2020 om 11:03 schreef Francois PINOT <fggpinot@gmail.com>:
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-08 16:31
FromRichard van Bemmelen
SubjectRe: [Csnd] pyexeci behavior
I started from scratch again. Compilin Csound, Projucer, and tried to compile the plugins.
But I still got the error about Python.h.
Did a sudo apt-get install python3.8-dev, also with --reinstall, but no luck.
I am a bit lost now...

Op za 7 nov. 2020 om 17:10 schreef Francois PINOT <fggpinot@gmail.com>:
In fact here I never upgrade my ubuntu. I use ubuntu nn.04 where nn is an even number. These distributions are Long Term Support (LTS) distros. Every two years, I reinstall all my Ubuntu system from zero so that I'm sure I have a clean installation without any garbage remaining from the precedent distro.

François

Le sam. 7 nov. 2020 à 14:23, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
The build does not work anymore:
Maybe I should recompile csound as well?

/home/richard/Downloads/plugins-master/py/src/pythonopcodes.c:33:12: fatal error: Python.h: No such file or directory
   33 | #  include <Python.h>

Op za 7 nov. 2020 om 14:11 schreef Richard van Bemmelen <zappfinger@gmail.com>:
After creating an alias for python3 things are worse: I get:
(I guess I have to rebuild the plugins?)

WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libserial.so' (/usr/local/lib/csound/plugins64-6.0/libserial.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libstkops.so' (libstk-4.5.0.so: cannot open shared object file: No such file or directory)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libquadbezier.so' (/usr/local/lib/csound/plugins64-6.0/libquadbezier.so: undefined symbol: __sqrt_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libemugens.so' (/usr/local/lib/csound/plugins64-6.0/libemugens.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libscugens.so' (/usr/local/lib/csound/plugins64-6.0/libscugens.so: undefined symbol: __exp_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libfluidOpcodes.so' (libfluidsynth.so.1: cannot open shared object file: No such file or directory)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libbeosc.so' (/usr/local/lib/csound/plugins64-6.0/libbeosc.so: undefined symbol: __fmod_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libbuchla.so' (/usr/local/lib/csound/plugins64-6.0/libbuchla.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libgtf.so' (/usr/local/lib/csound/plugins64-6.0/libgtf.so: undefined symbol: __exp_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libexciter.so' (/usr/local/lib/csound/plugins64-6.0/libexciter.so: undefined symbol: __sqrt_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libsterrain.so' (/usr/local/lib/csound/plugins64-6.0/libsterrain.so: undefined symbol: __pow_finite)

Op za 7 nov. 2020 om 13:55 schreef Richard van Bemmelen <zappfinger@gmail.com>:
I did an upgrade to Mint 20.
Now I got a slightly other error:
(it looks like python3.6 folder is still being used, while running python3 gives me version 3.8.5,
maybe a simple simlink can solve this?)

pyexeci: python exception
Traceback (most recent call last):
  File "./window.py", line 1, in <module>
    import PySimpleGUI as sg
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py", line 2, in <module>
    from .PySimpleGUI import *
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py", line 107, in <module>
    from tkinter import filedialog
ImportError: cannot import name 'filedialog'

Op za 7 nov. 2020 om 12:30 schreef Francois PINOT <fggpinot@gmail.com>:
Well it's working for me on Ubuntu 20.04 with Python 3.8.5, and Csound 6.15 built from sources...

François

Le sam. 7 nov. 2020 à 12:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Well, I have Linux Mint 19.3. I could upgrade, would that work?


Op za 7 nov. 2020 om 12:14 schreef Francois PINOT <fggpinot@gmail.com>:
You seem to use ubuntu 18.04. My suggestion is to upgrade to ubuntu 20.04. Ubuntu 18.04 still had Python 2.7 as the default Python. Since 20.04, Python 3.8.5 is the default Python on this system.

François

Le sam. 7 nov. 2020 à 11:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
When I do that, I get:
python3-tk is already the newest version (3.6.9-1~18.04).

Op za 7 nov. 2020 om 11:22 schreef Francois PINOT <fggpinot@gmail.com>:
On my system (Ubuntu 20.04) I had to install it with
sudo apt install python3-tk

François

Le sam. 7 nov. 2020 à 11:19, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
I did not install it. I think it came with the default Python...

Op za 7 nov. 2020 om 11:03 schreef Francois PINOT <fggpinot@gmail.com>:
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-09 11:49
FromRichard van Bemmelen
SubjectRe: [Csnd] pyexeci behavior
The strange thing is, that the file is present on my system here:
/usr/include/python3.8/
but somehow the plugin build process cannot find it?

Op zo 8 nov. 2020 om 17:31 schreef Richard van Bemmelen <zappfinger@gmail.com>:
I started from scratch again. Compilin Csound, Projucer, and tried to compile the plugins.
But I still got the error about Python.h.
Did a sudo apt-get install python3.8-dev, also with --reinstall, but no luck.
I am a bit lost now...

Op za 7 nov. 2020 om 17:10 schreef Francois PINOT <fggpinot@gmail.com>:
In fact here I never upgrade my ubuntu. I use ubuntu nn.04 where nn is an even number. These distributions are Long Term Support (LTS) distros. Every two years, I reinstall all my Ubuntu system from zero so that I'm sure I have a clean installation without any garbage remaining from the precedent distro.

François

Le sam. 7 nov. 2020 à 14:23, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
The build does not work anymore:
Maybe I should recompile csound as well?

/home/richard/Downloads/plugins-master/py/src/pythonopcodes.c:33:12: fatal error: Python.h: No such file or directory
   33 | #  include <Python.h>

Op za 7 nov. 2020 om 14:11 schreef Richard van Bemmelen <zappfinger@gmail.com>:
After creating an alias for python3 things are worse: I get:
(I guess I have to rebuild the plugins?)

WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libserial.so' (/usr/local/lib/csound/plugins64-6.0/libserial.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libstkops.so' (libstk-4.5.0.so: cannot open shared object file: No such file or directory)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libquadbezier.so' (/usr/local/lib/csound/plugins64-6.0/libquadbezier.so: undefined symbol: __sqrt_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libemugens.so' (/usr/local/lib/csound/plugins64-6.0/libemugens.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libscugens.so' (/usr/local/lib/csound/plugins64-6.0/libscugens.so: undefined symbol: __exp_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libfluidOpcodes.so' (libfluidsynth.so.1: cannot open shared object file: No such file or directory)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libbeosc.so' (/usr/local/lib/csound/plugins64-6.0/libbeosc.so: undefined symbol: __fmod_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libbuchla.so' (/usr/local/lib/csound/plugins64-6.0/libbuchla.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libgtf.so' (/usr/local/lib/csound/plugins64-6.0/libgtf.so: undefined symbol: __exp_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libexciter.so' (/usr/local/lib/csound/plugins64-6.0/libexciter.so: undefined symbol: __sqrt_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libsterrain.so' (/usr/local/lib/csound/plugins64-6.0/libsterrain.so: undefined symbol: __pow_finite)

Op za 7 nov. 2020 om 13:55 schreef Richard van Bemmelen <zappfinger@gmail.com>:
I did an upgrade to Mint 20.
Now I got a slightly other error:
(it looks like python3.6 folder is still being used, while running python3 gives me version 3.8.5,
maybe a simple simlink can solve this?)

pyexeci: python exception
Traceback (most recent call last):
  File "./window.py", line 1, in <module>
    import PySimpleGUI as sg
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py", line 2, in <module>
    from .PySimpleGUI import *
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py", line 107, in <module>
    from tkinter import filedialog
ImportError: cannot import name 'filedialog'

Op za 7 nov. 2020 om 12:30 schreef Francois PINOT <fggpinot@gmail.com>:
Well it's working for me on Ubuntu 20.04 with Python 3.8.5, and Csound 6.15 built from sources...

François

Le sam. 7 nov. 2020 à 12:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Well, I have Linux Mint 19.3. I could upgrade, would that work?


Op za 7 nov. 2020 om 12:14 schreef Francois PINOT <fggpinot@gmail.com>:
You seem to use ubuntu 18.04. My suggestion is to upgrade to ubuntu 20.04. Ubuntu 18.04 still had Python 2.7 as the default Python. Since 20.04, Python 3.8.5 is the default Python on this system.

François

Le sam. 7 nov. 2020 à 11:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
When I do that, I get:
python3-tk is already the newest version (3.6.9-1~18.04).

Op za 7 nov. 2020 om 11:22 schreef Francois PINOT <fggpinot@gmail.com>:
On my system (Ubuntu 20.04) I had to install it with
sudo apt install python3-tk

François

Le sam. 7 nov. 2020 à 11:19, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
I did not install it. I think it came with the default Python...

Op za 7 nov. 2020 om 11:03 schreef Francois PINOT <fggpinot@gmail.com>:
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-11-09 11:58
FromRichard van Bemmelen
SubjectRe: [Csnd] pyexeci behavior
Got it solved. Deleted the build folder and did the steps again....

Op ma 9 nov. 2020 om 12:49 schreef Richard van Bemmelen <zappfinger@gmail.com>:
The strange thing is, that the file is present on my system here:
/usr/include/python3.8/
but somehow the plugin build process cannot find it?

Op zo 8 nov. 2020 om 17:31 schreef Richard van Bemmelen <zappfinger@gmail.com>:
I started from scratch again. Compilin Csound, Projucer, and tried to compile the plugins.
But I still got the error about Python.h.
Did a sudo apt-get install python3.8-dev, also with --reinstall, but no luck.
I am a bit lost now...

Op za 7 nov. 2020 om 17:10 schreef Francois PINOT <fggpinot@gmail.com>:
In fact here I never upgrade my ubuntu. I use ubuntu nn.04 where nn is an even number. These distributions are Long Term Support (LTS) distros. Every two years, I reinstall all my Ubuntu system from zero so that I'm sure I have a clean installation without any garbage remaining from the precedent distro.

François

Le sam. 7 nov. 2020 à 14:23, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
The build does not work anymore:
Maybe I should recompile csound as well?

/home/richard/Downloads/plugins-master/py/src/pythonopcodes.c:33:12: fatal error: Python.h: No such file or directory
   33 | #  include <Python.h>

Op za 7 nov. 2020 om 14:11 schreef Richard van Bemmelen <zappfinger@gmail.com>:
After creating an alias for python3 things are worse: I get:
(I guess I have to rebuild the plugins?)

WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libserial.so' (/usr/local/lib/csound/plugins64-6.0/libserial.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libstkops.so' (libstk-4.5.0.so: cannot open shared object file: No such file or directory)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libquadbezier.so' (/usr/local/lib/csound/plugins64-6.0/libquadbezier.so: undefined symbol: __sqrt_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libemugens.so' (/usr/local/lib/csound/plugins64-6.0/libemugens.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libscugens.so' (/usr/local/lib/csound/plugins64-6.0/libscugens.so: undefined symbol: __exp_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libfluidOpcodes.so' (libfluidsynth.so.1: cannot open shared object file: No such file or directory)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libbeosc.so' (/usr/local/lib/csound/plugins64-6.0/libbeosc.so: undefined symbol: __fmod_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libbuchla.so' (/usr/local/lib/csound/plugins64-6.0/libbuchla.so: undefined symbol: __pow_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libgtf.so' (/usr/local/lib/csound/plugins64-6.0/libgtf.so: undefined symbol: __exp_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libexciter.so' (/usr/local/lib/csound/plugins64-6.0/libexciter.so: undefined symbol: __sqrt_finite)
WARNING: could not open library '/usr/local/lib/csound/plugins64-6.0/libsterrain.so' (/usr/local/lib/csound/plugins64-6.0/libsterrain.so: undefined symbol: __pow_finite)

Op za 7 nov. 2020 om 13:55 schreef Richard van Bemmelen <zappfinger@gmail.com>:
I did an upgrade to Mint 20.
Now I got a slightly other error:
(it looks like python3.6 folder is still being used, while running python3 gives me version 3.8.5,
maybe a simple simlink can solve this?)

pyexeci: python exception
Traceback (most recent call last):
  File "./window.py", line 1, in <module>
    import PySimpleGUI as sg
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py", line 2, in <module>
    from .PySimpleGUI import *
  File "/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py", line 107, in <module>
    from tkinter import filedialog
ImportError: cannot import name 'filedialog'

Op za 7 nov. 2020 om 12:30 schreef Francois PINOT <fggpinot@gmail.com>:
Well it's working for me on Ubuntu 20.04 with Python 3.8.5, and Csound 6.15 built from sources...

François

Le sam. 7 nov. 2020 à 12:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Well, I have Linux Mint 19.3. I could upgrade, would that work?


Op za 7 nov. 2020 om 12:14 schreef Francois PINOT <fggpinot@gmail.com>:
You seem to use ubuntu 18.04. My suggestion is to upgrade to ubuntu 20.04. Ubuntu 18.04 still had Python 2.7 as the default Python. Since 20.04, Python 3.8.5 is the default Python on this system.

François

Le sam. 7 nov. 2020 à 11:27, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
When I do that, I get:
python3-tk is already the newest version (3.6.9-1~18.04).

Op za 7 nov. 2020 om 11:22 schreef Francois PINOT <fggpinot@gmail.com>:
On my system (Ubuntu 20.04) I had to install it with
sudo apt install python3-tk

François

Le sam. 7 nov. 2020 à 11:19, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
I did not install it. I think it came with the default Python...

Op za 7 nov. 2020 om 11:03 schreef Francois PINOT <fggpinot@gmail.com>:
Here it works. Your problem seems to come from tkinter. How did you install tkinter on your system?

François

Le sam. 7 nov. 2020 à 10:53, Richard van Bemmelen <zappfinger@gmail.com> a écrit :
Here's the csd and the Python program..

Op za 7 nov. 2020 om 07:25 schreef Francois PINOT <fggpinot@gmail.com>:
csd?

François

Le ven. 6 nov. 2020 à 15:56, Richard <zappfinger@gmail.com> a écrit :
I have a simple python program using PySimpleGUI.

When I run it from the command prompt it runs fine. When I try to run it
with pyexeci I get these errors:

0dBFS level = 1.0
pyexeci: python exception
Traceback (most recent call last):
   File "./window.py", line 1, in <module>
     import PySimpleGUI as sg
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/__init__.py",
line 2, in <module>
     from .PySimpleGUI import *
   File
"/home/richard/.local/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py",
line 18512, in <module>
     tclversion_detailed = tkinter.Tcl().eval('info patchlevel')
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2119, in Tcl
     return Tk(screenName, baseName, className, useTk)
   File "/usr/lib/python3.6/tkinter/__init__.py", line 2018, in __init__
     baseName = os.path.basename(sys.argv[0])
AttributeError: module 'sys' has no attribute 'argv'

Why is that?

Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here