Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hypnotix
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 783

PostPosted: Sat Nov 25, 2023 8:33 pm    Post subject: Hypnotix Reply with quote

Hi,

I'm trying to get hypnotix working.
https://github.com/linuxmint/hypnotix

I've had it working in the past on another unmaintained install.

So I tried installing it on a newer machine, and I'm getting an error, apparently, I'm missing a dependency called python3-imdbpy

Quote:
from imdb import IMDb
ModuleNotFoundError: No module named 'imdb'


I believe it corresponds to a python module called imdbpy on Gentoo.

Only I can't find it in portage.

If I try installing it via pip, I get

pip install imdbpy
Quote:

error: externally-managed-environment

× This environment is externally managed
╰─>
The system-wide Python installation in Gentoo should be maintained
using the system package manager (e.g. emerge).

If the package in question is not packaged for Gentoo, please
consider installing it inside a virtual environment, e.g.:

python -m venv /path/to/venv
. /path/to/venv/bin/activate
pip install mypackage

To exit the virtual environment, run:

deactivate

The virtual environment is not deleted, and can be re-entered by
re-sourcing the activate file.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.


What's the proper way to get it to work?

Thanks
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3919

PostPosted: Sat Nov 25, 2023 11:58 pm    Post subject: Reply with quote

Please use a venv.
https://forums.gentoo.org/viewtopic-t-1165809-highlight-.html
_________________
:)
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 783

PostPosted: Sun Nov 26, 2023 4:13 pm    Post subject: Reply with quote

Thank you, alamahant.

That is indeed the proper way to add non-catalog python modules to Gentoo without mucking things up. It seems to be similar to Wine's 'bottles' concept for independently supporting Windows apps that have conflicting dll/other requirements.

I opted to create an environment called hypnotix to encapsulate whatever python requirements will eventually be revealed.

Code:
$ python -m venv hypnotix

Code:
$ source hypnotix/bin/activate
Quote:
(hypnotix) user@host ~/apps/hypnotix $ pip install imdbpy
Collecting imdbpy
Downloading IMDbPY-2022.7.9-py3-none-any.whl (1.2 kB)
Collecting cinemagoer (from imdbpy)
Downloading cinemagoer-2023.5.1-py3-none-any.whl (297 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 297.2/297.2 kB 6.5 MB/s eta 0:00:00
Collecting SQLAlchemy (from cinemagoer->imdbpy)
Downloading SQLAlchemy-2.0.23-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.6 kB)
Collecting lxml (from cinemagoer->imdbpy)
Downloading lxml-4.9.3-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (3.8 kB)
Collecting typing-extensions>=4.2.0 (from SQLAlchemy->cinemagoer->imdbpy)
Downloading typing_extensions-4.8.0-py3-none-any.whl.metadata (3.0 kB)
Collecting greenlet!=0.4.17 (from SQLAlchemy->cinemagoer->imdbpy)
Downloading greenlet-3.0.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.metadata (3.7 kB)
Downloading lxml-4.9.3-cp311-cp311-manylinux_2_28_x86_64.whl (7.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.9/7.9 MB 17.1 MB/s eta 0:00:00
Downloading SQLAlchemy-2.0.23-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 32.1 MB/s eta 0:00:00
Downloading greenlet-3.0.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (616 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 616.7/616.7 kB 32.6 MB/s eta 0:00:00
Downloading typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Installing collected packages: typing-extensions, lxml, greenlet, SQLAlchemy, cinemagoer, imdbpy
Successfully installed SQLAlchemy-2.0.23 cinemagoer-2023.5.1 greenlet-3.0.1 imdbpy-2022.7.9 lxml-4.9.3 typing-extensions-4.8.0
Quote:
(hypnotix) user@host ~/apps/hypnotix $ hypnotix
System version of yt-dlp selected.
Traceback (most recent call last):
File "/usr/lib/hypnotix/hypnotix.py", line 30, in <module>
from imdb import IMDb
ModuleNotFoundError:
No module named 'imdb'


As you can see, the situation is improved, I can install indiscriminate python modules.
But it appears I've selected the wrong one, because the application doesn't seem to recognize it.

Thanks for your help
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum