LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 05-09-2011, 01:38 PM   #1
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Rep: Reputation: 49
Trying to install 'Gmail Backup' but it requires python2.5 - I have python2.8...


Hello:

When I run the install of 'Gmail Backup' (from http://www.gmail-backup.com/download) an error msg appears stating that I must have python2.5 - I presently have python2.8

Is there any way to solve this without destroying my Slackware 13.37 installation?

Thanks,
 
Old 05-09-2011, 02:21 PM   #2
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 248

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Robert.Thompson View Post
When I run the install of 'Gmail Backup' (from http://www.gmail-backup.com/download) an error msg appears stating that I must have python2.5 - I presently have python2.8

Is there any way to solve this without destroying my Slackware 13.37 installation?
The zip archive from provided URL contains only optimized bytecode (.pyo) files for Python 2.5, so not much you can do about it, unless there are source files (.py) hidden somewhere (svc package from archive doesn't look like it). Try asking upstream for newer version, though the whole thing seems to be abandoned.

And I guess you meant python2.6, not 8?
 
Old 05-09-2011, 02:31 PM   #3
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 421

Rep: Reputation: 58
What if he edits the gmail-backup.sh and gmail-backup-gui.sh files to from "exec python2.5" to "exec python" and tries again?
 
Old 05-09-2011, 02:35 PM   #4
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 248

Rep: Reputation: 107Reputation: 107
An idea just popped in my head -- if all you want is to backup your Gmail mailbox, you could try offlineimap tool to fetch it via IMAP. I haven't tried offlineimap myself, but it should work.
 
Old 05-09-2011, 02:37 PM   #5
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 248

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Chuck56 View Post
What if he edits the gmail-backup.sh and gmail-backup-gui.sh files to from "exec python2.5" to "exec python" and tries again?
Unfortunately, it won't work, as bytecode differs between Python versions:

Code:
$ python2.6 gmail-backup-gui.pyo 
RuntimeError: Bad magic number in .pyc file
 
Old 05-09-2011, 02:39 PM   #6
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
What if he edits the gmail-backup.sh and gmail-backup-gui.sh files to from "exec python2.5" to "exec python" and tries again?
This won't work as the .pyo files included will only work with python-2.5 - they have a "magic number" to show what version of python they work with.

I looked a this and noticed the bytecode .pyo files as audriusk mentions. This is a pain as it means you need python 2.5. If you are stuck you could try getting the python source from Slackware 12.2, fixing the python.Slackbuild so it doesn't overwrite the existing python you have then build and install the package. This should then enable to you run these gmail python scripts.
Quote:
Try asking upstream for newer version, though the whole thing seems to be abandoned.
Again, as audriusk mentions, the versions of python involved are now rather old and so I don't know whether it's worth trying to get this running. At any rate you definitely need to keep your existing python version as a lot of applications rely on this.

Edit : Apologies audriusk - we where typing these at the same time!

Last edited by bgeddy; 05-09-2011 at 02:44 PM. Reason: Ddup[lication
 
Old 05-10-2011, 09:23 AM   #7
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 49
Thanks to all who replied!

I think that I'll just forget 'Gmail Backup'.

Marking as SOLVED.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python2.5-devel is unable to find installed Python2.5 Setya Suse/Novell 1 06-08-2007 02:35 AM
Install of Python2.4 on RHEL ES 4 chtaylo3 Red Hat 1 10-20-2006 08:14 AM
Install python2.4 elopee Programming 7 02-01-2005 01:14 PM
Can't install python2.3 on RH9 SheldonPlankton Linux - Software 0 08-26-2004 01:21 PM
Gyach-Enhanced/python2 install juzchillin Linux - Software 1 05-09-2004 01:54 PM


All times are GMT -5. The time now is 06:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration