CMake error in 3.3.3, not in 3.4.0-alpha-20231011 (Ubuntu 23.04)

When I run cmake on the stable 3.3.3 code, I get this error:

CMake Error at cmake-proxies/cmake-modules/AudacityDependencies.cmake:202 (message):
  Conan failed to install dependencies (1) /usr/bin/python3
Call Stack (most recent call first):
  CMakeLists.txt:572 (include)

version.txt in audacity-sources-3.3.3/build/.conan/ say; 1.59.0, so that’s not the problem.

Also, if I download the latest code (3.4.0-alpha-20231011), I can make and compile without problems.

Audacity 3.3.3 requires conan 1.59.0. Audacity 3.4 requries conan 2.x. You can’t build both with the same conan version.

conan is not installed on my system. It is being downloaded automatically and running in a virtual enviroment:

From stdout:

[...]
Creating Conan virtual environment /home/thomas/Skrivebord/audacity-sources-3.3.3/build/conan_venv
Using Conan from virtual environment /home/thomas/Skrivebord/audacity-sources-3.3.3/build/conan_venv
CONAN_USER_HOME is /home/thomas/Skrivebord/audacity-sources-3.3.3/build
Using Conan version 1.59.0 (/home/thomas/Skrivebord/audacity-sources-3.3.3/build/conan_venv/bin/conan)
WARN: Remotes registry file missing, creating default one in /home/thomas/Skrivebord/audacity-sources-3.3.3/build/.conan/remotes.json
Adding audacity-recipes remote...
Adding audacity-binaries remote...
Updating global Conan config...
Auto detecting your dev setup to initialize the default profile (/home/thomas/Skrivebord/audacity-sources-3.3.3/build/.conan/profiles/default)
[...]

So far so good…

Later:

[...]
expat/2.2.9@audacity/stable: 
expat/2.2.9@audacity/stable: ERROR: Package '1ca3480341e9d85429a069954d57f5d671521233' build failed
expat/2.2.9@audacity/stable: WARN: Build folder /home/thomas/Skrivebord/audacity-sources-3.3.3/build/.conan/data/expat/2.2.9/audacity/stable/build/1ca3480341e9d85429a069954d57f5d671521233
ERROR: expat/2.2.9@audacity/stable: Error in build() method, line 96
	self._build_autotools()
while calling '_build_autotools', line 82
	autotools = self._configure_autotools()
while calling '_configure_autotools', line 77
	self._autotools.configure(args=args, configure_dir=self._source_subfolder)
	ConanException: Error 1 while executing source_subfolder/configure '--disable-static' '--enable-shared' '--prefix=/home/thomas/Skrivebord/audacity-sources-3.3.3/build/.conan/data/expat/2.2.9/audacity/stable/package/1ca3480341e9d85429a069954d57f5d671521233' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share' 
Restoring global Conan config...
Traceback (most recent call last):
  File "/home/thomas/Skrivebord/audacity-sources-3.3.3/conan/conan_runner.py", line 339, in <module>
    subprocess.check_call(conan_options)
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/thomas/Skrivebord/audacity-sources-3.3.3/build/conan_venv/bin/conan', 'install', '/home/thomas/Skrivebord/audacity-sources-3.3.3/conan', '--build=missing', '--install-folder', '/home/thomas/Skrivebord/audacity-sources-3.3.3/build/conan-install-release', '--output-folder', '/home/thomas/Skrivebord/audacity-sources-3.3.3/build', '--remote', 'audacity-binaries', '--profile:build', '/home/thomas/Skrivebord/audacity-sources-3.3.3/build/profile-build.profile', '--profile:host', '/home/thomas/Skrivebord/audacity-sources-3.3.3/build/profile-host-release.profile']' returned non-zero exit status 1.
CMake Error at cmake-proxies/cmake-modules/AudacityDependencies.cmake:202 (message):
  Conan failed to install dependencies (1) /usr/bin/python3
Call Stack (most recent call first):
  CMakeLists.txt:572 (include)


-- Configuring incomplete, errors occurred!
See also "/home/thomas/Skrivebord/audacity-sources-3.3.3/build/CMakeFiles/CMakeOutput.log".
See also "/home/thomas/Skrivebord/audacity-sources-3.3.3/build/CMakeFiles/CMakeError.log".

I have no clue what’s going on…

maybe @crsib knows what’s going on here

The error itself is truncated, I’m afraid. It would be awesome to have the full CMake output

Does this help?

stdout:

stdout

CMakeError.log:

CMakeError.log

CMakeOutput.log:

CMakeOutput.log

Here is the error:

configure: error: Your local docbook2man was found to work with SGML rather
  than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
  configure to command docbook2x-man of docbook2X.
  Or use DOCBOOK_TO_MAN="xmlto man --skip-validation" if you have xmlto around.
  You can also configure using --without-docbook if you can do without a man
  page for xmlwf.