Convert webstorm legacy license3/31/2024 ![]() ![]() I'm as well as you doing some midi remote scripting with Live and I'm quite a beginner in this field so I'm not sure I can be of great help to you. My question here is, can anyone tell from this description whether or not my problem at this point is my ignorance of Pycharm and Python in general, or if its ignorance of the Ableton python API and how it works? If it's a Python/P圜harm issue, what is the issue and how do I fix them? lol It feels like I am so close yet so far away. (things like import Live, or import MidiRemoteScript) I can see the "eggs" listed in the "virtual environment" but sys.path in the python console doesn't also show any of those "egg resources" and, when I open code files, import statements that reference any of those specific "Ableton Live" components are flagged as errors. However, even though all 124 tests are passing in the console, it seems something is still not right in the project environment. # * - error was at line 115 because foo_py25_mac.pyc wasn't in tests/data/ like foo.py and bar.py # * added foo_py25_mac.py file to tests/data/ (copy of foo.py) and compiled it to foo_py25_mac.pyc # * edited test_abledton_ping.py line 33/34 to the correct (local) path # * removed -with-progressive arg (didn't exist) I made several minor changes before all tests passed. After that I ran the nosetests in my P圜harm console. After that I ran the 'pip install dev_requirements.txt' command in my P圜harm console (git-bash). But I ended up creating Run/Debug configurations to run that "easy_install" for each of the "*.egg" folders not named "setuptools*" in that directory. I probably could have scripted something to mimic the 'find' command. For example, the path to site-packages is different in my installation. Unfortunately, I suspect these are instructions for programmers with access to the full git repo at Ableton for the Live product, rather than instructions for users like me. $ nosetests -s -with-progressive -logging-clear-handlers tests $ cd $LIVE_REPO_ROOT/products/live/Live/AppWebConnector/Python/abl.webconnector/ $ find $LIVE_REPO_ROOT/modules/python/site-packages/ -type d -name *.egg -not -name setuptools* -exec easy_install \ install in the virtualenv the Python site-packages that we ship with Live: Of course, the instructions make project setup seem easy as 1, 2, 3. The only instructions I have are in a file buried deep in the Ableton Live folder structure. ![]() I'm not sure which section of my vast supply of ignorance is responsible. I'm trying to set up a "virtual environment" in P圜harm to support my Ableton Live Midi Remote Script scripting project(s), but I've hit a wall and need help. My sole motivation for diving in now is customizing midi controller scripts for Ableton Live. I'm an experienced Java/Groovy developer, employed as such even.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |