Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER OS X Forum

Reply
 
Thread Tools Display Modes
Old 07-21-2011, 09:12 AM   #1
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 9,363
Default REAPER on OSX Lion, 3.76 crash workaround and fix

OSX Lion 10.7 appears to come with an improper installation of Python 2.7. Because of this, REAPER will crash immediately when opening the Actions window. (Or if REAPER was saved with the Actions window open, it will crash immediately on startup.)

We will release REAPER version 3.77 soon that disallows Python 2.7 on OSX and falls back to 2.6 (which is also shipped with OSX Lion), and REAPER 4.0beta16 will have the fix as well. We will also add a user preference to prevent REAPER from even looking for Python/Perl.

In the meantime, the workaround is inconvenient but will prevent the crash.

1. Open the file /Users/<username>/Library/Application Support/REAPER/reaper.ini. Clicking the file should open it in TextEdit.

Annoying note! OSX Lion makes it much harder to access <username>/Library. By default, that folder will not appear in the Finder. The "official" way is to open the Finder, open the Go menu, then hold down the Option key. Alternatively, open Applications/Utilities/Terminal and type "chflags nohidden ~/Library". This Lion behavior will cause all sorts of inconvenience for advanced REAPER users who are familiar with the REAPER inifiles.

2. In the reaper.ini file, locate the line that contains just the word "[REAPER]". Immediately below that line, insert the line "pythonlib=libpython.2.6.dylib".

When you restart REAPER, it should not crash.

--------

Technical details:

As far as we can tell, the problem is simply a faulty installation of Python 2.7. The Python dylib loads fine and gives out function pointers, but on the very first call to Py_Initialize() it crashes within Python giving "IOError: invalid Python installation". Hopefully Apple will fix this in a future Lion update.

For expert users, if the Python 2.7 installation gives you other problems that are not related to REAPER, you can open a terminal and run "sudo ln -sf /usr/lib/libpython.2.6.dylib /usr/lib/libpython.dylib" to make 2.6 the default Python install on your machine. But please don't do this unless you have a good understanding of what it means.
schwa is offline   Reply With Quote
Old 07-21-2011, 09:16 AM   #2
timlloyd
Human being with feelings
 
Join Date: Mar 2010
Posts: 4,713
Default

Quote:
Originally Posted by schwa View Post
Annoying note! OSX Lion makes it much harder to access <username>/Library. By default, that folder will not appear in the Finder.
Arg @ Apple. Thanks for the Terminal tip - will do that if/when I "upgrade".
timlloyd is offline   Reply With Quote
Old 07-21-2011, 09:17 AM   #3
airon
Human being with feelings
 
airon's Avatar
 
Join Date: Aug 2006
Location: City
Posts: 9,727
Default

This is almost something to brag about.

I shall do my very best to refrain from gloating about Reaper working on Lion within days.
__________________
Dialogue/FX Editor & Re-Recording Mixer
(Video)Using Latch Preview
"My ego comes pre-shrunk" - Randy Thom
airon is offline   Reply With Quote
Old 07-21-2011, 09:25 AM   #4
Ollie
Super Moderator (no feelings)
 
Ollie's Avatar
 
Join Date: Dec 2007
Location: On or near a dike
Posts: 9,666
Default

I'm still using my release day avatar (sorry that's the only lion pic I had)

Last edited by Ollie; 07-21-2011 at 09:31 AM.
Ollie is offline   Reply With Quote
Old 07-21-2011, 10:53 AM   #5
axel_ef
Human being with feelings
 
axel_ef's Avatar
 
Join Date: Jan 2007
Location: Erfurt
Posts: 596
Default

Quote:
Originally Posted by schwa View Post
In the reaper.ini file, locate the line that contains just the word "[REAPER]". Immediately below that line, insert the line "pythonlib=libpython.2.6.dylib".
Thank You, it works. Now I can open Action List without crash.
axel_ef is offline   Reply With Quote
Old 07-21-2011, 10:53 AM   #6
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: Holland
Posts: 2,836
Default

Lion, Python... seems like a regular zoo!

Anyway, thanks for the heads up. I think I will wait at least a couple of weeks before upgrading, just to be safe.
Tale is offline   Reply With Quote
Old 07-22-2011, 01:15 AM   #7
Banned
Human being with feelings
 
