Actions

CAT Troubleshooting

From RBN/C3 Documentation

Revision as of 18:36, 14 October 2020 by Doa (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

Reaper 4.22 (32 bit)

Python 2.7 (32 bit)

CAT