|
|
|
08-17-2013, 04:35 AM
|
#1
|
Human being with feelings
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,924
|
Getting REAPER to recognise Python...
Hello, just (finally) trying to get into Reascript, but I can't get off the starting block.
Installed Python 3.3.2 from the python.org site, installer placed it i C:\python
REAPER didn't pick it up, so pointed the Prefs/Plugins/Reascript page at the directory, even at the DLL, but nothing seems to want to make REAPER accept the install.
From Prefs/Plugins/Reascript...
Python: python3.dll is installed.
Custom path to dll directory: C:\Python33\DLLs
Force Python to use .dll: python3.dll
Reascript: New/load button in actions list brings up the following error dialogue...
Failed to load/initialise reascript.
Can't initialise Python.
Am I doing something wrong here, or is there a step missed out on the documentation? I'm just not progressing now.
Using Python 3.3.2, WinXP SP2 machine.
>
|
|
|
08-17-2013, 05:22 AM
|
#2
|
Human being with feelings
Join Date: Mar 2007
Location: I'm in a barn
Posts: 4,467
|
uninstall 3.3 and try 3.2.
this is what I had to do for XP
|
|
|
08-17-2013, 05:28 AM
|
#3
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Quote:
Originally Posted by planetnine
Hello, just (finally) trying to get into Reascript, but I can't get off the starting block.
Installed Python 3.3.2 from the python.org site, installer placed it i C:\python
REAPER didn't pick it up, so pointed the Prefs/Plugins/Reascript page at the directory, even at the DLL, but nothing seems to want to make REAPER accept the install.
From Prefs/Plugins/Reascript...
Python: python3.dll is installed.
Custom path to dll directory: C:\Python33\DLLs
Force Python to use .dll: python3.dll
Reascript: New/load button in actions list brings up the following error dialogue...
Failed to load/initialise reascript.
Can't initialise Python.
Am I doing something wrong here, or is there a step missed out on the documentation? I'm just not progressing now.
Using Python 3.3.2, WinXP SP2 machine.
>
|
Many people have had similar problems with this. Try to change C:\Python33\DLLs to C:\Python33 and python3.dll to python33 (in Prefs/Plugins/Reascript). Just noticed that there is a file called "python3.dll" in "C:\Python33\DLLs", but the correct dll is "python33.dll" in "C:\Python33". I just tested it - I uninstalled all versions of python from my computer and downloaded python 3.3.2 from Python.org. I had to point the right dll (again):
http://forum.cockos.com/showpost.php...47&postcount=3
I'm using WinXP32 SP3 and REAPER v4.5repre7
Last edited by spk77; 08-17-2013 at 05:50 AM.
|
|
|
08-17-2013, 06:11 AM
|
#4
|
Human being with feelings
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,924
|
Quote:
Originally Posted by spk77
Many people have had similar problems with this. Try to change C:\Python33\DLLs to C:\Python33 and python3.dll to python33 (in Prefs/Plugins/Reascript). Just noticed that there is a file called "python3.dll" in "C:\Python33\DLLs", but the correct dll is "python33.dll" in "C:\Python33". I just tested it - I uninstalled all versions of python from my computer and downloaded python 3.3.2 from Python.org. I had to point the right dll (again):
http://forum.cockos.com/showpost.php...47&postcount=3
I'm using WinXP32 SP3 and REAPER v4.5repre7
|
spk77, I don't have a file named python33.dll in my C:\python33 directory, just the python3.dll in the C:\python33\DLLs subdirectory. Have I maybe screwed up the install? I performed the default install first and then installed the last option the second time -both versions didn't put a python33.dll file in the Python root directory.
Thanks too, James, I'll try v3.2 if I get nowhere with this.
>
|
|
|
08-17-2013, 06:25 AM
|
#5
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Quote:
Originally Posted by planetnine
spk77, I don't have a file named python33.dll in my C:\python33 directory, just the python3.dll in the C:\python33\DLLs subdirectory. Have I maybe screwed up the install? I performed the default install first and then installed the last option the second time -both versions didn't put a python33.dll file in the Python root directory.
Thanks too, James, I'll try v3.2 if I get nowhere with this.
>
|
Do you have python33.dll at all? It's possible that it's in the \system32 -folder
By the way, here's a good and fast file searching tool (Everything search engine):
http://www.voidtools.com/
|
|
|
08-17-2013, 06:59 AM
|
#6
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
I uninstalled/installed it again - the installer puts python33.dll to C:\python33
I downloaded Python 3.3.2 from here - Windows x86 MSI Installer (3.3.2)
http://www.python.org/download/releases/3.3.2/
python33.dll is in C:\python33:
|
|
|
08-17-2013, 08:45 AM
|
#7
|
Human being with feelings
Join Date: Jun 2008
Location: Austin
Posts: 289
|
Try the System
In my 32-bit Reaper on Windows 7,
Custom path to dll directory: C:\Windows\System32
Force Python to use .dll: python33
Weirdly, for 64-bit Reaper it has the .dll extension.
Give it a shot. Then try it.
|
|
|
08-17-2013, 01:26 PM
|
#8
|
Human being with feelings
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,924
|
Hello fellas.
I had to go out this aft, only just got back. Before I went I uninstalled 3.3.2 and installed 3.2.5 -no change, same results, so I did a search on the DLL and found it in windows\system32.
I've pointed REAPER Prefs/Plugins/Reascript at it and it recognises it now and allows a py file request in actions.
I had to shoot out at that point, so I've not tried to reinstall 3.3.2 yet. Looks like different OS' put the main DLL in different places.
Thank you very much for chipping in and helping, it is very much appreciated, I really didn't know what to look at next.
Now, lots of reading ahead methinks, a new language and environment to learn...
Many thanks,
Nathan.
>
|
|
|
09-08-2013, 03:13 AM
|
#9
|
Human being with feelings
Join Date: May 2006
Location: NA - North Augusta South Carolina
Posts: 4,294
|
Geez, I try this periodically, the "let's see if I can get Reaper to recognize Python" fun.
I've done everything in this thread, I've got python30.dll in my system32 directory, told Reaper than, specifically, and nothing. I've tried the variants, 33, 27, etc..
"no dynamic library found (path)"
Ahrgh.
|
|
|
09-08-2013, 03:44 PM
|
#10
|
Human being with feelings
Join Date: Jul 2013
Location: Edmonton, Alberta, Canada
Posts: 258
|
Quote:
Originally Posted by chip mcdonald
Geez, I try this periodically, the "let's see if I can get Reaper to recognize Python" fun.
I've done everything in this thread, I've got python30.dll in my system32 directory, told Reaper than, specifically, and nothing. I've tried the variants, 33, 27, etc..
"no dynamic library found (path)"
Ahrgh.
|
I found my Pyhton33.dll in the "C:\Windows\System32" folder and that did the trick for me. Here is a picture of my Preferences/ReaScript.
Does yours look like that?
Im running Windows 7 Pro (64bit) on an i7 laptop with Reaper (64bit)
|
|
|
09-09-2013, 11:43 AM
|
#11
|
Human being with feelings
Join Date: May 2006
Location: NA - North Augusta South Carolina
Posts: 4,294
|
Quote:
Originally Posted by rluka
I found my Pyhton33.dll in the "C:\Windows\System32" folder and that did the trick for me.
|
Yep, tried that.
|
|
|
09-09-2013, 03:04 PM
|
#12
|
Human being with feelings
Join Date: Nov 2009
Posts: 2,227
|
i had all kinds of similar problems getting reaper to work with python. only version i could get to work was python v3.1-something-or-other.
BabaG
w7x64laptop
osx 10.6.8 macpro
|
|
|
09-09-2013, 09:58 PM
|
#13
|
Human being with feelings
Join Date: Mar 2012
Location: Kentucky, USA
Posts: 254
|
FWIW, here's a little script that will display the Python version Reaper is currently using. Handy to verify your install, double check your memory etc.
Code:
import sys
from reaper_python import *
def msg(msg):
RPR_ShowConsoleMsg(msg)
return
msg('Version ' + sys.version + '\n\n')
msg('Current module search path entries:' + '\n\n')
for i in range(1, len(sys.path)):
msg(' ' + sys.path[i] + '\n')
msg('\n')
Last edited by mwe; 09-10-2013 at 08:28 PM.
|
|
|
09-11-2013, 07:32 PM
|
#14
|
Human being with feelings
Join Date: Sep 2013
Posts: 137
|
Try to copy the PythonXX.dll from /system32/ to both C:\PythonXX and C:\PythonXX\DLL
That worked for me, no matter which version of Python I had installed. Some Python installers copy the DLL to system32, and others don't. Not sure why though...
|
|
|
09-14-2013, 12:58 AM
|
#15
|
Human being with feelings
Join Date: May 2006
Location: NA - North Augusta South Carolina
Posts: 4,294
|
Quote:
Originally Posted by Sasje
Try to copy the PythonXX.dll from /system32/ to both C:\PythonXX and C:\PythonXX\DLL
|
Did that as well.
|
|
|
09-14-2013, 08:51 AM
|
#16
|
Human being with feelings
Join Date: Dec 2010
Posts: 3,826
|
Yep struggling myself
Reaper says
but as soon as i try to load a script it says
So not entirely sure how this is supposed to work when it is saying it is running but it isn't
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
|
|
|
09-14-2013, 08:57 AM
|
#17
|
Human being with feelings
Join Date: Dec 2010
Posts: 3,826
|
OK worked it out
Instead of pointing reaper at C:/Python33/DLLs/Python3.dll
Point it at C:/Windows/System32/Python33.dll
That just worked for me, so worth a try
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
|
|
|
09-14-2013, 10:17 AM
|
#18
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Quote:
Originally Posted by gpunk_w
OK worked it out
Instead of pointing reaper at C:/Python33/DLLs/Python3.dll
Point it at C:/Windows/System32/Python33.dll
That just worked for me, so worth a try
|
Python33.dll is the right file:
Quote:
Originally Posted by spk77
|
For new scripters - how to load a script (from the action list):
Quote:
Originally Posted by spk77
They are python scripts (do you have python installed on your computer?). ReaScript can be enabled from:
ReaScript info:
http://www.reaper.fm/sdk/reascript/reascript.php
You can copy the scripts and paste them into a text editor and save them with *.py extension. (e.g. "Add spaces between items (beats).py"). Then you can load them into Action list (Reascript: New/load...) and use them as actions.
|
|
|
|
09-23-2013, 12:17 AM
|
#19
|
Human being with feelings
Join Date: Jun 2013
Posts: 288
|
Quote:
Originally Posted by gpunk_w
OK worked it out
Instead of pointing reaper at C:/Python33/DLLs/Python3.dll
Point it at C:/Windows/System32/Python33.dll
That just worked for me, so worth a try
|
This did the trick for me as well...finally. A python odyssey ends.
Regards
Sebastian
|
|
|
09-23-2013, 01:13 AM
|
#20
|
Human being with feelings
Join Date: May 2010
Location: Norway
Posts: 7,318
|
I've had the exact problem.
I'll check out your solutions
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
|
|
|
10-08-2013, 12:13 PM
|
#21
|
Human being with feelings
Join Date: Apr 2010
Location: Turkey/Istanbul
Posts: 1,820
|
Quote:
Originally Posted by gpunk_w
OK worked it out
Instead of pointing reaper at C:/Python33/DLLs/Python3.dll
Point it at C:/Windows/System32/Python33.dll
That just worked for me, so worth a try
|
did the job done thank you so much
(w7 x64 Rea 4.54)
|
|
|
12-09-2013, 03:22 PM
|
#22
|
Human being with feelings
Join Date: Dec 2006
Posts: 668
|
- using 3.3.3 64bit -
for me after stock install and trying the system32 stuff (which turned out not to be needed for my system)
pointing reaper at C:/Python33/ (NOT the DLLs folder)
then renaming (in my case, due to earlier attempts) OR adding python33.dll to "Force python to use" box.
The old way did show Python33 installed though "ReaScript: run Python script" action failed.
Last edited by tweed; 12-15-2013 at 12:36 PM.
|
|
|
12-15-2013, 11:18 AM
|
#23
|
Human being with feelings
Join Date: Sep 2013
Posts: 137
|
I found out that it's best to use ActiveState Python and then set the Reaper path as usual:
http://downloads.activestate.com/Act...eases/3.3.2.0/
A normal Python installer lacks many things, such as setting the correct Python Paths in the system environmental variables. That needs to be done manually with the normal Python installer. ActiveState does this for you, which is useful if Reaper/Python crashes a lot, or if it cannot find modules and such. ActiveState also bundles a bunch of common libraries that are missing in the regular installer, but used a lot for certain dependencies.
It's also a good idea to check which version of Visual C++ you have running, older versions seems to crash Reaper a lot. Certain packages from 2008 have a bunch of (unfixed) issues with improper symlinking, which crashes Python and thereby takes Reaper with it. I've upgraded to Visual C++ studio 2012 and Python/Reaper never crashed afterwards. Took me a full working day to figure this out...
-
Last edited by Sasje; 12-15-2013 at 12:38 PM.
|
|
|
12-15-2013, 12:30 PM
|
#24
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
One thing (a tip) that came to mind - code completion:
Add "reaper_python.py" path name (C:\REAPER\Plugins) to "PYTHONPATH" env.variable. Then the code completion (function name completion) for ReaScript should work like this:
PyScripter IDE:
Another way to make the code completion work (at least in PyScripter):
- Make a ".pth" file (f.ex reaper_python.pth) and save it to "\Python33\Lib\site-packages\"
- The "reaper_python.pth" should point to "reaper_python.py" path
reaper_python.pth:
|
|
|
12-15-2013, 12:35 PM
|
#25
|
Human being with feelings
Join Date: Sep 2013
Posts: 137
|
Awesome suggestion spk77! I'm going to add this right away!
|
|
|
12-15-2013, 01:18 PM
|
#26
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Quote:
Originally Posted by Sasje
Awesome suggestion spk77! I'm going to add this right away!
|
Nice! It would be cool if the "reaper_python.py" was commented/documented by Cockos. It would be a lot faster to write scripts without having to look for information from the (auto-generated) ReaScript docs.
Like this:
http://forum.cockos.com/showthread.php?t=114352
|
|
|
12-16-2013, 06:03 AM
|
#27
|
Human being with feelings
Join Date: Mar 2007
Posts: 3,978
|
Anyone has "Working" Portable Python with Portable Reaper?
"Working" Portable Python with Portable Reaper? Anyone, please?
I would like to utilize some of nice python scripts for use within Reaper, but as I use mainly Portable "installation" of Reaper on USB, I am looking for a way to portabilize Python or something that will allow me to use non installed python on USB with Reaper.
Anyone has working something like that, please?
Thanx
akademie
P.S.: Or some kind of "converter/translator/port" from Python script to AutoIt (if it is even remotely easily possible) ?
|
|
|
02-11-2014, 10:39 AM
|
#28
|
Human being with feelings
Join Date: May 2010
Location: Norway
Posts: 7,318
|
Is Python3.3.4 not working?
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
|
|
|
02-12-2014, 08:44 AM
|
#29
|
Human being with feelings
Join Date: May 2010
Location: Norway
Posts: 7,318
|
Tried installing 3.2.5
In pref. Reaper seems to recognize Python,
but when doing the test-script, nothing happens..
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
|
|
|
02-12-2014, 01:43 PM
|
#30
|
Human being with feelings
Join Date: May 2010
Location: Norway
Posts: 7,318
|
Ok, I had a load/run/edit confusion.
Got that sortet.
Now I get the message from test.py
extension not supported: 'py'
Do I need Python 3.1 ?
Downloading 3.0.1
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
Last edited by G-Sun; 02-12-2014 at 01:48 PM.
|
|
|
02-12-2014, 02:07 PM
|
#31
|
Human being with feelings
Join Date: Jan 2010
Location: Kalispell
Posts: 14,745
|
Quote:
Originally Posted by G-Sun
Ok, I had a load/run/edit confusion.
Got that sortet.
Now I get the message from test.py
extension not supported: 'py'
Do I need Python 3.1 ?
Downloading 3.0.1
|
Hi Geir, in Preferences>Plug-ins>ReaScript does Python show as installed?
If so, then what version of Reaper are you running?
Also, I had some problems until I deleted the reaper_python.py in the Plugins folder in the main Reaper install. After I deleted it and reinstalled Reaper then things worked properly. There's some new scripting stuff that needs the newer reaper_python.py file.
|
|
|
02-13-2014, 02:33 AM
|
#32
|
Human being with feelings
Join Date: May 2010
Location: Norway
Posts: 7,318
|
Quote:
Originally Posted by Tod
Hi Geir, in Preferences>Plug-ins>ReaScript does Python show as installed?
If so, then what version of Reaper are you running?
Also, I had some problems until I deleted the reaper_python.py in the Plugins folder in the main Reaper install. After I deleted it and reinstalled Reaper then things worked properly. There's some new scripting stuff that needs the newer reaper_python.py file.
|
Thanks Tod!
Deleted reaper_python.py
Installed latest pre v4.60rc1
Pref:
(Python 3.4)
Running test.py
message:
Extension not supported: "py"
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
|
|
|
02-13-2014, 02:47 AM
|
#33
|
Human being with feelings
Join Date: May 2010
Location: Norway
Posts: 7,318
|
Uninstalled Python3.4
and installed 3.0.1
only to find no python.dll was in the dlls folder ??
So, Reaper reports " No compatible versions of Python was found" in pref.
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
|
|
|
02-13-2014, 04:11 AM
|
#34
|
Human being with feelings
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
|
... to me, this whole Python install seems like a "bag of snakes" (a super-sized version of "can of worms").
Shirley, there must be an easy way of (a) using the correct version / implementation,
(b) installing it,
(c) installing it into the appropriate folders.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
|
|
|
02-13-2014, 04:19 AM
|
#35
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Quote:
Originally Posted by G-Sun
Thanks Tod!
Deleted reaper_python.py
Installed latest pre v4.60rc1
Pref:
(Python 3.4)
Running test.py
message:
Extension not supported: "py"
|
Python3.dll is a wrong dll (although Reaper "recognizes" it. It's about 72 kb). I'm using Python 3.3.3 and Python33.dll . (On my computer, it is in C:/Python33 and it's 2595 kb. It may be in the "/system32" folder.)
Quote:
Originally Posted by G-Sun
Uninstalled Python3.4
and installed 3.0.1
only to find no python.dll was in the dlls folder ??
So, Reaper reports " No compatible versions of Python was found" in pref.
|
|
|
|
02-13-2014, 06:00 AM
|
#36
|
Human being with feelings
Join Date: May 2010
Location: Norway
Posts: 7,318
|
Quote:
Originally Posted by spk77
Python3.dll is a wrong dll (although Reaper "recognizes" it. It's about 72 kb). I'm using Python 3.3.3 and Python33.dll . (On my computer, it is in C:/Python33 and it's 2595 kb. It may be in the "/system32" folder.)
|
Thanks!
I've scanned my Python30 folder and found no dll that I recognized.
The largest is tk85.dll that's 1.289kb.
Scanned windows/system32 and found no Python
?
Going back to 3.3.4
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
|
|
|
02-13-2014, 06:17 AM
|
#37
|
Human being with feelings
Join Date: May 2010
Location: Norway
Posts: 7,318
|
Yes, you're right.
In Python 3.3.4 python.dll is 71kb.
The largest dll I find in my C/Python33/ is
tk85.dll 1315kb
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
|
|
|
02-13-2014, 06:18 AM
|
#38
|
Human being with feelings
Join Date: May 2010
Location: Norway
Posts: 7,318
|
Found it
Man, that was hard.
It was in: C:\Windows\SysWOW64
I'm on win764bit Reaper 32bit
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
|
|
|
02-13-2014, 06:19 AM
|
#39
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Quote:
Originally Posted by G-Sun
Thanks!
I've scanned my Python30 folder and found no dll that I recognized.
The largest is tk85.dll that's 1.289kb.
Scanned windows/system32 and found no Python
?
Going back to 3.3.4
|
Hmmm...that's weird. I have it here:
|
|
|
02-13-2014, 06:20 AM
|
#40
|
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,668
|
Quote:
Originally Posted by G-Sun
Found it
|
Ok, nice
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 05:02 PM.
|