Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on Nov 2011
#1
Looks like only python 2.x is available for the n9, is there any way to get python 3.x on the n9?
 
caco3's Avatar
Posts: 560 | Thanked: 423 times | Joined on May 2010 @ Switzerland
#2
Python is provided by Nokia in the official repo. SO they would need to upgrade it.
why do you need Python 3?
You could try to pack it in OBS, but it will be a lot of work with all its extra libraries
__________________
On N9 check out this:
CacheMe 4 the N9, a geocaching client / MiniBible, a bible viewer / TheWord brings daily bible verses onto your phone / BatteryGraph to monitor the battery drainage / doublepress2unlock to unlock your phone with a double press onto the power button / GPRS Data Usage to monitor your GPRS data usage /
and more...

On N900 check out this: SleepAnalyser to analyse your sleep movements / PasswordMaker a for a password generator
 
Posts: 3 | Thanked: 0 times | Joined on Nov 2011
#3
Hmmm, would it be possible to package standard python 3.x without any of the nokia/meego specific libs(i.e so with only the standard libs that come with the standard python 3.x) into a deb for the n9? I need it because my school is teaching python for the computing course, and its using python 3, so having that would on my phone would make life easier for me.
 
caco3's Avatar
Posts: 560 | Thanked: 423 times | Joined on May 2010 @ Switzerland
#4
Maybe somebody did it already?
Did you look in the OBS?
__________________
On N9 check out this:
CacheMe 4 the N9, a geocaching client / MiniBible, a bible viewer / TheWord brings daily bible verses onto your phone / BatteryGraph to monitor the battery drainage / doublepress2unlock to unlock your phone with a double press onto the power button / GPRS Data Usage to monitor your GPRS data usage /
and more...

On N900 check out this: SleepAnalyser to analyse your sleep movements / PasswordMaker a for a password generator
 
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#5
Please read http://wiki.python.org/moin/Python2orPython3

Most "production code" runs on Python 2.x (although 2.7 would be better than the 2.6 that's currently in the N9 repos, as 2.7 has many features from 3.x backported, and also is still supported), so no need yet for Python 3 - especially since some libraries are not yet compatible with Python 3 or have only experimental support. If you want to use PySide (Qt) on the N9, for example, you should stick to Python 2.
 

The Following 2 Users Say Thank You to thp For This Useful Post:
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#6
You can install Python 3.0 or 3.1 in Nokia N9 for pure Python use (not with Qt/QML) :

- enable the Harmattan SDK repository by installing this package;

- then, using Terminal as root ('devel-su' with 'rootme' password) :
# apt-get update
# apt-get install python3.1
After this operation, 20.4MB of additional disk space will be used. Confirme with 'Y' or 'y' all the questions.

The Harmattan SDK Python list shows that Python has versions 2.5, 2.6 (default), 3.0 and 3.1.

After installing, using Terminal as user :
$ python --version
gives "Python 2.6.6", while :
$ python3.1 --version
gives "Python 3.1.3".

Enjoy Python coding using N9, the best (current*) smartphone for Python.

(*) : N900 is better but it is hard to buy nowadays...
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.

Last edited by rcolistete; 2012-02-18 at 20:59. Reason: More details
 

The Following 3 Users Say Thank You to rcolistete For This Useful Post:
caco3's Avatar
Posts: 560 | Thanked: 423 times | Joined on May 2010 @ Switzerland
#7
Just today I was solving some brain exercises with a friend.
We had to encrypt a simple text for a geocache. To prove our encryption was correct, I quickly wrote a little tool for it.
Since I currently have most experience with Python, I decided to use my N9(50)s Python. So, using his Mac book, I connected through SSH to my phone and wrote the script with the nano editor
I also could have installed Python on his mac book, but the other way was quicker and more geeky
I also realised that the Mac OS is not able to use SFTP which I use all the time to transfer my scripts and files from my Linux PC to the N9(50).
__________________
On N9 check out this:
CacheMe 4 the N9, a geocaching client / MiniBible, a bible viewer / TheWord brings daily bible verses onto your phone / BatteryGraph to monitor the battery drainage / doublepress2unlock to unlock your phone with a double press onto the power button / GPRS Data Usage to monitor your GPRS data usage /
and more...

On N900 check out this: SleepAnalyser to analyse your sleep movements / PasswordMaker a for a password generator
 
Posts: 3 | Thanked: 0 times | Joined on Nov 2011
#8
Originally Posted by rcolistete View Post
you can install python 3.0 or 3.1 in nokia n9 for pure python use (not with qt/qml) :

- enable the harmattan sdk repository by installing this package;

- then, using terminal as root ('devel-su' with 'rootme' password) :
# apt-get update
# apt-get install python3.1
after this operation, 20.4mb of additional disk space will be used. Confirme with 'y' or 'y' all the questions.

The harmattan sdk python list shows that python has versions 2.5, 2.6 (default), 3.0 and 3.1.

After installing, using terminal as user :
$ python --version
gives "python 2.6.6", while :
$ python3.1 --version
gives "python 3.1.3".

Enjoy python coding using n9, the best (current*) smartphone for python.

(*) : N900 is better but it is hard to buy nowadays...
i <3<3<3 you!
 
Posts: 1 | Thanked: 0 times | Joined on Mar 2012
#9
Hello Rcolistete, I know there is an other thread about n900 and python 3.x but you have been wrote that n900 is better for python.
So I want to ask you about instalation Python on N900. Is there any way?
Thanks in advance
 
caco3's Avatar
Posts: 560 | Thanked: 423 times | Joined on May 2010 @ Switzerland
#10
Originally Posted by Elnath View Post
Hello Rcolistete, I know there is an other thread about n900 and python 3.x but you have been wrote that n900 is better for python.
So I want to ask you about instalation Python on N900. Is there any way?
Thanks in advance
Python (2.6 or 2.7) is already installed on the N900. Or if not yet, install it with
Code:
apt-get install python
or use the package manager.
__________________
On N9 check out this:
CacheMe 4 the N9, a geocaching client / MiniBible, a bible viewer / TheWord brings daily bible verses onto your phone / BatteryGraph to monitor the battery drainage / doublepress2unlock to unlock your phone with a double press onto the power button / GPRS Data Usage to monitor your GPRS data usage /
and more...

On N900 check out this: SleepAnalyser to analyse your sleep movements / PasswordMaker a for a password generator
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:59.