nomelif / Audionodes

Audio generation in blender nodes
Other
88 stars 10 forks source link

"no module named 'pygame.base'" error #10

Closed LasseHeuer closed 6 years ago

LasseHeuer commented 7 years ago

Hi ,

after following the installationinstructions and the troubleshooting I got another bug bildschirmfoto 2017-01-23 um 16 41 15

thanks for this project. Just on time for a project of mine :)

LasseHeuer commented 7 years ago

Hi,

I’m on mac. sry i didnt mention

–– Lasse Heuer Illustration und Design

Hartengrube 21 23552 Lübeck

+49 152 029 116 99

Am 23.01.2017 um 16:54 schrieb Roope Salmi notifications@github.com:

Seems that PyGame isn't loading correctly. Are you on Windows?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nomelif/Audionodes/issues/10#issuecomment-274526334, or mute the thread https://github.com/notifications/unsubscribe-auth/AYIVmyurG689uziDnYVS-nP1WZEwY9MSks5rVM1QgaJpZM4LrMt9.

ollpu commented 7 years ago

Okay, let's try to troubleshoot this some more. Does PyGame work when running Python from the terminal? Use python3 again and try import pygame.base. If that causes a similar error message, there's something wrong with the PyGame installation.

LasseHeuer commented 7 years ago

Okay, macterminal is fine with those commands.

I tried typing that in blenderconsole and it says:

import pygame.base Traceback (most recent call last): File "", line 1, in ImportError: No module named ‚pygame'

Am 23.01.2017 um 18:54 schrieb Roope Salmi notifications@github.com:

import pygame.base

nomelif commented 7 years ago

OK. We admittedly have not been testing the beast on macOS for some time. The mistake is probably on our side. We will have a look at it when we can. I personally have a quite tight schedule right now and so does to my understanding Olppu too. Sorry, if this takes some time. (Read: maybe up to a couple weeks)

ollpu commented 7 years ago

We tried installing it on a Mac today, and ran into the same issue. We will have to investigate the issue some more before we can provide a solution.

The PyGame installation is being reached (judging by the error's paths), but any compiled CPython-modules within the library aren't being recognized by Blender's provided Python installation.

LasseHeuer commented 7 years ago

thanks you.

–– Lasse Heuer Illustration und Design

Hartengrube 21 23552 Lübeck

+49 152 029 116 99

Am 25.01.2017 um 17:05 schrieb Roope Salmi notifications@github.com:

We tried installing it on a Mac today, and ran into the same issue. We will have to investigate the issue some more before we can provide a solution.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nomelif/Audionodes/issues/10#issuecomment-275149573, or mute the thread https://github.com/notifications/unsubscribe-auth/AYIVm-KWy7aBYBoaj3IfDq4rYJ8zr3zrks5rV3LDgaJpZM4LrMt9.

db2eb commented 6 years ago

Has this issue ever been resolved? I am also getting this error after installing pygame through pip. I am also using a Mac.

nomelif commented 6 years ago

We gave up on the whole python backend: dependency hell and trying to do rt in python are enough to drive anyone loopy.

We have started to clone the functionality in C++ on a new branch (revolution). This new swing at the problem is somewhat more ambitious than the previous attempt: we are for example modularizing midi systems. We are approaching feature parity and a merge to master. Node-wise we are lacking support for noise, microphone, filters and sustain on the piano.

Then some platform testing shall ensue.

Then we'll (ideally) be able to just ship a zip that should work without the need to manually mess with dependencies.

nomelif commented 6 years ago

So here we are: after 130 days of on-and off work (counting from this commit: https://github.com/nomelif/Audionodes/commit/90d78a735f45cd5114bf7c1158abc58bf6f869d5) We have ported the backend over to c++ and changed our libraries around to be installable. Now we have working binaries for both Linux and MacOS to upload. (We haven't yet decided on when and how to tackle Windows) They have SDL and FluidSynth as dependencies. Ollpu is sitting right next to me and updating the readme on how to install the deps. On both OSes this reduces to running a brew / apt / pacman -command. Then it should be a matter of installing a zip from the GitHub downloads section.

Things like saving and loading files and undo should now work. The only major aspect of the node system missing is support for node groups. We would appreciate feedback on the beast.

Now we are going to merge our dev branch into master and build the release binaries. Then maybe study for the exams we have tomorrow and the baccalaureate I am taking in a few weeks.

ghost commented 3 years ago

Check my MACOS solution and upvote me on stack overflow in case I've helped:

https://stackoverflow.com/questions/40224385/pygame-no-module-called-pygame-base/65183915#65183915