-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux installation #34
Comments
i just now added a PYTHONPATH From the terminal i run python:
I am pretty sure some files are not in their correct places. |
First, right now there is a binary release of CsoundAC only for macOS and
only for Python 3.12. If you build CsoundAC yourself, you need to make a
note of which Python is used.
You can run python3, python3.12, etc., and see which version of Python will
succeed in importing CsoundAC.
Second, you need to make sure that Reaper uses that specific version of
Python. There is a Reaper setting for that:
[image: image.png]
I hope you attend the Zoom meeting tomorrow.
Best,
Mike
-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com
…On Wed, Jan 1, 2025 at 1:28 PM Menno Knevel ***@***.***> wrote:
i just now added a PYTHONPATH
PYTHONPATH=/usr/local/lib/python3.12/dist-packages
and copied CsoundAC.py to that place
did not work
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQIGJJT5FEK5KOIEXAAGBT2IPNOXAVCNFSM6AAAAABUKWYNG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRWHE4DQMZVG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
So the development build from https://github.com/gogins/csound-ac/releases It does have the same version number as the MacOS one. My Python version is Python 3.12.3 Yes, i am planning to attend the Zoom tomorrow |
I'm talking about the Python version number, not the CsoundAC version
number. What operating system are you using?
…-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com
On Wed, Jan 1, 2025 at 5:32 PM Menno Knevel ***@***.***> wrote:
So the development build from https://github.com/gogins/csound-ac/releases
does not work?
It does have the same version number as the MacOS one.
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQIGJJRPHBMPILCQDLHN2L2IQKC7AVCNFSM6AAAAABUKWYNG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRXGA3TCMRTG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
i see you are replying via mail, not via Github
i have written more information via Github but that will not show up via
the mail.
And the image you posted does not show, it is a screenshot of Reaper i
presume.
So i will start using the mail for a resumé.
Linux Mint 22, Python 3.12.3
On Wed, Jan 1, 2025 at 6:18 PM Michael Gogins ***@***.***>
wrote:
… I'm talking about the Python version number, not the CsoundAC version
number. What operating system are you using?
-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com
On Wed, Jan 1, 2025 at 5:32 PM Menno Knevel ***@***.***>
wrote:
> So the development build from
https://github.com/gogins/csound-ac/releases
> does not work?
>
> It does have the same version number as the MacOS one.
>
> —
> Reply to this email directly, view it on GitHub
> <#34 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ABQIGJJRPHBMPILCQDLHN2L2IQKC7AVCNFSM6AAAAABUKWYNG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRXGA3TCMRTG4>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABS4UP6FHCKSKTSU3SBLUS32IQPP5AVCNFSM6AAAAABUKWYNG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRXGA4DIMRYHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
CsoundAC consists of two files, a native shared library _CsoundAC.so (on
Linux, .dlyd on macOS) and a Python file. Both of these files should be in
the site-packages directory for the correct version of Python, which must
be the version against which the .so file was built.
On my MacBook Pro, these files are:
/opt/homebrew/lib/python3.12/site-packages/CsoundAC.py
/opt/homebrew/lib/python3.12/site-packages/_CsoundAC.so
To test the installation, I go to the command line and run Python, then I
manually import CsoundAC.
If I try with the wrong version of Python, I get an error:
***@***.*** ~ % python3
Python 3.13.1 (main, Dec 3 2024, 17:59:52) [Clang 16.0.0
(clang-1600.0.26.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>> import CsoundAC
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
import CsoundAC
ModuleNotFoundError: No module named 'CsoundAC'
If I try with the correct version of Python, there is no error:
***@***.*** ~ % python3.12
Python 3.12.8 (main, Dec 3 2024, 18:42:41) [Clang 16.0.0
(clang-1600.0.26.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>> import CsoundAC
>>
Then in Reaper, I ensure that the Python version used for ReaScript is the
same as the Python version that successfully imports CsoundAC:
[image: image.png]
The key here is that Reaper says "libpython3.12.dylib is installed". On
Linux, that would be libpython3.12.so. You need to find where that library
is on your system, and copy the full pathname of that file into the "Custom
path" field here.
Of course on your Linux machine the version of Python could be 3.9, 3.10
3.11, or whatever. I don't recall any more what version of Python it was,
but I think you can find out by executing "ldd _CsoundAC.so" (fill pathname
of _CsoundAC.so will be required) and seeing what Python library has been
linked with CsoundAC.
Sorry this is so complex....
Best,
Mike
…-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com
On Sun, Dec 29, 2024 at 12:26 PM Menno Knevel ***@***.***> wrote:
In my Linux system, I copied the CsoundAC files over as Linux release from
mentionedhttps://github.com/gogins/csound-ac/releases mentions. This is
version 5 from March 20th. Then *sudo ldconfig*
After that i copy the ac-reaper.py file to ~/config/REAPER/Scripts
In the Actions window form Reaper, a Python file, unlike lua or eel is
seen. So i switch to All Files and doubleclick ac-reaper.py
Screenshot.from.2024-12-29.12-22-50.png (view on web)
<https://github.com/user-attachments/assets/7c9b661d-7ff1-4af1-a12f-3333eeec748e>
Screenshot.from.2024-12-29.12-24-48.png (view on web)
<https://github.com/user-attachments/assets/b7619759-2cc4-4a9a-b3e0-d8d579bdb5ec>
First: i am unsure if CsoundAC is installed correctly
Second: what should be done in the script so that CsoundAC runs within
Reaper?
—
Reply to this email directly, view it on GitHub
<#34>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQIGJKYREX57SUEPHGFTYT2H7L65AVCNFSM6AAAAABUKWYNG2VHI2DSMVQWIX3LMV43ASLTON2WKOZSG43DEMRRGA2TKOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thanks for your elaborate reply.
Yes, it is complex. I'd like to cut this up into little steps to see where
things go wrong.
First little step:
On Thu, Jan 2, 2025 at 10:52 AM Michael Gogins ***@***.***> wrote:
CsoundAC consists of two files, a native shared library _CsoundAC.so (on
Linux, .dlyd on macOS) and a Python file. Both of these files should be in
the site-packages directory for the correct version of Python, which must
be the version against which the .so file was built.
I did not build anything. Should I?
In the instructions on https://github.com/gogins/csound-ac i read this:
There are prebuilt binary releases for this package available at
https://github.com/gogins/csound-ac/releases.
So i was glad that there are binary releases and chose from
https://github.com/gogins/csound-ac/releases the Linux Development Release.
This is from March but is has the same release number 0.50 as the Mac
release. Although the Mac release is from November.
Is this not the Linux build i should use?
… Message ID: ***@***.***>
|
it should be usable.
…On Thu, Jan 2, 2025, 12:25 Menno Knevel ***@***.***> wrote:
Thanks for your elaborate reply.
Yes, it is complex. I'd like to cut this up into little steps to see where
things go wrong.
First little step:
On Thu, Jan 2, 2025 at 10:52 AM Michael Gogins ***@***.***>
wrote:
> CsoundAC consists of two files, a native shared library _CsoundAC.so (on
> Linux, .dlyd on macOS) and a Python file. Both of these files should be
in
> the site-packages directory for the correct version of Python, which
must
> be the version against which the .so file was built.
>
>
I did not build anything. Should I?
In the instructions on https://github.com/gogins/csound-ac i read this:
There are prebuilt binary releases for this package available at
https://github.com/gogins/csound-ac/releases.
So i was glad that there are binary releases and chose from
https://github.com/gogins/csound-ac/releases the Linux Development
Release.
This is from March but is has the same release number 0.50 as the Mac
release. Although the Mac release is from November.
Is this not the Linux build i should use?
> Message ID: ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQIGJILZZSCI2RAVV5RC732IUO4LAVCNFSM6AAAAABUKWYNG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRXGYZDQMRQHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
a few days ago i copied _CsoundAC.so and CsoundAC.py over to several locations- among them to I do not have other Python versions installed. This is what happens:
|
This means that your _CsoundAC.so shared library was linked to
libpython3.10.so.1.0. If you install Python3.10, install CsoundAC in
Python3.10's site-packages, and run python3.10 it should work.
…-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com
On Thu, Jan 2, 2025 at 12:46 PM Menno Knevel ***@***.***> wrote:
a few days ago i copied _CsoundAC.so and CsoundAC.py over to several
locations- among them to
/usr/local/lib/python3.12/dist-packages
I do not have other Python versions installed.
This is what happens:
***@***.*** ~ $ python3.12
Python 3.12.3 (main, Nov 6 2024, 18:32:19) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import CsoundAC
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.12/dist-packages/CsoundAC.py", line 15, in <module>
import _CsoundAC
ImportError: libpython3.10.so.1.0: cannot open shared object file: No such file or directory
>>>
Screenshot.from.2025-01-02.12-40-38.png (view on web)
<https://github.com/user-attachments/assets/be53b75d-44c7-4852-a6f4-daaaec18a260>
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQIGJNK2TFCUXMS3LOLX2L2IURKRAVCNFSM6AAAAABUKWYNG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRXGY2TENRSGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
No, except for recompiling CsoundAC.
However, you can have several versions of Python installed on your computer
at the same time. If you really want this to work, install Python 3.10.
…On Thu, Jan 2, 2025, 13:10 Menno Knevel ***@***.***> wrote:
i do not have libpython3.10.so.1.0 on my computer.
I do have libpython3.12.so.1.0
Screenshot.from.2025-01-02.13-08-21.png (view on web)
<https://github.com/user-attachments/assets/e2033134-65e0-4f64-9267-ce4497b03261>
Is there something in _CsoundAC.so that i can change to make it point to
libpython3.12.so.1.0 ?
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQIGJKHT23AWAZZXJ2CVO32IUUDTAVCNFSM6AAAAABUKWYNG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRXGY4DCMJRGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
it seems i can not install 3.10 as it will break the system. I will be so courageous and build against 3.12 tomorrow :) |
OK! I'm available if you want help.
…-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com
On Thu, Jan 2, 2025 at 5:22 PM Menno Knevel ***@***.***> wrote:
it seems i can not install 3.10 as it will break the system.
I will be so courageous and build against 3.12 tomorrow :)
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQIGJPYWFTPB275IJTOEYD2IVRUTAVCNFSM6AAAAABUKWYNG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRYGAZTENRTGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
thank you very much. |
I wonder if LaTeX on @tjingboem's system has |
In my Linux system, I copied the CsoundAC files over as Linux release from mentionedhttps://github.com/gogins/csound-ac/releases mentions. This is version 5 from March 20th. Then sudo ldconfig
After that i copy the ac-reaper.py file to ~/config/REAPER/Scripts
In the Actions window form Reaper, a Python file, unlike lua or eel is not seen. So i switch to All Files and doubleclick ac-reaper.py
First: i am unsure if CsoundAC is installed correctly
Second: what should be done in the script so that CsoundAC runs within Reaper?
The text was updated successfully, but these errors were encountered: