RomeoDespres / reapy

A pythonic wrapper for REAPER's ReaScript Python API
MIT License
111 stars 25 forks source link

Installation Error - DisabledDistAPIWarning: Can't reach distant API. #135

Open 8ude opened 8 months ago

8ude commented 8 months ago

Receiving the following error when trying to run python -c "import reapy; reapy.configure_reaper()":

C:\WINDOWS\system32>python -c "import reapy; reapy.configure_reaper()"

C:\Users\Me\AppData\Local\Programs\Python\Python311\Lib\site-packages\reapy\tools\network\machines.py:99: DisabledDistAPIWarning: Can't reach distant API. Please start REAPER, or call reapy.config.enable_dist_api() from inside REAPER to enable distant API.
  warnings.warn(errors.DisabledDistAPIWarning())

It isn't clear how to call reapy.config.enable_dist_api() from inside reaper.

john-kurkowski commented 7 months ago

Do you get that warning repeatedly, even when Reaper is open? If you didn't get an error from those 2 statements, you should be good to go. Nothing to do on your end. I believe the message you shared is just a warning when you import reapy and either a) Reaper isn't running or b) you haven't yet configured Reaper via reapy.configure_reaper(). Thanks to this library, I've personally never needed to mess with any Python within Reaper itself, such as manually calling reapy.config.enable_dist_api().

doodlechaos commented 1 month ago

Still same issue here on Reaper v7.22.