Distpnd
#16
Posted 07 March 2011 - 06:26 PM
#17
Posted 08 March 2011 - 03:58 AM
I figure it deserves its own post: I fixed distPND to no longer rely on run_setup. I found a hacky solution in this old mailing list thread; they all seem to agree that run_setup is generally poor and should be avoided. The latest commit in my develop branch has the fix, so reinstall distPND from there and RedNotebook will build.
Thanks so much, I will try it tonight
#18
Posted 08 June 2011 - 06:44 PM
I got the following:
Traceback (most recent call last):
File "setup.py", line 50, in <module>
from cx_Freeze import setup, Executable
ImportError: No module named cx_FreezeWhat did I do wrong?
#19
Posted 08 June 2011 - 10:19 PM
It looks like this setup script you have expects to find cx_Freeze, used to turn Python scripts into standalone executables. A potential solution is just to install cx_Freeze in the same manner you installed distPND: just download and unpack the cx_Freeze source, navigate to its directory, and run "python setup.py install". But if that isn't enough to get your PND working, direct me to the program you're trying to port. Then I can take a look at its setup script to see what other tricks it might be trying to pull.
Good luck!
#20
Posted 08 June 2011 - 11:26 PM
There seem to be some errors at the end, concerning arm-angstrom-linux-gnueabi-gcc.
The program still acts like it's not installed (I'll say what program it is if I get really stuck; I'm just trying to motivate myself to learn how this coding stuff works first).
#21
Posted 09 June 2011 - 01:13 AM
But it might be easier to just modify the setup script so that it doesn't it doesn't bother compiling with cx_Freeze. The Python scripts should be able to run without compilation, though they might be faster when compiled. I'm not sure exactly what would need to be changed; the "from cx_Freeze import..." line will need to be replaced with "from distutils.core import setup", and there is probably a line starting with "executables = ..." that would need to be replaced with "scripts = ...". But if you're not familiar with distutils or Python, this might be a challenge, depending on how complicated the setup script is.
But I'd still like to look at the code of the program you're porting so I can figure out why they had to use cx_Freeze, and if there's anything I need to change about distPND to work with it. I promise I won't offer any assistance unless you ask
#22
Posted 09 June 2011 - 03:35 AM
If you do manage to get things to work, please tell me what you did, so I can use the info for next time!
The program is called EasyABC; it's a musical notation program that uses the text-based notation from http://abcnotation.com
Here are the contents of its setup.py file:
Edited by Esn, 09 June 2011 - 03:40 AM.
#23
Posted 09 June 2011 - 04:43 PM
If you're intent on turning this into a PND, first make sure you can get it running on your Pandora as-is. Then, for purposes of being thorough and learning, try manually assembling it (and its dependencies) into a PND. Only after that would it be a good idea to try to modify setup.py to use distPND.
#24
Posted 09 June 2011 - 08:26 PM
#25
Posted 10 June 2011 - 05:25 PM
First, getting the dependencies working simply requires looking over their sites to find instructions on how to build and install. You'll need standard development tools (like a compiler) to make that happen. Check around the boards and wiki to find out how to get that installed on your Pandora (and I hope you're booting from SD to fit it all). It looks like abcm2ps follows the common "./configure; make; make install" pattern (this seems like some straightforward info on that), while wxPython has its own build script. Getting these working will probably be the trickiest part.
Second, running EasyABC without installing should be really simple. As long as the dependencies are installed, you can follow the instructions in using_EasyABC_in_Linux.txt, which basically boils down to running "python easy_abc.py" from inside its source directory. If errors appear, I expect them to be caused by issues with the dependencies; read those errors to figure out what might be wrong with them.
Third, making a PND from working software isn't too difficult. Everything you need to know is on the wiki (PND quickstart says most of what you need to know, you might need to look over the PXML spec, and the libpnd hub contains a lot more detail that you probably won't need just yet). The process mainly involves putting all the files you need (including dependencies and a PXML) into a folder, then running pnd_make.sh on that folder. Of course, if you have any trouble on this step, lots of people in this forum can help.
But if you'd rather just package up something quickly and painlessly, a lot of software on the Python Package Index should work with distPND with almost no problem at all. Maybe you can find an interesting game there.
#26
Posted 12 June 2011 - 02:49 AM











