...making Linux just a little more fun!
Ben Okopnik [ben at linuxgazette.net]
Hey, Pythoneers -
I've just installed the "unicode" package after finding out about it from Ren<a9>; it sounds like a very cool gadget, something I can really use... but it appears to be broken:
ben@Tyr:~$ unicode Traceback (most recent call last): File "/usr/bin/unicode", line 159, in ? out( "Making directory %s\n" % (HomeDir) ) File "/usr/bin/unicode", line 33, in out sys.stdout.write(i.encode(options.iocharset, 'replace')) NameError: global name 'options' is not definedLine 570 says
(options, args) = parser.parse_args()but even if I give it an arg like "-h", it still gives me the same error. Any suggestions for fixing it before I turn it in to the Ubuntu maintainers?
-- * Ben Okopnik * Editor-in-Chief, Linux Gazette * https://LinuxGazette.NET *
René Pfeiffer [lynx at luchs.at]
On Dec 28, 2007 at 1001 -0500, Ben Okopnik appeared and said:
> Hey, Pythoneers - > > I've just installed the "unicode" package after finding out about it > from René; it sounds like a very cool gadget, something I can really > use... but it appears to be broken:
I use it for a long time and I didn't even know that it was written in Python. Where did you get your version from? I use the one from the Debian releases, and the packaged version works just fine. Just for reference, can you try this version? https://web.luchs.at/support/unicode It's from my Debian Etch workstation.
> `` > ben@Tyr:~$ unicode > Traceback (most recent call last): > File "/usr/bin/unicode", line 159, in ? > out( "Making directory %s\n" % (HomeDir) ) > File "/usr/bin/unicode", line 33, in out > sys.stdout.write(i.encode(options.iocharset, 'replace')) > NameError: global name 'options' is not defined > '' > Line 570 says > `` > (options, args) =3D parser.parse_args() > '' > > but even if I give it an arg like "-h", it still gives me the same > error.
Maybe your Python misses a package (or a ritual sacrifice)...
> Any suggestions for fixing it before I turn it in to the Ubuntu > maintainers?
Ok, forget the question where you got your version of unicode from.
Best, René.
Ben Okopnik [ben at linuxgazette.net]
On Fri, Dec 28, 2007 at 11:58:13PM +0100, Ren<a9> Pfeiffer wrote:
> On Dec 28, 2007 at 1001 -0500, Ben Okopnik appeared and said: > > Hey, Pythoneers - > > > > I've just installed the "unicode" package after finding out about it > > from Ren<a9>; it sounds like a very cool gadget, something I can really > > use... but it appears to be broken: > > I use it for a long time and I didn't even know that it was written in > Python. Where did you get your version from?
The Ubuntu repository, via 'apt-get'.
> I use the one from the > Debian releases, and the packaged version works just fine. Just for > reference, can you try this version? https://web.luchs.at/support/unicode > It's from my Debian Etch workstation.
That one works fine. Thanks!
> Maybe your Python misses a package (or a ritual sacrifice)...
The problem is that I keep eluding its coils, despite having to tweak the LG scripts once in a while. It doesn't like me...
> > Any suggestions for fixing it before I turn it in to the Ubuntu > > maintainers? > > Ok, forget the question where you got your version of unicode from.
I'll compare the two and see if I can make some sense out of the diffs. If not, well, maybe someone else here can decode the snake vomit. ;)
-- * Ben Okopnik * Editor-in-Chief, Linux Gazette * https://LinuxGazette.NET *