Comment #3 on issue 2885 by [email protected]: GUB currently fails to create tarballs
http://code.google.com/p/lilypond/issues/detail?id=2885

Traceback (most recent call last):
   File "gub/repository.py", line 42, in ?
     from gub import misc

The above tries to import module misc located at gub/misc.

   File "bin/../gub/misc.py", line 10, in ?
     import urllib2
File "/home/gub/gub/target/tools/root/usr/lib/python2.4/urllib2.py", line 108, in ?
     import cookielib

Both of the above are imports of standard library modules.

File "/home/gub/gub/target/tools/root/usr/lib/python2.4/cookielib.py", line 28, in ?
     import sys, re, urlparse, copy, time, urllib, logging

Now comes the interesting part: These are all standard library modules, again, but...

   File "bin/../gub/logging.py", line 5, in ?
     from gub import misc
ImportError: cannot import name misc

...apparently python prefers and tries to import logging located at gub/logging.

So the problem appears to be that the file gub/logging.py shadows the standard library logging module. Perhaps the fix is to rename gub/logging.py to something that doesn't clash, as suggested in the FIXME in lilypond.make.


Reply via email to