You are not logged in.

Dear visitor, welcome to Dreamboard. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

silelis

Dreamer

  • "silelis" started this thread

Posts: 72

Location: Poland

Occupation: improve production processes

  • Send private message

1

Thursday, July 7th 2011, 10:51am

How to catch python consol comunicate

Hi

I' m adapting some python console program to Enigma (use console classes in enigma program).

I want to show cli program communicates on TV as message or other is it possible to catch python comunicate and show it on screen.


In exaple in python CLI commands can give answer:
>>> subtitle_database=subtitles.process(file1,['pl'])
ERROR:root:Open subtitles could not be contacted for login

albo:
>>>subtitleFile = subtitles.createFile(subtitle_database[0],file1)
HTTP Error: 500 http://www.opensubtitles.org/en/download/file/1952861357.gz

So I want to catch this answer and shot it as message box.
"Reasonable people adapt themselves to the world.
Unreasonable people attempt to adapt the world to themselves.
All progress, therefore, depends on unreasonable people"

============
SubsDownloader

This post has been edited 1 times, last edit by "silelis" (Jul 7th 2011, 11:27am)


2

Thursday, July 7th 2011, 1:15pm

For debugging just stop enigma2 via init 5 and then run it manually via console...

Then all those outputs are shown in your telnet/ssh session.
so long
m0rphU