Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brainstorming: Maemo/python2.5 (sup)port #47

Closed
GoogleCodeExporter opened this issue May 2, 2016 · 6 comments
Closed

Brainstorming: Maemo/python2.5 (sup)port #47

GoogleCodeExporter opened this issue May 2, 2016 · 6 comments

Comments

@GoogleCodeExporter
Copy link

Besides desktop Ubuntu I'm using Nokia N900 with Maemo which is too 
debian-based linux.
The only problem is python version - it has only 2.5.4 by default. (There is 
Easy Debian, yes, but I'm trying to make it more easy to run).
However I was able to run code from periscope-0.1.13.tar.gz with only few 
changes:
1) changed every "except *lib2.* as *:" to "except *lib2.*, *:"
Yes, I didn't test it much yet, but without exceptions code at least runs on 
python2.5
2) changed plugins/TheSubDB.py from 80 line to:
        try:
            f=open(name, 'rb')
#        with open(name, 'rb') as f:
            size = os.path.getsize(name)
            data = f.read(readsize)
            f.seek(-readsize, os.SEEK_END)
            data += f.read(readsize)
        except:
            pass
        finally:
            try: f.close()
            except: pass

Original issue reported on code.google.com by xintx.ua@gmail.com on 19 Oct 2010 at 10:25

@GoogleCodeExporter
Copy link
Author

Hi, I own an n810 running Maemo Diablo, I believe they both use the same 
version of Python. I'll make the necessary changes and modification to make it 
run on Maemo. I've considered supporting Maemo multiple times but didn't as I 
personally don't watch too many videos on my n810 (MPlayer can be jerky on some 
videos)

I'll give it a try to package it for Diablo and push it to extra-devel and hope 
I can reuse the same script for Fremantle. 

Original comment by patrick....@gmail.com on 20 Oct 2010 at 7:32

  • Changed state: Accepted
  • Added labels: Component-Scripts, Maintainability, OpSys-Linux, Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

FYI: I was porting opensubtitles script to Maemo when found your project.

Maybe you'll find something useful in the code (for example dbus notifications) 
:
https://garage.maemo.org/projects/opensubtitles
And here is forum thread: http://talk.maemo.org/showthread.php?t=63822

So I'll stop development of this and ready to try help you with what you need: 
testing on N900, icon creation, packaging, patching or else.

Original comment by xintx.ua@gmail.com on 20 Oct 2010 at 8:52

@GoogleCodeExporter
Copy link
Author

In order to have periscope usable on the n900, it should be integrated with 
either the native media app, a popular media app or the file manager.

I can go as far as make it runnable and support you on calling the module but 
as I don't own an n910, the native media app integration or the file manager 
integration are out of my reach. This integration could be seen as a full 
(small) project as it will require packaging, UI, ...).

The code to call periscope is pretty limited, you can take a look at the 
Nautilus module (about 100 lines of code to add download, notification, 
integration with the right-click menu and the thread creation):
http://code.google.com/p/periscope/source/browse/trunk/bin/periscope-nautilus/pe
riscope-nautilus.py

Original comment by patrick....@gmail.com on 20 Oct 2010 at 9:10

@GoogleCodeExporter
Copy link
Author

I just found easier way for using it with Python 2.5:
http://www.python.org/dev/peps/pep-0343/
from section Transition Plan:
In Python 2.5, the new syntax will only be recognized if a future statement is 
present:
from __future__ import with_statement

Original comment by xintx.ua@gmail.com on 22 Mar 2011 at 12:06

@GoogleCodeExporter
Copy link
Author

Interesting.

I'll integrate that (unless you've got time to make a patch before).

Do you have any experience with Maemo package building ? I tried to reuse the 
script I have for Ubuntu but got some error:
http://talk.maemo.org/showthread.php?t=64847

Original comment by patrick....@gmail.com on 22 Mar 2011 at 12:14

@GoogleCodeExporter
Copy link
Author

Maemo is dead :(

Original comment by patrick....@gmail.com on 11 Dec 2012 at 4:30

  • Changed state: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant