Jump to content


Photo

No module named PIL

Pip Pillow

  • Please log in to reply
13 replies to this topic

#1 monassat

  • Senior Member
  • 42 posts

0
Neutral

Posted 9 November 2023 - 17:37

Hello friends Have a problem as explained below. Using PLI 8.3 working really well on DM 8000. So installed an plugin succesfully, but is declaring an error " No module named PIL".
I installed succesfully system plugin named " Pipservicerelation" but always same error.
Please some help is reallly appreciated
Best regards



Re: No module named PIL #2 WanWizard

  • PLi® Core member
  • 70,803 posts

+1,830
Excellent

Posted 9 November 2023 - 18:05

Always a pain with 3rd-party ipk's, dependencies are never correctly defined.

 

First, make sure the plugin you are trying to install is python 3 compatible. Most ipk's floating around on the internet, and working on OpenPLI versions before 9.0, aren't. If not compatible, don't bother any further, find one that is. Afaik this plugin is an antique.

 

If you have found one that is compatible, and still have this error, you might need to install "python3-pillow" manually.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: No module named PIL #3 monassat

  • Senior Member
  • 42 posts

0
Neutral

Posted 9 November 2023 - 18:50

Thanks for your kind replay. Will investigate more

All the best



Re: No module named PIL #4 rantanplan

  • PLi® Contributor
  • 1,861 posts

+87
Good

Posted 10 November 2023 - 21:04

Thanks for your kind replay. Will investigate more

All the best

Openpli 8.3?

Then of course the version for python2 is required, but it should be on the feed.



Re: No module named PIL #5 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 10 November 2023 - 21:47

Or using one line in Linux Shell :-P

[ -e "/usr/bin/python3" ] && PY="python3" || PY="python"; opkg update; opkg install "${PY}-pillow"


Re: No module named PIL #6 rantanplan

  • PLi® Contributor
  • 1,861 posts

+87
Good

Posted 10 November 2023 - 22:24

 

Or using one line in Linux Shell :-P

[ -e "/usr/bin/python3" ] && PY="python3" || PY="python"; opkg update; opkg install "${PY}-pillow"

Pli Version 8.3 ;-)
->python2



Re: No module named PIL #7 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 11 November 2023 - 09:40

Yes @rantaplan, it can still be done, as you mentioned, that is. that instead of the "python" command, the "python2" command will be invoked directly :).

 

However, I assumed that Python 1.x practically no longer exists. I also assumed that /usr/bin/python is always just a symbolic link link to the existing Python interpreter in the system, for reasons of backward compatibility.

 

So it doesn't matter whether PY2 or PY3 is present in the system, it is enough if you simply use the command "python" to invoke the Python interpreter - this is usually a link to the /usr/bin/python3 file or to the /usr/bin/python2 file - according to of what is installed in the system.

 

It can be said that for the last ten years, developers have only been working with PY2 and PY3. So, in the current times, it's good method to detect the presence of PY3. And if it is not found there, then logically, the only other thing that can exist there is PY2.


Edited by s3n0, 11 November 2023 - 09:43.


Re: No module named PIL #8 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 11 November 2023 - 10:09

There could still be a problem if someone uses both PY versions in a Linux set-top box, for testing and debugging purposes - for example, some developer. In that case, it may be necessary to install both versions of the "pillow" package (which also includes the PIL module for editing images). Enigma2 usually only works under one of these two PY versions. Also... for example... a user's python script can then run under a different version of PY than Enigma2 itself. That is, if the python script is not programmed for both versions of PY as "compatible".

 

This means the need to install the packages:  python-pillow (for PY2) and also python3-pillow (for PY3).



Re: No module named PIL #9 monassat

  • Senior Member
  • 42 posts

0
Neutral

Posted 12 November 2023 - 17:06

So I checked the plugin; is python 3 compatible. Question now is how should I install "python3-pillow" manually?? Should I use DCC telnet command? If so please help me with correct command line.
Many thanks



Re: No module named PIL #10 WanWizard

  • PLi® Core member
  • 70,803 posts

+1,830
Excellent

Posted 12 November 2023 - 17:09

Either on the commandline

opkg update && opkg install python3-pillow

or on the box by installing the software manager plugin, then start it, and install the plugin from advanced, package management.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: No module named PIL #11 rantanplan

  • PLi® Contributor
  • 1,861 posts

+87
Good

Posted 13 November 2023 - 16:41

.... Using PLI 8.3 working really well on DM 8000. So installed an plugin succesfully, but is declaring an error " No module named PIL".
 

I'm really starting to despair here...

python2 image on the box and accordingly he needs the plugin in python2 and of course also pillow in python2...

But it was really my last attempt.



Re: No module named PIL #12 WanWizard

  • PLi® Core member
  • 70,803 posts

+1,830
Excellent

Posted 13 November 2023 - 17:19

For me it is as confusing as for you, it is not clear about with version we are talking, the original post isn't clear, and subsequent posts make it worse... ;)


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: No module named PIL #13 monassat

  • Senior Member
  • 42 posts

0
Neutral

Posted 13 November 2023 - 17:30

Thanf for support

Tried to install python3-pillow trough telnet. No success. Answer was:

"Couldn't find anything to satisfy 'python3-pillow"

Installed "software manager plugin" but into advanced, package management.there is no item named python3-pillow available.

So will install PLI 9.0 and will see.

best regards



Re: No module named PIL #14 WanWizard

  • PLi® Core member
  • 70,803 posts

+1,830
Excellent

Posted 13 November 2023 - 18:03

As said before by several people, if you use 8.3, you need to install "python-pillow".


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.




Also tagged with one or more of these keywords: Pip, Pillow

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users