Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

python (scratchbox)

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


felipe at crochik

Apr 13, 2011, 6:34 AM

Post #1 of 6 (312 views)
Permalink
python (scratchbox)

I am trying to build a new version of telepathy-qt4 on scratchbox for maemo5
but having a "silly" problem. I need the "device python" and not the
scratchbox tools python.



I can see a symbolic link "python -> python2.5" on "/usr/bin"



If I type "/usr/bin/python" I get python version 2.3.4:

[sbox-FREMANTLE_ARMEL: /usr/bin] > /usr/bin/python

Python 2.3.4 (#1, Aug 24 2009, 16:32:34)



[sbox-FREMANTLE_ARMEL: /usr/bin] > python

Python 2.3.4 (#1, Aug 24 2009, 16:32:34)



If I cd into "/usr/bin" and then type "./python" I get version 2.5:



[sbox-FREMANTLE_ARMEL: /usr/bin] > ./python

Python 2.5.4 (r254:67916, May 17 2010, 21:00:32)



"type python" returns "python is hashed (/scratchbox/tools/bin/python)":

[sbox-FREMANTLE_ARMEL: /usr/bin] > type python

python is hashed (/scratchbox/tools/bin/python)



My PATH:

[sbox-FREMANTLE_ARMEL: /usr/bin] > echo $PATH

/host_usr/bin:/scratchbox/devkits/git/bin:/scratchbox/devkits/svn/bin:/scrat
chbox/devkits/doctools/bin:/scratchbox/devkits/qemu/bin:/scratchbox/devkits/
debian-etch/bin:/scratchbox/devkits/perl/bin:/scratchbox/tools/bin:/targets/
links/arch_tools/bin:/scratchbox/compilers/bin:/bin:/usr/bin:/usr/local/bin:
/usr/X11R6/bin:/sbin:/usr/sbin



I need python2.5 to be able to build telepathy qt4. Where am I missing?



Thanks,

Felipe


reply at esque

Apr 13, 2011, 7:16 AM

Post #2 of 6 (286 views)
Permalink
Re: python (scratchbox) [In reply to]

Apart from missing telepathy-glib, during cmake...

-- Found PythonInterp: /targets/FREMANTLE_ARMEL/usr/bin/python2.5
-- Found Python executable: /targets/FREMANTLE_ARMEL/usr/bin/python2.5
-- Found Python version: 2.5.4
-- Python 2.5 found

I seem to have the same symlink to 2.3.5 in /usr/bin/ but I may have
manually moved on to point to 2.5 during a previous build.

- Simon

On Wed, Apr 13, 2011 at 9:34 AM, Felipe Crochik <felipe [at] crochik> wrote:

> I am trying to build a new version of telepathy-qt4 on scratchbox for
> maemo5 but having a “silly” problem. I need the “device python” and not the
> scratchbox tools python.
>
>
>
> I can see a symbolic link “python -> python2.5” on “/usr/bin”
>
>
>
> If I type “/usr/bin/python” I get python version 2.3.4:
>
> [sbox-FREMANTLE_ARMEL: /usr/bin] > /usr/bin/python
>
> Python 2.3.4 (#1, Aug 24 2009, 16:32:34)
>
>
>
> [sbox-FREMANTLE_ARMEL: /usr/bin] > python
>
> Python 2.3.4 (#1, Aug 24 2009, 16:32:34)
>
>
>
> If I cd into “/usr/bin” and then type “./python” I get version 2.5:
>
>
>
> [sbox-FREMANTLE_ARMEL: /usr/bin] > ./python
>
> Python 2.5.4 (r254:67916, May 17 2010, 21:00:32)
>
>
>
> “type python” returns “python is hashed (/scratchbox/tools/bin/python)”:
>
> [sbox-FREMANTLE_ARMEL: /usr/bin] > type python
>
> python is hashed (/scratchbox/tools/bin/python)
>
>
>
> My PATH:
>
> [sbox-FREMANTLE_ARMEL: /usr/bin] > echo $PATH
>
>
> /host_usr/bin:/scratchbox/devkits/git/bin:/scratchbox/devkits/svn/bin:/scratchbox/devkits/doctools/bin:/scratchbox/devkits/qemu/bin:/scratchbox/devkits/debian-etch/bin:/scratchbox/devkits/perl/bin:/scratchbox/tools/bin:/targets/links/arch_tools/bin:/scratchbox/compilers/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/sbin:/usr/sbin
>
>
>
> I need python2.5 to be able to build telepathy qt4. Where am I missing?
>
>
>
> Thanks,
>
> Felipe
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>


felipe at crochik

Apr 13, 2011, 8:14 AM

Post #3 of 6 (288 views)
Permalink
RE: python (scratchbox) [In reply to]

Simon,
Thank you again!

The "trick" allowed me to use the python on the "/usr/bin" folder but now I
think that this may not be the "real" issue.



I am trying to compile telepathy-qt4-0.5.15 on scratchbox for maemo5 and I
am getting this error:



[sbox-FREMANTLE_ARMEL: ~/projects/n900/telepathy-qt4-0.5.15/build] > make

[ 1%] Built target future-ifaces-includator

[ 1%] Built target future-constants

[ 1%] Generating _gen/future-types.h, _gen/future-types-body.hpp

/home/felipe/projects/n900/telepathy-qt4-0.5.15/tools/qt4-types-gen.py:554:
Warning: 'as' will become a reserved keyword in Python 2.6

File
"/home/felipe/projects/n900/telepathy-qt4-0.5.15/tools/qt4-types-gen.py",
line 554

except BrokenSpecException as e:

^

SyntaxError: invalid syntax

make[2]: *** [TelepathyQt4/_gen/future-types.h] Error 1

make[1]: *** [TelepathyQt4/CMakeFiles/future-typesgen.dir/all] Error 2

make: *** [all] Error 2



Maybe is (and was) actually using the python 2.5.4 and the error is due to
some other problem.



Any ideas?



Thanks,

Felipe



_____

From: Simon La Rose [mailto:simon [at] esque]
Sent: Wednesday, April 13, 2011 10:42 AM
To: Felipe Crochik
Cc: maemo-developers [at] maemo
Subject: Re: python (scratchbox)



It works differently, how, I am not sure.



http://www.mail-archive.com/scratchbox-users [at] lists/msg00977.h
tml




<http://www.mail-archive.com/scratchbox-users [at] lists/msg00977.
html> and the last entry at http://wiki.maemo.org/PyMaemo/FAQ may provide an
answer.



- Simon


reply at esque

Apr 13, 2011, 8:25 AM

Post #4 of 6 (298 views)
Permalink
Re: python (scratchbox) [In reply to]

Drop into tools/qt4-types-gen.py and change the "as" into a ","

See changes;

Generator(dict(options))()
except BrokenSpecException, e:
print >> sys.stderr, 'Your spec is broken, dear developer! %s' % e
sys.exit(42)

- Simon

On Wed, Apr 13, 2011 at 11:14 AM, Felipe Crochik <felipe [at] crochik> wrote:

> Simon,
> Thank you again!
>
> The “trick” allowed me to use the python on the “/usr/bin” folder but now I
> think that this may not be the “real” issue.
>
>
>
> I am trying to compile telepathy-qt4-0.5.15 on scratchbox for maemo5 and I
> am getting this error:
>
>
>
> [sbox-FREMANTLE_ARMEL: ~/projects/n900/telepathy-qt4-0.5.15/build] > make
>
> [ 1%] Built target future-ifaces-includator
>
> [ 1%] Built target future-constants
>
> [ 1%] Generating _gen/future-types.h, _gen/future-types-body.hpp
>
> /home/felipe/projects/n900/telepathy-qt4-0.5.15/tools/qt4-types-gen.py:554:
> Warning: 'as' will become a reserved keyword in Python 2.6
>
> File
> "/home/felipe/projects/n900/telepathy-qt4-0.5.15/tools/qt4-types-gen.py",
> line 554
>
> except BrokenSpecException as e:
>
> ^
>
> SyntaxError: invalid syntax
>
> make[2]: *** [TelepathyQt4/_gen/future-types.h] Error 1
>
> make[1]: *** [TelepathyQt4/CMakeFiles/future-typesgen.dir/all] Error 2
>
> make: *** [all] Error 2
>
>
>
> Maybe is (and was) actually using the python 2.5.4 and the error is due to
> some other problem.
>
>
>
> Any ideas?
>
>
>
> Thanks,
>
> Felipe
>
>
> ------------------------------
>
> *From:* Simon La Rose [mailto:simon [at] esque]
> *Sent:* Wednesday, April 13, 2011 10:42 AM
>
> *To:* Felipe Crochik
> *Cc:* maemo-developers [at] maemo
> *Subject:* Re: python (scratchbox)
>
>
>
> It works differently, how, I am not sure.
>
>
>
>
> http://www.mail-archive.com/scratchbox-users [at] lists/msg00977.html
>
>
>
>
> <http://www.mail-archive.com/scratchbox-users [at] lists/msg00977.html>and
> the last entry at http://wiki.maemo.org/PyMaemo/FAQ may provide an answer.
>
>
>
> - Simon
>
>
>


felipe at crochik

Apr 13, 2011, 9:23 AM

Post #5 of 6 (279 views)
Permalink
RE: python (scratchbox) [In reply to]

Simon,

You are the man!

I was able to build it. Packaging and making it build on the autobuilder, of
course, is a much greater challenge!

For not it gives me the answer I was looking for.

Thank you again,

Felipe



_____

From: simon [at] esque [mailto:simon [at] esque] On Behalf Of Simon
Sent: Wednesday, April 13, 2011 11:25 AM
To: Felipe Crochik
Cc: maemo-developers [at] maemo
Subject: Re: python (scratchbox)



Drop into tools/qt4-types-gen.py and change the "as" into a ","



See changes;



Generator(dict(options))()

except BrokenSpecException, e:

print >> sys.stderr, 'Your spec is broken, dear developer! %s' % e

sys.exit(42)



- Simon


reply at esque

Apr 13, 2011, 9:27 AM

Post #6 of 6 (288 views)
Permalink
Re: python (scratchbox) [In reply to]

Happy to help out if it means a fix for Telepathy/Pecan+MSNP16-MPOP and I
can re-integrate the libpurple-prpltwtr OAuth Twitter plugin into
Conversations.

- Simon

On Wed, Apr 13, 2011 at 12:23 PM, Felipe Crochik <felipe [at] crochik> wrote:

> Simon,
>
> You are the man!
>
> I was able to build it. Packaging and making it build on the autobuilder,
> of course, is a much greater challenge!
>
> For not it gives me the answer I was looking for.
>
> Thank you again,
>
> Felipe
>
>
> ------------------------------
>
> *From:* simon [at] esque [mailto:simon [at] esque] *On Behalf Of *Simon
> *Sent:* Wednesday, April 13, 2011 11:25 AM
>
> *To:* Felipe Crochik
> *Cc:* maemo-developers [at] maemo
> *Subject:* Re: python (scratchbox)
>
>
>
> Drop into tools/qt4-types-gen.py and change the "as" into a ","
>
>
>
> See changes;
>
>
>
> Generator(dict(options))()
>
> except BrokenSpecException, e:
>
> print >> sys.stderr, 'Your spec is broken, dear developer! %s' % e
>
> sys.exit(42)
>
>
>
> - Simon
>

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.