Active Topics

 


Reply
Thread Tools
EIPI's Avatar
Posts: 794 | Thanked: 784 times | Joined on Sep 2007 @ /Canada/Ontario/GTA
#1
I am trying to package an application, and am running into some difficulties using PyPackager. It worked for me a few months ago, but I have now updated my Scratchbox to PR1.2.

PyPackager gives the following error:
Code:
Traceback (most recent call last):
  File "make.py", line 48, in <module>
    print p.generate(build_binary=True,build_src=False)
  File "/usr/lib/python2.5/site-packages/pypackager.py", line 140, in generate
    self.generate_binary()
  File "/usr/lib/python2.5/site-packages/pypackager.py", line 170, in generate_binary
    open(self.name+'_'+self.version+'-'+self.buildversion+'_'+self.arch+ '.deb',"wb").write(theMaemoPackage.packed())
  File "/usr/lib/python2.5/site-packages/ppkg_debfile.py", line 144, in packed
    theDeb.files.append(self._getDataFiles())
  File "/usr/lib/python2.5/site-packages/ppkg_debfile.py", line 244, in _getDataFiles
    tarinfo = tarOutput.gettarinfo(os.path.join(CURRENT), path)
  File "/usr/lib/python2.5/tarfile.py", line 1333, in gettarinfo
    statres = os.lstat(name)
OSError: [Errno 2] No such file or directory: ''
As I am a novice in this area, I may be overlooking something basic. I will provide more information if required.
__________________
Mobile Tablets Blog
Follow me on
Twitter

 
Posts: 402 | Thanked: 229 times | Joined on Nov 2009 @ Missouri, USA
#2
Please post your make.py. The error message out of context isn't very helpful.

Seems to suggest that wherever "self.name_self.version-self.buildversion_self.arch.deb" points to doesn't exist.

I would suspect either a string concatenation error or that the deb is not beign properly generated, and as such can't be stat'd.
__________________
aspidites | blog | aspidites@inbox.com
 
EIPI's Avatar
Posts: 794 | Thanked: 784 times | Joined on Sep 2007 @ /Canada/Ontario/GTA
#3
Thanks for the reply. Here is the make.py file.
Attached Files
File Type: zip make.py.zip (1.1 KB, 94 views)
__________________
Mobile Tablets Blog
Follow me on
Twitter


Last edited by EIPI; 2010-05-23 at 02:54.
 
Posts: 402 | Thanked: 229 times | Joined on Nov 2009 @ Missouri, USA
#4
I'm not sure if the post/pre install scripts make since. Those files should be in your src directory. (/src/opt). That would also eliminate a dependency (wget).

Anyways, the directory function looks identical to the one on the py2deb page, so unless the src directory is empty (which imagine it is just because of your pre/post install code) then that could be why it is failing.
__________________
aspidites | blog | aspidites@inbox.com
 

The Following User Says Thank You to aspidites For This Useful Post:
EIPI's Avatar
Posts: 794 | Thanked: 784 times | Joined on Sep 2007 @ /Canada/Ontario/GTA
#5
The python files are all located within the /src/opt/ directory.

The dependancy on wget is there to retrieve a utility at installation time.

PyPackager creates the *.tar.gz file correctly, but the *.deb file it created is empty (0 bytes big). I am stumped, as this was working fine for me 2 months ago (the last time I packaged).
__________________
Mobile Tablets Blog
Follow me on
Twitter

 
Posts: 402 | Thanked: 229 times | Joined on Nov 2009 @ Missouri, USA
#6
Still no solution, but interesting bug report to note: https://bugs.maemo.org/show_bug.cgi?id=9894 by the developer himself.
__________________
aspidites | blog | aspidites@inbox.com
 
EIPI's Avatar
Posts: 794 | Thanked: 784 times | Joined on Sep 2007 @ /Canada/Ontario/GTA
#7
I saw the request to remove Khertan's packages from the maemo.org repos when I was searching the mailing lists for help. Unfortunate, but Khertan responded to an inquiry I made in relation to the packaging issues I had, and I found him to be very helpful.

In the end, I commented out the portion of my make.py file where the deb is being made by PyPackager, and went the route of using dpkg to build the final deb for uploading to extras-devel.
__________________
Mobile Tablets Blog
Follow me on
Twitter

 
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#8
Originally Posted by EIPI View Post
I saw the request to remove Khertan's packages from the maemo.org repos when I was searching the mailing lists for help. Unfortunate, but Khertan responded to an inquiry I made in relation to the packaging issues I had, and I found him to be very helpful.

In the end, I commented out the portion of my make.py file where the deb is being made by PyPackager, and went the route of using dpkg to build the final deb for uploading to extras-devel.
I ve stopped to publish my apps to extras and extras devel, but i still continue to do apps for maemo, i'm just publishing them to my own repository.

Anyway i still didn't got the time to understand why your make.py script didn't works. Sorry
 

The Following User Says Thank You to Khertan For This Useful Post:
mwerle's Avatar
Posts: 47 | Thanked: 28 times | Joined on Dec 2009 @ London, UK
#9
Hi,

Sorry to hijack this thread, but I've just run into exactly the same problem with my app. All I changed since my last successful build in my mkpkg.py script was to bump the version number.
The other big change of course is upgrading to PR1.2

Running mkpkg.py from the shell aborts with the same error as reported by EIPI. Interestingly enough, I tried running mkpkg.py from within PyGTKEditor and it successfully generated a .deb (although with incorrect installation paths).

Running from PyGTKEditor, the resulting deb tries to install the 'mwtube' file into '/usr/bin/data/mwtube', and not into '/usr/bin/mwtube' as expected.

Looks like PR1.2 broke this app, since I'm still using the same version of pypackger (3.0.15).

Cheers,
- Micha.
Attached Files
File Type: zip mkpkg.py.zip (1.1 KB, 84 views)
__________________
My apps: mwTube
 
mwerle's Avatar
Posts: 47 | Thanked: 28 times | Joined on Dec 2009 @ London, UK
#10
Ended up hacking pypackager to package my file; posted bug-report on khertan.net.

http://khertan.net/flyspray/index.ph...d=29&project=3
__________________
My apps: mwTube
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:08.