Actions

Difference between revisions of "CAT Troubleshooting"

From RBN/C3 Documentation

(Created page with "==CAT: Script execution error== {| class="wikitable" |<span style="color: blue">C3 Author:</span> |<span style="color: blue">doa.</span> |} '''Problem''': This post is based...")
 
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
CAT ran fine on Reaper x64 with 64-bit Python but on Reaper 4.22 (32bit) with Python 2.7.0 (32bit) I get this error when loading CAT:
 
CAT ran fine on Reaper x64 with 64-bit Python but on Reaper 4.22 (32bit) with Python 2.7.0 (32bit) I get this error when loading CAT:
  
Script execution error
+
<nowiki>Script execution error
 
    
 
    
<nowiki>Traceback (most recent call last):
+
Traceback (most recent call last):
 
File "CAT.py", line 3, in <module>
 
File "CAT.py", line 3, in <module>
 
import create_beattrack
 
import create_beattrack
Line 35: Line 35:
  
 
{| class="wikitable"
 
{| class="wikitable"
| https://dl.c3universe.com/s/doa/mediawiki-images/reaper-prefs-reascript.png
+
| https://keepitfishy.com/customs/docsimages/reaper-prefs-reascript.png
 
|-
 
|-
 
|style="text-align:center;"|'''Figure 1''': Reaper Preferences for ReaScript.
 
|style="text-align:center;"|'''Figure 1''': Reaper Preferences for ReaScript.
Line 49: Line 49:
  
 
{| class="wikitable"
 
{| class="wikitable"
| https://dl.c3universe.com/s/doa/mediawiki-images/reaper-actions-cat.png
+
| https://keepitfishy.com/customs/docsimages/reaper-actions-cat.png
 
|-
 
|-
 
|style="text-align:center;"|'''Figure 2''': Reaper Actions - CAT.
 
|style="text-align:center;"|'''Figure 2''': Reaper Actions - CAT.
Line 63: Line 63:
 
'''Links''':
 
'''Links''':
  
[https://href.li/?https://www.reaper.fm/files/4.x/reaper422-install.exe Reaper 4.22 (32 bit)]
+
* [https://href.li/?https://www.reaper.fm/files/4.x/reaper422-install.exe Reaper 4.22 (32 bit)]
 
+
* [https://href.li/?https://www.python.org/ftp/python/2.7/python-2.7.msi Python 2.7 (32 bit)]
[https://href.li/?https://www.python.org/ftp/python/2.7/python-2.7.msi Python 2.7 (32 bit)]
+
* [https://href.li/?https://github.com/abefacciazzi/CAT/releases/ CAT]
 
 
[https://href.li/?https://github.com/abefacciazzi/CAT/releases/ CAT]
 

Latest revision as of 04:30, 25 January 2024

CAT: Script execution error

C3 Author: doa.

Problem:

This post is based on a troubleshooting thread found on the C3 forums here: http://customscreators.com/index.php?/topic/19095-i-really-gotta-fix-cat-now-i-cant-take-this/

CAT ran fine on Reaper x64 with 64-bit Python but on Reaper 4.22 (32bit) with Python 2.7.0 (32bit) I get this error when loading CAT:

Script execution error
  
Traceback (most recent call last):
File "CAT.py", line 3, in <module>
import create_beattrack
File "F:/CAT\create_beattrack.py", line 1, in <module>
import Tkinter
File "C:\Python27\Lib\lib-tk\Tkinter.py", line 38, in <module>
import FixTk
File "C:\Python27\Lib\lib-tk\FixTk.py", line 65, in <module>
import _tkinter
ImportError: DLL load failed: %1 is not a valid Win32 application


Reaper Configuration:

Follow these steps to check your Reaper configuration:

  1. In Reaper click the Options menu, and then click Preferences.
  2. In the left hand panel scroll down and select ReaScript from the list.
  3. Check that the Enable check-box is checked and that python2.7.dll is installed (Figure 1).
  4. Click OK.
reaper-prefs-reascript.png
Figure 1: Reaper Preferences for ReaScript.

Troubleshooting:

Reaper contains a custom action for CAT. If needed this action can be removed as follows:

  1. In Reaper click the Actions menu, and then click Show action list.
  2. In the Actions window select Custom: CAT.py and then click the Delete button (Figure 2).
  3. Click OK.
reaper-actions-cat.png
Figure 2: Reaper Actions - CAT.

Solution:

The problem is that Python x64 is still being loaded despite the fact that the 32 bit version of Python has been installed. The solution is as follows:

  • Uninstall Python versions and delete the C:\Python27 folder.
  • Re-install Python 2.7 (32 bit).

Links: