python

View: New views
9 Messages — Rating Filter:   Alert me  

python

by Y P-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HOi,
de vraag is of ik nog ergens python 2.4 of een compatibele lib kan
installeren op een Hardy? of nog op een Feisty? van waar indien mogelijk en
of beschikbaar?
YP

--
Ubuntu-NL mailing list
Ubuntu-NL@...
Info/Uitschrijven: https://lists.ubuntu.com/mailman/listinfo/ubuntu-nl

Re: python

by Jan Claeys-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Op woensdag 07-10-2009 om 23:01 uur [tijdzone +0200], schreef Y P:
> de vraag is of ik nog ergens python 2.4 of een compatibele lib kan
> installeren op een Hardy? of nog op een Feisty? van waar indien
> mogelijk en of beschikbaar?

Python 2.4 is beschikbaar in alle (nu nog) ondersteunde Ubuntu versies:
http://packages.ubuntu.com/python2.4

Is wel niet standaard geïnstalleerd op recente installs...


--
Jan Claeys


--
Ubuntu-NL mailing list
Ubuntu-NL@...
Info/Uitschrijven: https://lists.ubuntu.com/mailman/listinfo/ubuntu-nl

Re: python

by Y P-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hoi Jan:

On Thu, Oct 08, 2009 at 05:01:19AM +0200, Jan Claeys wrote:
> Op woensdag 07-10-2009 om 23:01 uur [tijdzone +0200], schreef Y P:
> > de vraag is of ik nog ergens python 2.4 of een compatibele lib kan
> > installeren op een Hardy? of nog op een Feisty? van waar indien
> > mogelijk en of beschikbaar?
>
> Python 2.4 is beschikbaar in alle (nu nog) ondersteunde Ubuntu versies:
> http://packages.ubuntu.com/python2.4
>
> Is wel niet standaard geïnstalleerd op recente installs...

Ja OK, dat had ik ook gezien maar de vraag is hoe het zit met de mogelijke
conflikten ?
als ik python2.4-minimal installeer (op voorwaarde dat Guppy, de prog die
enkel met py2.4 compatibel is), gaat die niet py2.5 willen verdriven ?
Ik heb enkel py2.4 nodig voor Guppy, een soft dat nodig is om files van ons
"oude" sat-receiver Topfield te kunnen kopiëren...

Y P
 

--
Ubuntu-NL mailing list
Ubuntu-NL@...
Info/Uitschrijven: https://lists.ubuntu.com/mailman/listinfo/ubuntu-nl

Re: python

by Y P-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ieps! ik nog!

On Thu, Oct 08, 2009 at 09:17:45AM +0200, Y P wrote:

> Hoi Jan:
>
> On Thu, Oct 08, 2009 at 05:01:19AM +0200, Jan Claeys wrote:
> > Op woensdag 07-10-2009 om 23:01 uur [tijdzone +0200], schreef Y P:
> > > de vraag is of ik nog ergens python 2.4 of een compatibele lib kan
> > > installeren op een Hardy? of nog op een Feisty? van waar indien
> > > mogelijk en of beschikbaar?
> >
> > Python 2.4 is beschikbaar in alle (nu nog) ondersteunde Ubuntu versies:
> > http://packages.ubuntu.com/python2.4
> >
> > Is wel niet standaard geïnstalleerd op recente installs...
>
> Ja OK, dat had ik ook gezien maar de vraag is hoe het zit met de mogelijke
> conflikten ?
> als ik python2.4-minimal installeer (op voorwaarde dat Guppy, de prog die
> enkel met py2.4 compatibel is), gaat die niet py2.5 willen verdriven ?
> Ik heb enkel py2.4 nodig voor Guppy, een soft dat nodig is om files van ons
> "oude" sat-receiver Topfield te kunnen kopiëren...

'K heb maar dan python2.4-dev toegevoegd en aptitude heeft niet verteld dat
hij iets anders ging verwijdren,
dus geen conflicten in principe ...

Y P

