[MacPorts] #66535: spice-server: configure: no module named 'six'

MacPorts noreply at macports.org
Fri Dec 23 08:28:21 UTC 2022


#66535: spice-server: configure: no module named 'six'
--------------------+--------------------------
 Reporter:  vallon  |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.8.0
 Keywords:          |       Port:  spice-server
--------------------+--------------------------
 spice-server fails to configure:

 {{{
 Program python3 found: YES
 (/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11)
 Message: Checking for python module six
 WARNING: You should add the boolean check kwarg to the run_command call.
          It currently defaults to false,
          but it will default to true in future releases of meson.
          See also: https://github.com/mesonbuild/meson/issues/9300
 Running command:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
 -c import six
 --- stdout ---

 --- stderr ---
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
 ModuleNotFoundError: No module named 'six'



 subprojects/spice-common/meson.build:141:6: ERROR: Problem encountered:
 Python module six not found
 }}}

 The Portfile has py_ver_nodot=310, and has a depends_build on py310-six,
 but it is actually running Python 3.11 during the configure.

 I don't know why it chose Python 3.11.  My port select for python3 is
 "none".

 If I switch py_ver_nodot=311, it configures after it installs py311-six.

 (But, it fails later with ":info:build asciidoc: ERROR: manual.txt: line
 9: only book doctypes can contain level 0 sections", but might be the
 subject of another ticket)

 So, the Portfile tries to depend on py${py_ver_nodot}-six, but the
 configure appears to be picking some version besides python${py_ver_nodot}
 for its execution.

-- 
Ticket URL: <https://trac.macports.org/ticket/66535>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list