[MacPorts] #69362: cantera @2.5.1: ModuleNotFoundError: No module named 'SCons'

MacPorts noreply at macports.org
Sun Feb 18 00:28:48 UTC 2024


#69362: cantera @2.5.1: ModuleNotFoundError: No module named 'SCons'
------------------------+-------------------------
 Reporter:  ryandesign  |      Owner:  thomasfiala
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.9.1
 Keywords:              |       Port:  cantera
------------------------+-------------------------
 cantera fails to build:

 https://build.macports.org/builders/ports-10.13_x86_64-builder/builds/221839/steps
 /install-port/logs/stdio

 {{{
 Executing:  cd
 "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_cantera/cantera/work/cantera-2.5.1"
 &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
 /opt/local/bin/scons build prefix=/opt/local CC=/usr/bin/clang
 CXX=/usr/bin/clang++ boost_inc_dir=/opt/local/libexec/boost/1.76/include
 f90_interface=n googletest=system
 python_cmd=/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
 python_package=full
 python_prefix=/opt/local/Library/Frameworks/Python.framework/Versions/3.10
 renamed_shared_libraries=n system_fmt=y system_eigen=y system_yamlcpp=y
 extra_inc_dirs=/opt/local/include/eigen3:/opt/local/include/libfmt8:/opt/local/include
 extra_lib_dirs=/opt/local/lib/libfmt8:/opt/local/lib system_sundials=y
 sundials_include=/opt/local/libexec/sundials5/include
 sundials_libdir=/opt/local/libexec/sundials5/lib
 DEBUG: system:  cd
 "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_cantera/cantera/work/cantera-2.5.1"
 &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
 /opt/local/bin/scons build prefix=/opt/local CC=/usr/bin/clang
 CXX=/usr/bin/clang++ boost_inc_dir=/opt/local/libexec/boost/1.76/include
 f90_interface=n googletest=system
 python_cmd=/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
 python_package=full
 python_prefix=/opt/local/Library/Frameworks/Python.framework/Versions/3.10
 renamed_shared_libraries=n system_fmt=y system_eigen=y system_yamlcpp=y
 extra_inc_dirs=/opt/local/include/eigen3:/opt/local/include/libfmt8:/opt/local/include
 extra_lib_dirs=/opt/local/lib/libfmt8:/opt/local/lib system_sundials=y
 sundials_include=/opt/local/libexec/sundials5/include
 sundials_libdir=/opt/local/libexec/sundials5/lib
 Traceback (most recent call last):
   File "/opt/local/bin/scons", line 5, in <module>
     from SCons.Script.Main import main
 ModuleNotFoundError: No module named 'SCons'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_cantera/cantera/work/cantera-2.5.1"
 &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
 /opt/local/bin/scons build prefix=/opt/local CC=/usr/bin/clang
 CXX=/usr/bin/clang++ boost_inc_dir=/opt/local/libexec/boost/1.76/include
 f90_interface=n googletest=system
 python_cmd=/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
 python_package=full
 python_prefix=/opt/local/Library/Frameworks/Python.framework/Versions/3.10
 renamed_shared_libraries=n system_fmt=y system_eigen=y system_yamlcpp=y
 extra_inc_dirs=/opt/local/include/eigen3:/opt/local/include/libfmt8:/opt/local/include
 extra_lib_dirs=/opt/local/lib/libfmt8:/opt/local/lib system_sundials=y
 sundials_include=/opt/local/libexec/sundials5/include
 sundials_libdir=/opt/local/libexec/sundials5/lib
 Exit code: 1
 }}}

 You can't run scons by specifying an alternate python version (3.10 here),
 because scons requires its python modules which were installed for a
 specific python version (currently 3.12).

 I see that I was the one who
 [changeset:636bc5899e50c7b8550e4919739a5a1d49502df0/macports-ports made
 this mistake].

 I guess the best we can do is always keep this port using the same python
 version as the scons port. You could add a comment in the scons port
 reminding me that if I switch its python version I need to make the same
 switch in cantera.

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


More information about the macports-tickets mailing list