Help: Build Spyder. ModuleNotFoundError: No module named 'zmq'

I need help packaging Spyder as Flatpak.

Spyder need pyzmq as dependencies.
I add pyzmq, but Spyder could not find in at runtime.

flatpak run org.spyder_ide.spyder                
Traceback (most recent call last):
File "/app/bin/spyder", line 5, in <module>
from import main
File "/app/lib/python3.9/site-packages/spyder/app/", line 34, in <module>
import zmq
ModuleNotFoundError: No module named 'zmq'

Here is my manifest file.

Thanks for the help.

Some ideas:

  • check out where exactly under /app/lib/ is installed the pyzmq module, and if it is the same path you are expecting with:
  • Try with building from a git tag rather than a tarball, as done here

you nailed the issue, thanks