Pandora Problem compiling to PND (Twitter Client) ! Help!


ekianjo

Hardcore Member
Joined
May 7, 2012
Messages
8,261
Location
神戸市、日本 (Japan)
Hello everyone,


I have "ported" (well it hardly needed any adaptation I hesitate to use the word) a Twitter client with GUI in python.When I run it from the terminal, it works perfectly.


However, i tried to package it as a PND, and it does not even appear in the list of programs under "Network".


It is the first time I am compiling a PND (I used pnd_make.sh in command line and it did not return any error except that it told me that my PXML is not validated following the scheme) and I'd like to understand where to look for the issue...


Any ideas? Let me know what kind of info you need from me for this.


The sooner this is is fixed, the sooner I can put it on the repo for everyone.
 
Last edited by a moderator:
I tried to generate my PND with this software, but no success either...


1) Is it acceptable to have a command in the PXML.xml such as "python main.py" ? Or should it be "python" as the command, and "main.py" set as argument? I am not sure...


2) What would cause the PND not to appear in the menu ? I checked my PXML file again and again and I could not find any specific error...
 
How did you create the PND ?


may we see that PXML file ?

I created the PND with the command line tool in Linux.


Here is the PXML file :



Code:
<?xml version="1.0" encoding="UTF-8"?>

<!-- This is a sample PXML.xml file making use of many different things.-->

<PXML xmlns="http://openpandora.org/namespaces/PXML">

  <package id="pytwitterclient.hunziker.ekianjo.1.0.0">

    <version major="1" minor="0" release="1" build="1" type="alpha"/>

    <author name="ekianjo" website="http://www.openpandora.org"/>

    <titles>

	  <title lang="en_US">PyTwitterClient</title>

	  <title lang="de_DE">PyTwitterClient</title>

    </titles>

    <descriptions>

	  <description lang="en_US">This is twitter client (in python) originally written by Manuel Hunziker (available on github). Icon by Arrioch (Creative Commons License).</description>

	  <description lang="de_DE"></description>

    </descriptions>

    <icon src="Twitter.png"/>

  </package>


  <application id="pytwitterclient.hunziker.ekianjo.1.0.0" appdata="pytwitterclient">

    <exec background="true" standalone="true" command="python main.py"/>

    <version major="1" minor="1" release="1" build="1" type="release"/> <!--This program's version-->

    <osversion major="1" minor="0" release="0" build="0"/> <!--The minimum OS version required-->

    <author name="Ekianjo" website="http://www.openpandora.org"/> <!--Optional email and website, name required-->

    <titles>

	  <title lang="en_US">PyTwitterClient</title>

	  <title lang="de_DE">PyTwitterClient</title>

    </titles>

    <title lang="en_US">PyTwitterClient</title> <!--Extra <title> block for compatibility with OS versions before HF6-->

    <descriptions>

	  <description lang="en_US">This is twitter client (in python) originally written by Manuel Hunziker (available on github). Icon by Arrioch (Creative Commons License).</description>

	  <description lang="de_DE"></description>

    </descriptions>

    <description lang="en_US">This is twitter client (in python) originally written by Manuel Hunziker (available on github). Icon by Arrioch (Creative Commons License).</description> <!--Extra <description> block for compatibility with OS versions before HF6-->

    <icon src="Twitter.png"/>

    <licenses>

	  <license name="GPLv2+" url="http://www.gnu.org/licenses/gpl-2.0.html" sourcecodeurl="http://openpandora.org/sources/package.tar.bz2"/><!--Optional url and sourcecodeurl, mandatory name-->

    </licenses>

    <previewpics>

	  <pic src="./preview/pic1.jpg"/>

	  <pic src="./preview/pic2.jpg"/>

    </previewpics>

    <info name="Readme" type="text/html" src="readme.html"/>

    <!--the categories has to conform to the FDO categories, those will be enforced by the schema and libpnd!-->

    <categories>

	  <category name="Network"><!--Main category: a category like "Game", "Graphics", "Network", etc-->

	    <subcategory name="Twitter"/><!--Subcategory 1: a subcategory, like "BoardGame", "StrategyGame", "ActionGame"-->  

	  </category>


    </categories>

    <associations>

    </associations>

    <clockspeed frequency="600"/><!--Frequency in Hz-->

  </application>

