WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: python-testing  (Read 14046 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: python-testing
« Reply #45 on: September 04, 2009, 09:57:20 PM »

Wifi-radar is one more pygtk app that would need rebuilding.


Will take care during the weekend.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: python-testing
« Reply #46 on: September 05, 2009, 04:36:19 AM »
Thanks.  In time I will split the python package from it's dev files like the one before as well.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: python-testing
« Reply #47 on: September 06, 2009, 09:53:04 AM »
I just rebuilt nicotine and will upload in a moment, but I noticed something that we need to do in order for python apps to work smoothly in the case of both versions of python being in the system at one time.  The python scripts that launch apps such as nicotine need their shebang to point to the right version of python and not just /usr/local/bin/python as they do by default.  Depending on the version of python the app uses, the line should read:

#!/usr/local/bin/python2.6         for the current python

#!/usr/local/bin/python2.5         for python-2.5.2


The symlink /usr/local/bin/python will use the version of python that gets installed first, so it is not what needs to get invoked.

I can go through the apps and see what needs to be adjusted and make the adjustments. 
« Last Edit: September 06, 2009, 09:57:32 AM by Jason W »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: python-testing
« Reply #48 on: September 06, 2009, 10:32:08 AM »

The symlink /usr/local/bin/python will use the version of python that gets installed first, so it is not what needs to get invoked.


I would suggest to remove the symlink (creation) from 2.5.2 extension and let 2.6.2 to create it. If an application need explicitly 2.5.2 lets change the application. All others will be fine with #!/usr/local/bin/python symlinked to #!/usr/local/bin/python2.6    
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: python-testing
« Reply #49 on: September 06, 2009, 10:59:56 AM »
That'll be better.  I will adjust the python-2.5.2 dependent apps and we can leave new ones alone.  And remove the /usr/local/bin/python file from the 2.5.2 extension.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: python-testing
« Reply #50 on: September 06, 2009, 12:10:11 PM »
/usr/local/bin/python has been removed from the python-2.5.2 package, and it's dependent apps that call on /usr/local/bin/python have been adjusted to /usr/local/bin/python2.5. 


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: python-testing
« Reply #51 on: September 07, 2009, 12:36:16 AM »

Wifi-radar is one more pygtk app that would need rebuilding.


Will take care during the weekend.

Tested wifi-radar with the current 2.6.2 Python and related programs in the repository. It works fine, no need to recompile.

The only issue is the missing pygtk.tcel/pygtk.tczl in the .dep files

Jason: may I ask you to fix it?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: python-testing
« Reply #52 on: September 07, 2009, 05:17:16 AM »
Sure.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: python-testing
« Reply #53 on: September 07, 2009, 09:33:19 AM »
also the pil extension needs to be rebuilt
dCore user

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14506
Re: python-testing
« Reply #54 on: September 07, 2009, 11:29:34 AM »
It's on the list once I re-build cups, hplip, etc...

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: python-testing
« Reply #55 on: September 07, 2009, 02:46:46 PM »
JLS-
Pil has had it's deps adjusted to python-2.5.2 and it's shebangs pointing to python2.5.  It works on my machine.  Have you tried deleting you existing pil extension in your tce directory and redownloading?  It should work.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: python-testing
« Reply #56 on: September 07, 2009, 03:44:12 PM »
I'm trying to see if a program called tucan works on tc, it needs pygtk and pil and other thinghs, u mean I have to install both python 2.5.2 and 2.6.2?
dCore user

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: python-testing
« Reply #57 on: September 07, 2009, 04:04:57 PM »
I got an error that says python cannot recognise the image format for
Code: [Select]
self.set_icon_from_file(cons.ICON_TUCAN)
/usr/local/share/tucan/media/tucan.svg 
dCore user

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: python-testing
« Reply #58 on: September 07, 2009, 04:06:38 PM »
Ok, I see the delimma.  In that case pil would need to be built against 2.6.2, which Juanito said he is working on.