--
Ubuntu-NL mailing list
Ubuntu-NL@...
Info/Uitschrijven: https://lists.ubuntu.com/mailman/listinfo/ubuntu-nl

Re: python

by Y P-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hoi,

ik blijf een foutmelding krijgen op de applicatie guppy die py24 nodig heeft
en die is reeds toegevoegd; dit is de output, kan iemand mij vertellen wat
ik moet doen om dit te fixen ?

anita@koala: anita@koala:~$ sudo puppy -c dir
[sudo] password for anita:
d                    0 Wed Jan  1 00:00:00 2003 DataFiles
d                    0 Wed Jan  1 00:00:00 2003 ProgramFiles
d                    0 Wed Jan  1 00:00:00 2003 MP3

(dit is dus OK).
Maar nu:

anita@koala: anita@koala:~$ sudo guppy
Traceback (most recent call last):
  File "/usr/bin/guppy", line 82, in <module>
    from guppy import GuppyWindow
ImportError: No module named guppy
anita@koala: anita@koala:~$

Wat bedoelt hij er in hemel's naam mee ? ? ?
(ik zal maar voor de Python guru's dit python executable in attach zetten)

Y P



#!/usr/bin/python
#
# Copyright (C) 2005 by Async Open Source
# Copyright (C) 2005-2006 by Tony Tsui <tsui.tony@...>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

import os
import sys

# Required version of Python
REQUIRED_VERSION = (2, 3)

# Directory name, defaults to name of binary, it is relative to ..
# a, __init__.py and main.py is expected to be found there.
DIRNAME = None

# Application name, defaults to capitalized name of binary
APPNAME = None

# Do not modify code below this point
dirname = DIRNAME or os.path.split(sys.argv[0])[1]
appname = APPNAME or dirname.capitalize()

version_string = sys.version.split(' ')[0]
majmin = tuple(map(int, version_string.split('.')[0:2]))
if majmin < REQUIRED_VERSION:
        raise SystemExit("ERROR: Python %s or higher is required to run %s, "
                         "%s found" % ('.'.join(map(str, REQUIRED_VERSION)),
                                       appname,
                                       version_string))

# Figure out the directy which is the prefix
# path-of-current-file/..
currentdir = os.path.dirname(os.path.abspath(sys.argv[0]))
basedir = os.path.abspath(os.path.join(currentdir, '..'))

# Add the base directory where the application is installed in to sys.path
if os.path.exists(os.path.join(basedir, 'lib')):
        pythondir = os.path.join(basedir, 'lib',
                                 'python%d.%d' % sys.version_info[:2],
                                 'site-packages')
        if not os.path.exists(pythondir):
                raise SystemExit("ERROR: Could not find required directory: %s" %
                            pythondir)

        datadir = os.path.join(basedir, 'share', dirname)
        if not os.path.exists(datadir):
                raise SystemExit("ERROR: Could not find required directory: %s" %
                            datadir)
                           
        langdir = os.path.join(basedir, 'share/locale')
        if not os.path.exists(langdir):
                raise SystemExit("ERROR: Could not find required directory: %s" %
                            langdir)
elif not os.path.exists(os.path.join(basedir, dirname)):
        raise SystemExit("ERROR: Could not find required directory: %s" %
                         os.path.join(basedir, dirname))
else:
        pythondir = basedir
        datadir = os.path.join(basedir, dirname)
        langdir = os.path.join(basedir, 'locale')
       
sys.path.insert(0, pythondir)

import locale
import gettext
import gtk

from guppy import GuppyWindow

if __name__ == "__main__":
        try:
                locale.setlocale(locale.LC_ALL, '')
        except locale.Error:
                pass
        gtk.glade.bindtextdomain(dirname, langdir)
        gtk.glade.textdomain(dirname)
        gettext.install(dirname, langdir, unicode=1)
       
        guppy = GuppyWindow.GuppyWindow(datadir + '/', dirname)
        guppy.run()

--
Ubuntu-NL mailing list
Ubuntu-NL@...
Info/Uitschrijven: https://lists.ubuntu.com/mailman/listinfo/ubuntu-nl

Re: python

by Dieter-15 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Op donderdag 08-10-2009 om 11:30 uur [tijdzone +0200], schreef YP:

> ik blijf een foutmelding krijgen op de applicatie guppy die py24 nodig heeft
> en die is reeds toegevoegd; dit is de output, kan iemand mij vertellen wat
> ik moet doen om dit te fixen ?

Ik weet niet of het helpt maar misschien is het mogelijk om het hele pad
naar python24 mee te geven.
En anders kijk eens naar 'echo PATH' 'export PATH' en 'printenv PATH',
misschien kunnen die je helpen, zodat er ook naar python24 wordt
gekeken.

Groet, Dieter.



--
Ubuntu-NL mailing list
Ubuntu-NL@...
Info/Uitschrijven: https://lists.ubuntu.com/mailman/listinfo/ubuntu-nl

Re: python

by Jan Claeys-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Op donderdag 08-10-2009 om 09:17 uur [tijdzone +0200], schreef Y P:
> als ik python2.4-minimal installeer (op voorwaarde dat Guppy, de prog
> die enkel met py2.4 compatibel is), gaat die niet py2.5 willen
> verdriven ?

Je kan alle python-versies (in jaunty tel ik er momenteel minstens 6)
naast elkaar installeren, geen probleem.


--
Jan Claeys


--
Ubuntu-NL mailing list
Ubuntu-NL@...
Info/Uitschrijven: https://lists.ubuntu.com/mailman/listinfo/ubuntu-nl

Re: python

by Jan Claeys-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Op donderdag 08-10-2009 om 11:30 uur [tijdzone +0200], schreef YP:
> #!/usr/bin/python

De standaard python in jaunty is versie 2.6, dus die eerste lijn van het
script moet het volgende worden om versie 2.4 te gebruiken:

#!/usr/bin/python2.4



--
Jan Claeys


--
Ubuntu-NL mailing list
Ubuntu-NL@...
Info/Uitschrijven: https://lists.ubuntu.com/mailman/listinfo/ubuntu-nl

Re: python

by Y P-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ieps Jan:

On Fri, Oct 09, 2009 at 10:20:29AM +0200, Jan Claeys wrote:
> Op donderdag 08-10-2009 om 09:17 uur [tijdzone +0200], schreef Y P:
> > als ik python2.4-minimal installeer (op voorwaarde dat Guppy, de prog
> > die enkel met py2.4 compatibel is), gaat die niet py2.5 willen
> > verdriven ?
>
> Je kan alle python-versies (in jaunty tel ik er momenteel minstens 6)
> naast elkaar installeren, geen probleem.

Het probleem dat ik had, was dat je op een hardy WEL py2.4 kan toevoegen,
maar niet 2.6, tenzij backport URL vermoed ik, maar da weeet ik nie hoe ik
het nog moet doen ... en of ik het doe (ik heb geleered dat backports een
slechte oplossing zijn voor de stabiliteit van een systeem...).

Tweede probleem was dat de oude verie van het tool dat ik nodig had, guppy,
problemen geeft of je nu py2.5 of 2.4 heb, en dan moet je de kop van je
script aanpassen + symlink verwijzing, kortom weeral in de motor ! en ik die
niets afweet van Python...

Daarom heb ik het anders aangepakt, met het tool puppy die in commandline
runt,
en nu dus ook mits scriptje, wat de zaak veel vergemakkelijkt:
        http://blinuxman.net/blinux/getatoppy.tar.gz

Nog dit:
er is een python-all pakket beschikbaar, dient het niet om ze allen naar één
te smelten/linken ? zou dat het probleem van de symlinks etc kunnen opgelost
hebben ?


Thnx,

Y P

--
Ubuntu-NL mailing list
Ubuntu-NL@...
Info/Uitschrijven: https://lists.ubuntu.com/mailman/listinfo/ubuntu-nl