</PXML>
 
Does this version seem better?



Code:
<PXML xmlns="http://openpandora.org/namespaces/PXML">

<package id="pytwitterclient.hunziker.ekianjo.1.0.0">

<version major="1" minor="0" release="1" build="1" type="alpha"/>

<author name="ekianjo" website="http://www.openpandora.org" email=""/>

<titles>

<title lang="en_US">PyTwitterClient</title>

</titles>

<descriptions>

<description lang="en_US">This is twitter client (in python) originally written by Manuel Hunziker (available on github). Icon by Arrioch (Creative Commons License).</description>

<icon src="Twitter.png"/>

</package>

<application id="pytwitterclient.hunziker.ekianjo.1.0.0" appdata="pytwitterclient">

<exec background="true" standalone="true" command="python main.py" arguments="" startdir="" x11=""/>

<version major="1" minor="1" release="1" build="1" type="release"/><!--This program's version-->

<osversion major="1" minor="0" release="0" build="0"/><!--The minimum OS version required-->

<author name="Ekianjo" website="http://www.openpandora.org" email=""/>

<!--Optional email and website, name required-->

<titles>

<title lang="en_US">PyTwitterClient</title></titles>

<title lang="en_US">PyTwitterClient</title><!--Extra <title> block for compatibility with OS versions before HF6-->

<descriptions>

<description lang="en_US">This is twitter client (in python) originally written by Manuel Hunziker (available on github). Icon by Arrioch (Creative Commons License).</description></descriptions>

<description lang="en_US">This is a twitter client (in python) originally written by Manuel Hunziker (available on github). Icon by Arrioch (Creative Commons License).</description>

<!--Extra <description> block for compatibility with OS versions before HF6--><icon src=""/>

<licenses>

<license name="GPLv2+" url="http://www.gnu.org/licenses/gpl-2.0.html" sourcecodeurl="http://openpandora.org/sources/package.tar.bz2"/>

<!--Optional url and sourcecodeurl, mandatory name-->

</licenses>

<info name="Readme" type="text/html" src="readme.html"/><!--the categories has to conform to the FDO categories, those will be enforced by the schema and libpnd!--><categories>

<category name="Network"><!--Main category: a category like "Game", "Graphics", "Network", etc--></category></categories>

</application>

</PXML>
 
Ok so remove your PND, reboot pandora, and check that pndnotfyd is there.


Then, recreate your PND with theses changes to the PXML :


1) remove theses useless germans lines


2) twitter is not a valid subcat, have a look here : http://standards.fre...latest/apa.html


3) remove these 2 associations lines


And put it back

Ok, some progress somehow.


I still do not see my PND listed in the applications, but at least I see pndnotifyd running now. It has not stopped.
 
1) Is it acceptable to have a command in the PXML.xml such as "python main.py" ? Or should it be "python" as the command, and "main.py" set as argument? I am not sure...
I usually put main.py as the command, put #!/usr/bin/python on the first line of the script and make the script executable with chmod +x main.py.


As a matter of style, whenever I am not the author of a program (e.g. I just performed a trivial port) then I credit the original author as application author and myself as only the package author. I am not entirely sure what the common convention is here, but in my opinion credit should be given where credit is due.


[edit]Nevermind, you properly credit the author in the description. Apologies for not reading through the PXML properly.[/edit]
 
Last edited by a moderator:
Does this version seem better?
sound good, how does that behave ?

Please see post 16 above. No progress but I am now trying what Caine proposed.

By the way does is there a size limit to the Icon you attach to the application ? I was wondering if that may be the reason why the app does not appear in the application list.
 
By the way does is there a size limit to the Icon you attach to the application ? I was wondering if that may be the reason why the app does not appear in the application list.
Hoo, that might be it.


Edit: No that's not it (just checked the libpnd sources )
 
Last edited by a moderator:
Back
Top