No module named 'pyolib' while launching SoundGrain

16 views
Skip to first unread message

dennis

unread,
Mar 13, 2024, 8:32:14 AM3/13/24
to pyo-discuss
Hi,

I tried to launch Soundgrain but I have :

Traceback (most recent call last):
  File "/home/dennis/Softwares_Exe/SoundGrain_6.0.1-src/SoundGrain.py", line 25, in <module>
    from Resources.MainFrame import MainFrame
  File "/home/dennis/Softwares_Exe/SoundGrain_6.0.1-src/Resources/MainFrame.py", line 23, in <module>
    from Resources.Modules import *
  File "/home/dennis/Softwares_Exe/SoundGrain_6.0.1-src/Resources/Modules.py", line 22, in <module>
    from pyolib._wxwidgets import ControlSlider
ModuleNotFoundError: No module named 'pyolib'

I built pyo myself. Any idea to get it linked to the pyolib ?

Tiago Bortoletto Vaz

unread,
Mar 13, 2024, 9:51:16 PM3/13/24
to pyo-d...@googlegroups.com
Hi,

On Wed, Mar 13, 2024 at 05:32:14AM -0700, dennis wrote:
> Hi,
>
> I tried to launch Soundgrain but I have :
>
> Traceback (most recent call last):
> File "/home/dennis/Softwares_Exe/SoundGrain_6.0.1-src/SoundGrain.py",
> line 25, in <module>
> from Resources.MainFrame import MainFrame
> File
> "/home/dennis/Softwares_Exe/SoundGrain_6.0.1-src/Resources/MainFrame.py",
> line 23, in <module>
> from Resources.Modules import *
> File
> "/home/dennis/Softwares_Exe/SoundGrain_6.0.1-src/Resources/Modules.py",
> line 22, in <module>
> from pyolib._wxwidgets import ControlSlider
> ModuleNotFoundError: No module named 'pyolib'

You might need to patch the files wich import pyolib to use pyo.lib instead:

https://sources.debian.org/patches/soundgrain/6.0.1-5/fix-pyo-imports.patch

Bests,

--
Tiago Vaz
https://tvaz.cc

dennis

unread,
Mar 15, 2024, 4:50:37 AM3/15/24
to pyo-discuss
Thanks Tiago, I'll try that.

dennis

unread,
Apr 16, 2024, 4:32:12 AM4/16/24
to pyo-discuss
Hi,

I just tried your solution Tiago but I don't figure out where to put the patch (I guess at the roots of the folder or in scripts). I tried both and replaced pyolib with pyo.lib in the files, but now I have 'ModuleNotFoundError: No module named 'markdown'.
So I think I did it wrong.

Olivier Bélanger

unread,
Apr 16, 2024, 5:54:51 AM4/16/24
to pyo-d...@googlegroups.com
Hi,

The imports for pyo lib in Soundgrain have been fixed many years ago, you just have to use the latest sources from github instead of 6.0.1-src. For the markdown module (used for the embedded doc):

pip install markdown

Olivier


--
You received this message because you are subscribed to the Google Groups "pyo-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyo-discuss/66948a9a-4b24-4fb0-8a79-78234fbabb03n%40googlegroups.com.

dennis

unread,
Apr 16, 2024, 8:26:24 AM4/16/24
to pyo-discuss
Thanks Olivier, that works but I installed markdown with apt:

sudo apt-get install python3-markdown
Reply all
Reply to author
Forward
0 new messages