bzr 0.13.0 ImportError: No module named pwd

Alexander Belchenko bialix at ukr.net
Mon Jan 29 16:12:55 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

eltronic at juno.com пишет:
> this is really more of a python problem,
> after install from source
> from a dos wiindow win9x
>   File "\PYTHON24\lib\site-packages\bzrlib\config.py", line 705, in _auto
> _user_id
>     realname = username = getpass.getuser().decode(bzrlib.user_encoding)
> 
> ***this must be from the registry there is nothing there anymore
>   File "C:\C\PY\PYTHON24\lib\getpass.py", line 101, in getuser
>     import pwd
> ImportError: No module named pwd
> bzr 0.13.0 on python 2.4.1.candidate.1 (win32)
> arguments: ['f:/c/py/bzr', 'init', '.']
> **
> getuser is broken on win9x if USER or other env variable not set.
> it found my home only because i have set HOME, it may fail there too.
> maybe a note can be made?
> in the docs which suggest creating .bazar
> seems to be more like $HOME/bazar/2.0/ 
> don't feel bad, there are few programs that get this right on windows.
> IPython might be a model
> 
> none of the error messages after the point of failure make sense.
> init appears to suceed even though it has no user set
> and of course running init again fails too.
> maybe it should clean up and suggest creating a default conf file.
> and entering an email at least.
> maybe another option that shows what it knows about its local defaults.
> most of the error scrolled past where I could copy it on a dos window.
> if bzr will ask to send a report. maybe it should create bzrreport.txt
> 
> thanks for the continuing work.

Hi!

Do you still here? I have good progress on win98 support.

Can you test attached script on your win98 machine?
You need to have Python 2.5 installed OR Python 2.4 + ctypes 1.0+ (at least 0.9.9.6).

Run

> python test_win32utils.py

and inspect output for absence of errors.

Can you show me output?

Alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFvh0HzYr338mxwCURAjfhAJ9GjgVS/5Vd4gc0EbsZE/UexL3pDQCcDyZ1
fVlTnYbXNqggaHYnIqarmrI=
=GCfc
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: win32utils.py
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20070129/5cefd732/attachment-0002.diff 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_win32utils.py
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20070129/5cefd732/attachment-0003.diff 


More information about the bazaar mailing list