mnlipp / CoCy4Enigma2

A UPnP Renderer for Enigma2
3 stars 1 forks source link

Error / BUG for openatv 6.2 installation #2

Closed feelnrg closed 4 years ago

feelnrg commented 5 years ago

Hi, I was using this plugin for openatv 6.1. But for a reason I can not install it on openatv 6.2 Aftet it installs 2 Pakets, I get followed error message if I go into the plugins:

(cannot import name log)

What I have done? Copy Cocy Plugin 0.2.2 to /tmp and install it. But it is not working Is there a installation manual? Or does it need other phyton packs?

Thank you for your work. Nice job Regards, Ben

mnlipp commented 5 years ago

Have a look at the control file. The current version lists the following dependencies: python-pip, python-db, python-subprocess, python-xmlrpc, python-json, python-email, python-image, python-audio, python-multiprocessing, python-compile, python-compression, python-distutils, python-sqlite3, python-zlib, python-mutagen, python-unittest. You should check if all those are available in openatv 6.2.

Once all dependencies are in place, opkg copies the files that make up CoCy4Enigma2 into the plugins directory. However, not all dependencies required by CoCy4Enigma2 are available as opkg packages. Therefore, the postinst file executes pip install cocy==0.3 which uses the python package manager to install all (still) missing dependencies.

If you execute these steps manually, you should be able to find out what goes wrong.

feelnrg commented 5 years ago

Thank you very much for the fast responce. On 6.1 i have do nothing different. I just install cocy 0.2.1 which I think is a old (2014) release, but it worked very fine. I was able to stream from android (BubbleUPNP) to my receiver. It was found as a renderer.

I have double checked the packages by using the command (opkg install python-xxxx) all packages are installed. I am using BubbleUPNP for Android . And the enigma renderer is not found. Also I am getting the Warning message if I enter the plugins in my receiver: Please find Screenshot: [https://drive.google.com/open?id=1dQHl7NJ_-OSF-CRjEWSxxbcLyh66IU0c] (https://drive.google.com/open?id=1dQHl7NJ_-OSF-CRjEWSxxbcLyh66IU0c)

I have installed 0.2.1 and also 0.4

Regards, Ben

mnlipp commented 5 years ago

Some import seems to fail. I need the relevant information from the enigma log file (it should show where the import happens). You find a description how to get this here. I don't need the complete log. Searching through the file for "cocy", you'll easily find the relevant section.

However (as the message in the screen-shot mentions "log") it might also be as simple as this: check if the (opkg) package python-logging is installed. It is not included in the list of dependencies cited above because I found it to be installed by default in OpenPLI. But this may, of course, be different with openatv.

feelnrg commented 5 years ago

22:12:24.5306 Components/PluginComponent.py:56 readPluginList Plugin SystemPlugins/CoCy failed to load: cannot import name Log 22:12:24.5310 Traceback (most recent call last): 22:12:24.5311 File "/usr/lib/enigma2/python/Components/PluginComponent.py", line 53, in readPluginList 22:12:24.5312 File "/usr/lib/enigma2/python/Tools/Import.py", line 2, in my_import 22:12:24.5313 File "/usr/lib/enigma2/python/Plugins/SystemPlugins/CoCy/plugin.py", line 23, in 22:12:24.5314 File "/usr/lib/enigma2/python/Plugins/SystemPlugins/CoCy/server.py", line 23, in 22:12:24.5315 File "/usr/lib/enigma2/python/Plugins/SystemPlugins/CoCy/renderer.py", line 28, in 22:12:24.5316 ImportError: cannot import name Log

mnlipp commented 5 years ago

Okay, it is a tiny bit odd. First, to make sure, please check which statement is at line renderer.py:28 of the code installed on your box. According to the version 0.4 source, things should look like this: image So the problem should origin from import logging (and not from from circuits_bricks.app.logger import log which is in line 27 and where log is written with a lower case "l"). (But on the other hand side, "Log" with a capital "L" isn't used in any package, that's what I find odd here.)

If the line numbers match, you must find out why import logging fails. It's from the standard library and not cocy specific. The required file is /usr/lib/python2.7/logging/__init__.pyo. With OpenPLI this file is provided by package python-logging. As already mentioned above, this package is not included in the list of package dependencies, because I found it to be installed by default in OpenPLI.

If the file is missing, try opkg install python-logging and see if it helps.

runcspelex commented 5 years ago

hi. in my case - openatv6.2 @amiko8900

root@amiko8900:/# opkg install python-pip, python-db, python-subprocess, python-xmlrpc, python-json, python-email, python-image, python-audio, python-multiprocessing, python-compile, python-compression, python-distutils, python-sqlite3, python-zlib, python-mutagen, python-unittest Couldn't find anything to satisfy 'python-pip,'. Couldn't find anything to satisfy 'python-db,'. Couldn't find anything to satisfy 'python-subprocess,'. Couldn't find anything to satisfy 'python-xmlrpc,'. Couldn't find anything to satisfy 'python-json,'. Couldn't find anything to satisfy 'python-email,'. Couldn't find anything to satisfy 'python-image,'. Couldn't find anything to satisfy 'python-audio,'. Couldn't find anything to satisfy 'python-multiprocessing,'. Couldn't find anything to satisfy 'python-compile,'. Couldn't find anything to satisfy 'python-compression,'. Couldn't find anything to satisfy 'python-distutils,'. Couldn't find anything to satisfy 'python-sqlite3,'. Couldn't find anything to satisfy 'python-zlib,'. Couldn't find anything to satisfy 'python-mutagen,'. Unknown package 'python-pip,'. Unknown package 'python-db,'. Unknown package 'python-subprocess,'. Unknown package 'python-xmlrpc,'. Unknown package 'python-json,'. Unknown package 'python-email,'. Unknown package 'python-image,'. Unknown package 'python-audio,'. Unknown package 'python-multiprocessing,'. Unknown package 'python-compile,'. Unknown package 'python-compression,'. Unknown package 'python-distutils,'. Unknown package 'python-sqlite3,'. Unknown package 'python-zlib,'. Unknown package 'python-mutagen,'. Package python-unittest (2.7.13-r1) installed in root is up to date. Collected errors:

of course, after opkg update

mnlipp commented 5 years ago

@runcspelex: obviously your openatv uses a completely different python packaging compared to OpenPLI. I cannot help you with this one. Maybe @feelnrg can tell you what he installed in order to get as far as "only" having the problem with the logging package.

The strange thing is that in https://github.com/mnlipp/CoCy4Enigma2/issues/2#issuecomment-445579150 @feelnrg said that the packages could be resolved. But not having openatv, I really cannot help you to sort out this one.

runcspelex commented 5 years ago

the main problem seems to be - this i not standard 6.2 - its custom for amiko8900 - this is sh4

feelnrg commented 5 years ago

I have openatv 6.2 on a AX 4K-Box HD51. But unfortunately cocy is not performing. Don`t know if this happens becaue I have installed cocy v0.2.2 before and then v0.4 after. Maybe we can spend some donation to the developer to give a little boost for the openatv issue :)

mnlipp commented 5 years ago

Maybe we can spend some donation to the developer to give a little boost for the openatv issue :)

I don't need a donation, I need information. Regarding my last comment on your issue, I didn't get any.

feelnrg commented 5 years ago

I have tried to install the cocy package again via putty. The result is:

I have searched for this extension but i could not find any.

mnlipp commented 5 years ago

The dependency on python-sqlite3-tests is not introduced by CoCy4Enigma4. What happens is that one of the packages that CoCy4Enigma2 does depend on (python-pip, python-db, python-subprocess, python-xmlrpc, python-json, python-email, python-image, python-audio, python-multiprocessing, python-compile, python-compression, python-distutils, python-sqlite3, python-zlib, python-mutagen, python-unittest) obviously has (directly or indirectly) a dependency on python-sqlite3-tests. You have to find out which package introduces the dependency and contact the maintainer. The openatv distribution should either provide all packages that its packages depend on or remove the dependency.

feelnrg commented 5 years ago

Thank you for feedback. I've found that the same error occurs when installing the python-pip package. Possibly the openatv team can help fix the bug.

mnlipp commented 4 years ago

Closed as it is obviously caused by a package missing in OpenATV.