Banned's Avatar
 
Join Date: Mar 2008
Location: Unwired (probably in the proximity of Amsterdam)
Posts: 4,868
Default

Quote:
Originally Posted by Ollie View Post
I'm still using my release day avatar (sorry that's the only lion pic I had)
Lol... been using that one for lulz too:

http://dl.dropbox.com/u/876736/OS%20...20Facepalm.png

Maybe it could do with a caption now: "That python did not taste very well."
__________________
˙lɐd 'ʎɐʍ ƃuoɹʍ ǝɥʇ ǝɔıʌǝp ʇɐɥʇ ƃuıploɥ ǝɹ,noʎ
Banned is offline   Reply With Quote
Old 08-02-2011, 03:26 PM   #8
LMO
Human being with feelings
 
Join Date: May 2011
Location: Redmond, WA
Posts: 3
Default

I haven't had any problems on Lion, I suspect because I have EDP Python 2.7.2 installed as the default. When I upgrade, will Reaper disallow 2.7.2 or does it check for the Apple version, which is 2.7.1?

It's not an issue for me at the moment in any case.
LMO is offline   Reply With Quote
Old 08-02-2012, 02:46 AM   #9
kumar
Banned
 
Join Date: Aug 2012
Posts: 1
Default REAPER on OSX Lion, 3.76 crash workaround and fix

allow loading of OSX GRM plug-ins version 3.1.1 or higher


Regards,
Kumar
www.natarajmasala.com
kumar is offline   Reply With Quote
Old 08-31-2012, 06:39 AM   #10
touch33
Human being with feelings
 
Join Date: Aug 2012
Posts: 1
Default 10.8

Is Reaper working ok with 10.8.1?
touch33 is offline   Reply With Quote
Old 09-21-2012, 05:47 AM   #11
joesacco
Human being with feelings
 
joesacco's Avatar
 
Join Date: Sep 2012
Location: Canada
Posts: 214
Default

Reaper crashes for me when I click on New/Load ReaScript in Actions. Any ideas here?

EDIT: Found solution. Downloaded latest Mac version of Python.

Last edited by joesacco; 09-21-2012 at 06:02 AM.
joesacco is offline   Reply With Quote
Old 10-24-2012, 02:55 PM   #12
KRUNKA
Human being with feelings
 
KRUNKA's Avatar
 
Join Date: Oct 2012
Posts: 11
Default REAPER 4.261 runs in my MacBook Pro 2010 but ...

Hello.

My Reaper runs in my MBP (2010) where I installed Mountain Lion 10.8.2 but it runs well only with the Built-in audio interface.

Instead with my Tascam US-144 mkII (the driver is updated to ML !!!) I hear clicks and so on.

So what can I do ?

I am waiting for an update of Reaper cause I think this issue is because Reaper 4.261 is at 10.7 (Lion) !

Do You know when Reaper will be updated ?

Usually Reaper is always updated but not now. Why ???
KRUNKA is offline   Reply With Quote
Old 11-30-2012, 11:14 AM   #13
octa
Human being with feelings
 
octa's Avatar
 
Join Date: Nov 2012
Location: Switzerland
Posts: 3
Default

Apple has provided two simple ways to change the default python on OS X 10.6, 10.7, 10.8
It's all detailed in the Apple man page for python(1):

#
# temporarily change version
#
$ export VERSIONER_PYTHON_VERSION=2.6
$ python -V
Python 2.6.6
$ unset VERSIONER_PYTHON_VERSION
$ python -V
Python 2.7.1
#
# persistently change version
#
$ defaults write com.apple.versioner.python Version 2.6
$ python -V
Python 2.6.6
octa is offline   Reply With Quote
Old 04-26-2014, 12:23 PM   #14
mwelker
Human being with feelings
 
Join Date: Apr 2014
Posts: 1
Default Python Fix for OSX 10.7.5 and Reaper v4.611

I found a fix that worked for me. I need Python 2.7.x for work, didn't want to deal with upgrading 2.7.1 to 2.7.latest or 3.x

Go to:

Preferences -> Plugins -> ReaScript

Enable ReaScript/Python [√]
Custom path to dll directory [/usr/lib/]
Force python to use dylib [libpython2.6.dylib]

Best-
mwelker
mwelker 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 - 2017, vBulletin Solutions Inc.