import error in 3.3.7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Breezy |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Pip install of breezy 3.3.7 in a venv with Python 3.12.2 results in (when just using 'brz' from the bash prompt):
Error: PyErr { type: <class 'ImportError'>, value: ImportError(
Similar errors also occur with Python 3.11 and 3.10 (the last version I could get working with 3.3.7 of brz was Python 3.9.5).
To work with Python 3.12.1, breezy version 3.3.4 is needed.
I suspect this is a rust + venv error: while attempting to debug the issue, the failure seems to be something related to PyObject_Repr in brz's __main__.py when it imports breezy.commands. That is, main.rs fails at:
let main = PyModule:
and __main__.py at 'import breezy.commands'.
Debugging the rust code with:
let sysconfig = PyModule:
let python_version = sysconfig.
let python_lib = sysconfig.
let python_
let sys = PyModule:
let py_path:&str = sys.getattr(
seemed to show the correct paths / libraries but I suspect that there's an error with a mis-match of Python and its libraries and rust.
Changed in brz: | |
status: | New → Incomplete |
An additional note: it might be related to the change in https:/ /bugs.launchpad .net/brz/ +bug/1951258 (update_path())