`bzr init --git` crashes with ImportError in bzr.exe 2.5.0

Bug #952834 reported by Alexander Belchenko
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Mac Installers
Fix Released
Undecided
Unassigned
Bazaar Windows Installers
Fix Committed
High
Alexander Belchenko

Bug Description

C:\Temp\4>bzr -Derror init --git
bzr: ERROR: exceptions.ImportError: No module named config

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 920, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1131, in run_bzr
  File "bzrlib\commands.pyo", line 673, in run_argv_aliases
  File "bzrlib\commands.pyo", line 695, in run
  File "bzrlib\cleanup.pyo", line 136, in run_simple
  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 2093, in run
  File "bzrlib\controldir.pyo", line 643, in create_branch_convenience
  File "C:/Program Files/Bazaar/plugins\git\repository.py", line 224, in make_working_trees
  File "C:/Program Files/Bazaar/plugins\git\transportgit.py", line 350, in get_config
ImportError: No module named config

This is with bzr-git 0.6.7 @ bzr standalone 2.5.0.

Tags: win32

Related branches

Revision history for this message
Alexander Belchenko (bialix) wrote :

"C:/Program Files/Bazaar/plugins\git\transportgit.py", line 350, in get_config is the line:

        from dulwich.config import ConfigFile

Is it build problem?

Revision history for this message
Alexander Belchenko (bialix) wrote :

How can I find out which dulwich version is used?

tags: added: win32
Revision history for this message
Alexander Belchenko (bialix) wrote :

Looking inside library.zip of bzr installation I see dulwich package with following modules:

tests/
__init__.pyo
_compat.pyo
_diff_tree.pyo
_objects.pyo
_pack.pyo
client.pyo
diff_tree.pyo
errors.pyo
fastexport.pyo
file.pyo
index.pyo
log_utils.pyo
lru_cache.pyo
object_store.pyo
objects.pyo
pack.pyo
patch.pyo
protocol.pyo
repo.pyo
server.pyo
walk.pyo
web.pyo

There is no "config" module there.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 952834] Re: `bzr init --git` crashes with ImportError in bzr.exe 2.5.0

Alexander Belchenko пишет:
> How can I find out which dulwich version is used?

OK, according to bzr-windows-installers data for bzr 2.5.0 was used

dulwich revno:988

According to qlog config.py it was introduced in revision 991.

@Jelmer, please tell us which version of dulwich should be used with
bzr-git 0.6.7?

@Jelmer, can you try to update such information in bzr-windows-installer
project when new versions released, please?

affects: bzr-git → bzr-windows-installers
Changed in bzr-windows-installers:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Martin Packman (gz) wrote :

Yep, it should be dulwich 0.8.2 though bzr-git was updated to 0.6.7 for 2.5.0 only. I copied what doxxx used in the mac installers, and the details are in the freeze thread:

<https://lists.ubuntu.com/archives/bazaar/2012q1/074446.html>

Revision history for this message
Alexander Belchenko (bialix) wrote :

Martin Packman пишет:
> Yep, it should be dulwich 0.8.2 though bzr-git was updated to 0.6.7 for
> 2.5.0 only. I copied what doxxx used in the mac installers, and the
> details are in the freeze thread:
>
> <https://lists.ubuntu.com/archives/bazaar/2012q1/074446.html>

Sorry, but dulwich 0.8.2 is revno 988, but config.py is only introduced
in revno 991. I'm sure 0.8.2 is wrong choice there.

--
All the dude wanted was his rug back

Revision history for this message
Alexander Belchenko (bialix) wrote :

Martin Packman пишет:
> Yep, it should be dulwich 0.8.2 though bzr-git was updated to 0.6.7 for
> 2.5.0 only. I copied what doxxx used in the mac installers, and the
> details are in the freeze thread:
>
> <https://lists.ubuntu.com/archives/bazaar/2012q1/074446.html>

I think you actually meant dulwich 0.8.3.

--
All the dude wanted was his rug back

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

bzr-git 0.6.7 should need dulwich 0.8.3; I forgot to update the minimum requirement in info.py when I introduced the dependency on the config code.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

> @Jelmer, can you try to update such information in bzr-windows-installer
project when new versions released, please?

The process of releasing new versions of the plugins is already quite burdensome. I would really rather stay away from also updating the windows and mac installers, which I can't test. I can start announcing new releases on the -announce list again if that would help though. info.py should have the right dependency information.

Revision history for this message
Alexander Belchenko (bialix) wrote :

Jelmer Vernooij пишет:
> I can start announcing
> new releases on the -announce list again if that would help though.

I think that would be good.

--
All the dude wanted was his rug back

Changed in bzr-windows-installers:
status: Confirmed → Fix Committed
assignee: nobody → Alexander Belchenko (bialix)
Gordon Tyler (doxxx)
Changed in bzr-mac-installers:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.