This One I really don't know what it happens cause I'm not familiar with the module that loads the ui, but the problem is that the ui file in Archlinux is placed in '/usr/share/girlook/girlook.ui' instead of '/usr/lib/python2.7/site-packages/share/girlook/ui/girlook.ui'
Traceback (most recent call last):
File "/usr/bin/girlook", line 31, in <module>
text = resource_string(Requirement.parse("girlook"), fullname)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 882, in resource_string
self, resource_name
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1155, in get_resource_string
return self._get(self._fn(self.module_path, resource_name))
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1282, in _get
stream = open(path, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/site-packages/share/girlook/ui/girlook.ui'
=====================
I'm using these versions:
python2 -> vPython 2.7.1
python2-distribute -> v0.6.16 (which in arch provides setuptools v0.6c11)
python-lxml -> 2.3
pygoject -> v2.28.4
And Archlinux x86_64 up-to-date
search parent dirs to find share/girlook directory.
Thanks for the bug reports.
Setuptools really screwed us on data_files. Everyone has to invent their own ways to locate data_files.
Please try the attached patch.
I tried the patch and It didn't work. I didn't know why patch keep telling me the patch to setup.py cannot be applied
Anyway, I read it and Applied by hand
I installed it next and now I got this error:
=========================
Traceback (most recent call last):
File "/usr/bin/girlook", line 40, in <module>
ui_fname = os.path.join(data_dir, fname)
NameError: name 'fname' is not defined
=========================
That was an exception jumping and then in the catch you don't see the fname definition, don't know why.
I added the girlook import after the except and then this other line nefore the call of fname:
=============== changes ================
from girlook import util,girlook
fname = girlook.UI_FNAME
=============== changes ================
And then it worked fine after fixed some permissions issues in '/usr/share/girlook/ui/girlook.ui' which get installed without reading permissions.
That last thing I don't know if is a setuptool issue or something else. I can add that to the package for archlinux aur.
This time it seems that the pkg_resources failed to import. Anyway, I moved relatived declaration out of the try statement.
I have no idea on the permission problem. Now I just force everything world readable before package it.
I uploaded a new tar ball versioned 0.1.2pre1. Hopefully, I can release 0.1.2 soon so that users can actually use it. :)
Thanks.
by the way, pkg_resource is include in the python-pkg-resources package on debian based system.