DeepLearningWithAudio
DeepLearningWithAudio copied to clipboard
first Pd patch (ai_duet) does not open
I'm running a new MacBook Pro M1, macOS 11.6, Pd 0.51.4.
I'm almost certain that I've followed all of the setup correctly, resulting in a build of pyext that is installed in my Pd externals directory. When I launch Pd I see the messages in the Pd window indicated that pyext (and zexy) has loaded without errors.
magenta has also been installed and seems to be activating properly.
I have downloaded the pretrained models, but when I launch ai_duet.pd the patch will not open in Pd. It will sometimes crash Pd too, though not consistently. I'm not sure where the problem is coming from.
The only differences I'm seeing between my setup and the information in the docs is that I'm running Pd 0.51.4 (instead of 0.51.3) and I'm using Python 3.7.11 (instead of 3.7.10).
I recognise that this may not be enough info to go on, but...any ideas?
slight update: the issue is not just with the first Pd patch, I've just tried opening some of the other patches and they also won't load - I just tried nsynth.pd and nsynthosc.pd, for example, and they didn't work either.
also, if it's any clue, I'm doing this on a work computer that is managed by a superuser. I have admin privileges but I don't know if there's some chance that some things could be getting blocked...however I feel like I would not have been able to build pyext and install conda if that were the case.
Hi,
I will check if the Mac os 11.6 is causing the problem, if you could be able to see pyext version for Python 3 on your Pd window and if you are sure that you have gone through installing the other requirements, then all should be good.
Tomorrow I will post here or email you about that,
Koray
On 1 Oct 2021, at 10.52, Yann Seznec @.@.>> wrote:
slight update: the issue is not just with the first Pd patch, I've just tried opening some of the other patches and they also won't load - I just tried nsynth.pd and nsynthosc.pd, for example, and they didn't work either.
also, if it's any clue, I'm doing this on a work computer that is managed by a superuser. I have admin privileges but I don't know if there's some chance that some things could be getting blocked...however I feel like I would not have been able to build pyext and install conda if that were the case.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSopiMlab%2FDeepLearningWithAudio%2Fissues%2F8%23issuecomment-931995590&data=04%7C01%7Cktahirog%40aaltofi.mail.onmicrosoft.com%7C19be1e20c84d403f1af108d984b06be6%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637686715518921714%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=n4Lfw6sTrJ2feziAl5S5GQ5uyehKvE%2BCxPyBkpNzguQ%3D&reserved=0, or unsubscribehttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAXOCCS7L4Z2QFQ3TMNFTP3UEVSDVANCNFSM5FEB3FNQ&data=04%7C01%7Cktahirog%40aaltofi.mail.onmicrosoft.com%7C19be1e20c84d403f1af108d984b06be6%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637686715518931705%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=fpzoLSi7BFalALrXQCz7jiTHG9H9I6%2BKzoUE14TBnHQ%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cktahirog%40aaltofi.mail.onmicrosoft.com%7C19be1e20c84d403f1af108d984b06be6%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637686715518931705%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=kpqrlTCIiO%2BSiCeS4%2BtA%2BzvYnYmY0gHDvKMQz7TCH9Q%3D&reserved=0 or Androidhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Cktahirog%40aaltofi.mail.onmicrosoft.com%7C19be1e20c84d403f1af108d984b06be6%7Cae1a772440414462a6dc538cb199707e%7C1%7C0%7C637686715518941705%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=rQSeoNDy9RaZXWrp9II2vTTMFlC0KfS2HSX83%2FwQFHo%3D&reserved=0.
Excellent, thanks - yes I'm pretty certain that pyext is all set up correctly, here's a screenshot of the Pd window when I start up.

hi,
just wanted to note that we don't currently have access to M1 macs, and so this code has only been tested on Intel. i'm pretty sure the codebase still has some memory related bugs and it's possible those are more fatal on the M1, or that there's some other kind of compatibility issue. if you're comfortable with debugging tools like Valgrind, it would be really interesting to find out where things are going wrong. but other than that i'm afraid i can't be of much help at the moment.
hmmm ok, so currently there are two big unknowns:
- is this due to the M1 chip?
- is this due to my computer being managed by my university, despite me having admin privileges. perhaps the communication between Pd and Python is being blocked?
There are certainly a number of other possible issues, but if anyone can shed any light on those two ideas that would be great.
the second case seems unlikely to me - i'd imagine any such restriction would break a lot of other things too.
some things you could try to maybe narrow down the issue:
- see if you can open any of the pyext example patches, e.g.
simple-1.pd
(you'll probably have to move the python files fromscripts
intopd
where the patches are) - if not, what happens if you create a new patch and add a simple py object like
pym 2 +
? are you able to compute with it? (send a number to inlets 2 and 3, then a bang to inlet 1 and check what comes out of outlet 1)
I hadn't noticed the pyext example patches, thanks for that - I can't seem to get any of them to work - I get an error message in the pd window saying "pyext simple ex1 ....couldn't create"
this is a bit confusing, as the Pd window says it is loading the py/pyext 0.2.2 library on startup! however, it's certainly a good sign in terms of tracking down the issue. perhaps I didn't build the objects correctly after all!
on the other hand, the [pym] object seems to work fine, it loads and I am able to do the simple addition like you described.
is there any information before the "couldn't create"? usually you should get a slightly more specific error message.
oh yes you're right:
ModuleNotFoundError: No module named 'simple'
this sounds like it can't find the simple.py
file, hence:
you'll probably have to move the python files from scripts into pd where the patches are
oh gosh my apologies, I totally overlooked that.
when I move the scripts into the same folder where the patches are, there is some "progress" - the patch does not launch at all. it exhibits the same behaviour as when I try to launch the ai_duet patch as described originally, it just quietly hangs without a spinning wheel or anything, and a patch window never opens up.