Oops, yes I broke the translations in the about dialog. Sorry. I've fixed that now. The reason for that change is because I get this when I try to build it on oneiric:
cd . && \
python2.6 setup.py clean \
-a
running clean
'build/lib.linux-x86_64-2.6' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.6' does not exist -- can't clean it
WARNING: the following files are not recognized by DistUtilsExtra.auto:
Copyright
lernid.desktop.in
po/lernid.pot
rm -rf debian/python-module-stampdir
find "/home/chr1s/src/lernid/lernid" -name '*.py[co]' -delete
find "/home/chr1s/src/lernid/lernid" -name __pycache__ -type d -empty -delete
find "/home/chr1s/src/lernid/lernid" -prune -name '*.egg-info' -exec rm -rf '{}' ';'
debian/rules build
test -x debian/rules
mkdir -p "."
mkdir -p debian/python-module-stampdir
cd . && \
python2.6 setup.py build \
--build-base="/home/chr1s/src/lernid/lernid/./build"
/usr/lib/python2.6/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
ERROR: Python module lernid.CouchDBPreferences not found
Traceback (most recent call last):
File "setup.py", line 86, in <module>
'install': InstallAndUpdateDataDirectory
File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 96, in setup
__requires(attrs, src_all)
File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 414, in __requires
__add_imports(imports, s, attrs)
File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 361, in __add_imports
if __external_mod(cur_module, node.module, attrs):
File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 315, in __external_mod
mod = __import__(module)
File "/home/chr1s/src/lernid/lernid/lernid/LernidOptions.py", line 23, in <module>
from lernid.lernidconfig import VERSION
File "/home/chr1s/src/lernid/lernid/lernid/lernidconfig.py", line 33, in <module>
DESCRIPTION = _('Connect to a world of online tutorials quickly and easily.')
NameError: name '_' is not defined
make: *** [debian/python-module-stampdir/lernid] Error 1
Also, the GdkCursor change is required to fix this issue (also at build time), which occurs because there is no DISPLAY:
cd . && \
python setup.py build \
--build-base="/home/chr1s/src/lernid/lernid/./build"
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
/home/chr1s/src/lernid/lernid/lernid/widgets/IrcWidget.py:33: GtkWarning: IA__gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY (display)' failed
hand_cursor = gtk.gdk.Cursor(gtk.gdk.HAND2)
Traceback (most recent call last):
File "setup.py", line 86, in <module>
'install': InstallAndUpdateDataDirectory
File "/usr/lib/python2.7/dist-packages/DistUtilsExtra/auto.py", line 96, in setup
__requires(attrs, src_all)
File "/usr/lib/python2.7/dist-packages/DistUtilsExtra/auto.py", line 414, in __requires
__add_imports(imports, s, attrs)
File "/usr/lib/python2.7/dist-packages/DistUtilsExtra/auto.py", line 361, in __add_imports
if __external_mod(cur_module, node.module, attrs):
File "/usr/lib/python2.7/dist-packages/DistUtilsExtra/auto.py", line 315, in __external_mod
mod = __import__(module)
File "/home/chr1s/src/lernid/lernid/lernid/widgets/IrcWidget.py", line 31, in <module>
class IrcWidget(Widget):
File "/home/chr1s/src/lernid/lernid/lernid/widgets/IrcWidget.py", line 33, in IrcWidget
hand_cursor = gtk.gdk.Cursor(gtk.gdk.HAND2)
RuntimeError: could not create GdkCursor object
I'm planning to drop xulrunner before alpha 2, and I'm going to start filing removal requests next week for applications which aren't ready, so I'd prefer to get this in ASAP
Oops, yes I broke the translations in the about dialog. Sorry. I've fixed that now. The reason for that change is because I get this when I try to build it on oneiric:
cd . && \ lib.linux- x86_64- 2.6' does not exist -- can't clean it bdist.linux- x86_64' does not exist -- can't clean it auto: python- module- stampdir chr1s/src/ lernid/ lernid" -name '*.py[co]' -delete chr1s/src/ lernid/ lernid" -name __pycache__ -type d -empty -delete chr1s/src/ lernid/ lernid" -prune -name '*.egg-info' -exec rm -rf '{}' ';' python- module- stampdir base="/ home/chr1s/ src/lernid/ lernid/ ./build" python2. 6/dist- packages/ gtk-2.0/ gtk/__init_ _.py:57: GtkWarning: could not open display warn(str( e), _gtk.Warning) CouchDBPreferen ces not found eDataDirectory python2. 6/dist- packages/ DistUtilsExtra/ auto.py" , line 96, in setup attrs, src_all) python2. 6/dist- packages/ DistUtilsExtra/ auto.py" , line 414, in __requires imports( imports, s, attrs) python2. 6/dist- packages/ DistUtilsExtra/ auto.py" , line 361, in __add_imports mod(cur_ module, node.module, attrs): python2. 6/dist- packages/ DistUtilsExtra/ auto.py" , line 315, in __external_mod chr1s/src/ lernid/ lernid/ lernid/ LernidOptions. py", line 23, in <module> chr1s/src/ lernid/ lernid/ lernid/ lernidconfig. py", line 33, in <module> python- module- stampdir/ lernid] Error 1
python2.6 setup.py clean \
-a
running clean
'build/
'build/
'build/scripts-2.6' does not exist -- can't clean it
WARNING: the following files are not recognized by DistUtilsExtra.
Copyright
lernid.desktop.in
po/lernid.pot
rm -rf debian/
find "/home/
find "/home/
find "/home/
debian/rules build
test -x debian/rules
mkdir -p "."
mkdir -p debian/
cd . && \
python2.6 setup.py build \
--build-
/usr/lib/
warnings.
ERROR: Python module lernid.
Traceback (most recent call last):
File "setup.py", line 86, in <module>
'install': InstallAndUpdat
File "/usr/lib/
__requires(
File "/usr/lib/
__add_
File "/usr/lib/
if __external_
File "/usr/lib/
mod = __import__(module)
File "/home/
from lernid.lernidconfig import VERSION
File "/home/
DESCRIPTION = _('Connect to a world of online tutorials quickly and easily.')
NameError: name '_' is not defined
make: *** [debian/
Also, the GdkCursor change is required to fix this issue (also at build time), which occurs because there is no DISPLAY:
cd . && \ base="/ home/chr1s/ src/lernid/ lernid/ ./build" python2. 7/dist- packages/ gtk-2.0/ gtk/__init_ _.py:57: GtkWarning: could not open display warn(str( e), _gtk.Warning) src/lernid/ lernid/ lernid/ widgets/ IrcWidget. py:33: GtkWarning: IA__gdk_ cursor_ new_for_ display: assertion `GDK_IS_DISPLAY (display)' failed Cursor( gtk.gdk. HAND2) eDataDirectory python2. 7/dist- packages/ DistUtilsExtra/ auto.py" , line 96, in setup attrs, src_all) python2. 7/dist- packages/ DistUtilsExtra/ auto.py" , line 414, in __requires imports( imports, s, attrs) python2. 7/dist- packages/ DistUtilsExtra/ auto.py" , line 361, in __add_imports mod(cur_ module, node.module, attrs): python2. 7/dist- packages/ DistUtilsExtra/ auto.py" , line 315, in __external_mod chr1s/src/ lernid/ lernid/ lernid/ widgets/ IrcWidget. py", line 31, in <module> chr1s/src/ lernid/ lernid/ lernid/ widgets/ IrcWidget. py", line 33, in IrcWidget Cursor( gtk.gdk. HAND2)
python setup.py build \
--build-
/usr/lib/
warnings.
/home/chr1s/
hand_cursor = gtk.gdk.
Traceback (most recent call last):
File "setup.py", line 86, in <module>
'install': InstallAndUpdat
File "/usr/lib/
__requires(
File "/usr/lib/
__add_
File "/usr/lib/
if __external_
File "/usr/lib/
mod = __import__(module)
File "/home/
class IrcWidget(Widget):
File "/home/
hand_cursor = gtk.gdk.
RuntimeError: could not create GdkCursor object
I'm planning to drop xulrunner before alpha 2, and I'm going to start filing removal requests next week for applications which aren't ready, so I'd prefer to get this in ASAP
(for reference, see https:/ /lists. ubuntu. com/archives/ ubuntu- devel/2011- June/033476. html)