Old 05-04-2023, 02:36 PM   #1
Winfield
Human being with feelings
 
Winfield's Avatar
 
Join Date: Jan 2007
Location: The Underground Bunker
Posts: 705
Default Python in Reaper - how?

So I've been trying Reaper in ubunto (I'm a total ubunto noob). How do I get "Enable python to use with reascript" in prefs? How do I find the correct path for the install (I have python installed).
Any help appreciated, thank you.
-W
__________________
"if DAWs are religions, REAPER is atheism" - The big J
__________________
Windows 10x64 | Asus Z170-a i7, 32GB ram | RME-Digiface USB
Winfield is offline   Reply With Quote
Old 05-04-2023, 06:42 PM   #2
clepsydrae
Human being with feelings
 
clepsydrae's Avatar
 
Join Date: Nov 2011
Posts: 3,408
Default

• hit control-P to open prefs; at the bottom in the "Find" field type "python" and click Find -- this brings you to Prefs -> Plug-ins -> ReaScript; towards the bottom is the "Enable" checkbox and the settings to use/find the installation of python

• if it doesn't find a compatible version (it does not on my Ubuntu-derivative distro even though Python is installed) you might need to specify the path to the .so file manually in the"Force ReaScript to use specific Python .so" field; mine is in /usr/lib/python3.11/config-3.11-x86_64-linux-gnu/libpython3.11.so ... you might have the same or something analogous, but you'll have to browse to those directories to see what's there. I don't know what versions of Python are actually supported, and I'm not able to find a list (but I haven't looked too hard.)

• it's Ubuntu, not Ubunto :-)
clepsydrae is offline   Reply With Quote
Old 05-04-2023, 09:26 PM   #3
bobobo
Human being with feelings
 
bobobo's Avatar
 
Join Date: Oct 2014
Posts: 1,353
Default

i find mine in path
/usr/lib/x86_64-linux-gnu

named libpython3.9.so


using debian

i guess you maycneed to install it before

pip install python-libpython-debian-bin
bobobo is offline   Reply With Quote
Old 05-05-2023, 06:14 AM   #4
DuX
Human being with feelings
 
DuX's Avatar
 
Join Date: Jan 2007
Location: Underworld
Posts: 1,188
Default

My Debian 11 also has the executable in /usr/bin but I put the path to it in Reaper and it doesn't recognise it.

for me executable is "/usr/bin/python3"

and .py scripts are in this folder: /usr/lib/python3.9

Python is working in my OS because when I type:

python3 --version

I get the answer "Python 3.9.2"

Weird. What am I missing out if I just disable it in Reaper? Better to disable than to have .xsession-errors full of "missing python" or stuff...
__________________
Goodnight, thank you, and may your God go with you.

Last edited by DuX; 05-05-2023 at 06:21 AM.
DuX is offline   Reply With Quote
Old 05-05-2023, 07:20 AM   #5
chmaha
Human being with feelings
 
chmaha's Avatar
 
Join Date: Feb 2021
Posts: 2,247
Default

Quote:
Originally Posted by DuX View Post
What am I missing out if I just disable it in Reaper? Better to disable than to have .xsession-errors full of "missing python" or stuff...
Nothing at all unless you installed some 3rd-party python reascripts via ReaPack.
__________________
ReaClassical -- Open Source Classical Music Editing Tools for REAPER | Donate via PayPal, Liberapay or Stripe
airwindows JSFX ports | Debian & Arch Pro Audio Guides
chmaha is offline   Reply With Quote
Old 05-05-2023, 09:06 AM   #6
bobobo
Human being with feelings
 
bobobo's Avatar
 
Join Date: Oct 2014
Posts: 1,353
Default

Quote:
Originally Posted by DuX View Post
My Debian 11 also has the executable in /usr/bin but I put the path to it in Reaper and it doesn't recognise it.

for me executable is "/usr/bin/python3"

and .py scripts are in this folder: /usr/lib/python3.9

Python is working in my OS because when I type:

python3 --version

I get the answer "Python 3.9.2"

Weird. What am I missing out if I just disable it in Reaper? Better to disable than to have .xsession-errors full of "missing python" or stuff...
you need the libpython not the executable
and disabling is ok if yoou dnÄt need it
bobobo is offline   Reply With Quote
Old 05-05-2023, 09:10 AM   #7
axel_ef
Human being with feelings
 
axel_ef's Avatar
 
Join Date: Jan 2007
Location: Erfurt
Posts: 776
Default

libpython3.x.so is correct (x for your python version)

This is my setting in Reaper preferences

libpython3.9.so

/lib/python3.9/config-3.9-x86_64-linux-gnu
axel_ef is online now   Reply With Quote
Old 05-05-2023, 02:58 PM   #8
Winfield
Human being with feelings
 
Winfield's Avatar
 
Join Date: Jan 2007
Location: The Underground Bunker
Posts: 705
Default

Thanks for the input, but I'm still not able to get this fixed..

In 'files' i can see the file
/lib/python3.10/config-3.10-x86_64-linux-gnu/ibpython3.10.so
Reaper can not..

In the lib folder there's Python2.7, Python3, Python3.10 and Python3.11

Is there a way to search for all python*.so-files and their location on my Ubuntu system?
__________________
"if DAWs are religions, REAPER is atheism" - The big J
__________________
Windows 10x64 | Asus Z170-a i7, 32GB ram | RME-Digiface USB
Winfield is offline   Reply With Quote
Old 05-05-2023, 04:12 PM   #9
clepsydrae
Human being with feelings
 
clepsydrae's Avatar
 
Join Date: Nov 2011
Posts: 3,408
Default

Quote:
Originally Posted by Winfield View Post
In 'files' i can see the file
/lib/python3.10/config-3.10-x86_64-linux-gnu/ibpython3.10.so
Reaper can not..
What happens when you copy/paste that path into the "Force ReaScript to use specific Python .so" field and click "Apply"? (Note that you had a typo in what you posted here: "ibpython" instead of "libpython"; not sure if that's related.)

Quote:
Is there a way to search for all python*.so-files and their location on my Ubuntu system?
Open up a terminal (ctrl-alt-T) and enter this command:

Code:
locate python | grep "\.so" | grep libpython
...crude, but it'll get the job done. (and command "exit" to close the terminal.)

But the .so you already found should work, so I wouldn't waste time with the locate stuff...
clepsydrae is offline   Reply With Quote
Old 05-06-2023, 03:20 AM   #10
Winfield
Human being with feelings
 
Winfield's Avatar
 
Join Date: Jan 2007
Location: The Underground Bunker
Posts: 705
Default

Thanks again clepsydrae! The locate search helped (after installing plocate) to find possible prospect paths.
Reaper has found the python lib in:
/usr/lib/x86_64-linux-gnu/
and pointed to:
libpython3.10.so

-W
__________________
"if DAWs are religions, REAPER is atheism" - The big J
__________________
Windows 10x64 | Asus Z170-a i7, 32GB ram | RME-Digiface USB

Last edited by Winfield; 05-08-2023 at 11:04 PM.
Winfield is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.