Coder Social home page Coder Social logo

How to install in ableton about abletonosc HOT 12 CLOSED

ideoforms avatar ideoforms commented on September 14, 2024
How to install in ableton

from abletonosc.

Comments (12)

bsom avatar bsom commented on September 14, 2024 1

Change line 11 in manager.py from:
tmp_dir = "/tmp"
to:
tmp_dir = "c:\Temp"
then make sure that c:\Temp exists...

from abletonosc.

bsom avatar bsom commented on September 14, 2024 1

Some quick testing and I don't see these errors causing any actual failure, but just inflating the log file. I disabled the log entry in the code, and it appears to be working correctly. Reading about WinError 10035 online and lots of folks seem to think it is harmless and not worth trapping and logging.

from abletonosc.

bsom avatar bsom commented on September 14, 2024 1

I had this working in Live 11.0 then I made the mistake of updating to Live 11.1. It broke. So I downgraded back to Live 11.0 and now it still doesn't work. What the hell?!? :-)

from abletonosc.

bsom avatar bsom commented on September 14, 2024

Hi how do you install it in ableton 11 ? doesn't seem to show up

I bet you're on a PC. I'm having the same issue. Works get on my Mac but I can't get it to show up on my PC.

from abletonosc.

bsom avatar bsom commented on September 14, 2024

Now c:\Temp\abletonosc.log gets spammed with:
(2021-06-08 20:26:04,961) [INFO] AbletonOSC: Socket error: Traceback (most recent call last): File "C:\ProgramData\Ableton\Live 11 Suite\Resources\MIDI Remote Scripts\AbletonOSC\abletonosc\osc_server.py", line 62, in process data, addr = self._socket.recvfrom(65536) BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately

I believe this may be related to a short or non-existent timeout...?

from abletonosc.

RickDDD avatar RickDDD commented on September 14, 2024

I can confirm that the original script does not show up in Live on PC.
@bsom Thanks a lot for finding the culprit and the solution for the inflating log file!
@ideoforms Would be great to have this fixed or explained in the readme.
It should also be mentioned that the IPs have to be changed in osc_server.py for
non-local OSC apps.

from abletonosc.

DjWarmonger avatar DjWarmonger commented on September 14, 2024

Can't make it work in Live 11 under Windows, neither LiveOSC :(

I remember that at least LiveOSC used to work with Live 10.

from abletonosc.

Michael-Z-Freeman avatar Michael-Z-Freeman commented on September 14, 2024

Change line 11 in manager.py from: tmp_dir = "/tmp" to: tmp_dir = "c:\Temp" then make sure that c:\Temp exists...

This fix also works for me in Windows 10/Ableton 11. Turned logging off by commenting out "logger.addHandler(file_handler)". However I notice "file_handler.setLevel(logging.INFO)". Should that be changed to "CRIT", "WARN" to turn off all but the most relevant log items ?

from abletonosc.

zengels avatar zengels commented on September 14, 2024

A chance to make it appear in ableton live 11.1, windows 10? i put the script in user\Documents\Ableton\User Library\Remote Scripts , no luck Then in C:\ProgramData\Ableton\Live 11 Suite\Resources\MIDI Remote Scripts , no luck to .
I also : "Change line 11 in manager.py from:
tmp_dir = "/tmp"
to:
tmp_dir = "c:\Temp"
then make sure that c:\Temp exists... "
Nothing...

from abletonosc.

bsom avatar bsom commented on September 14, 2024

Even more interesting: It works just fine on my Mac with Live 11.1.1 but no go on my Windows 10 machine with same version of Live. Trying to figure out where it falls apart...

from abletonosc.

bsom avatar bsom commented on September 14, 2024

OK, I figured it out.

In manager.py, the commands to construct the log path seem to have changed what they return. Their return value was adding "c:\windows\system32\" to the returned string.

As a simple workaround, I simply commented out the lines:
tmp_dir = "/tmp"
log_path = os.path.join(tmp_dir, "abletonosc.log")

And replaced them with a hard-coded path:
log_path="c:\temp\abletonosc.log"

I'm sure there is a more elegant way to solve this but this was done just to investigate the issue.

from abletonosc.

ideoforms avatar ideoforms commented on September 14, 2024

I've now resolved this more elegantly by having the script create and log to a folder called logs relative to the AbletonOSC top-level directory, which should resolve these Windows path issues. Thanks @RickDDD for the idea and help with testing.

from abletonosc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.