[MacPorts] #65097: py38-jinja2 @3.1.2 does not build macOS High Sierra, Version 10.12.6, because: /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8: No module named install.__main__; 'install' is a package and cannot be directly executed

MacPorts noreply at macports.org
Sat Apr 30 19:20:52 UTC 2022


#65097: py38-jinja2 @3.1.2 does not build macOS High Sierra, Version 10.12.6,
because:
/opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8:
No module named install.__main__; 'install' is a package and cannot be
directly executed
------------------------+------------------------
  Reporter:  ballapete  |      Owner:  jmroot
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.2
Resolution:             |   Keywords:  highsierra
      Port:  py-jinja2  |
------------------------+------------------------

Comment (by ballapete):

 I uninstalled and then re-installed the four other packages with port.
 When I now try to upgrade `py38-jinja2` I still get:

 {{{
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 jinja2/py38-jinja2/work/Jinja2-3.1.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
 -m build --wheel --no-isolation --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-jinja2/py38-jinja2/work
 DEBUG: system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 jinja2/py38-jinja2/work/Jinja2-3.1.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
 -m build --wheel --no-isolation --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-jinja2/py38-jinja2/work
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py",
 line 194, in _run_module_as_main
     return _run_code(code, main_globals, None,
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py",
 line 87, in _run_code
     exec(code, run_globals)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/build/__main__.py", line 390, in <module>
     main(sys.argv[1:], 'python -m build')
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/build/__main__.py", line 337, in main
     _setup_cli()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/build/__main__.py", line 71, in _setup_cli
     colorama.init()  # fix colors on windows
 AttributeError: module 'colorama' has no attribute 'init'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 jinja2/py38-jinja2/work/Jinja2-3.1.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
 -m build --wheel --no-isolation --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-jinja2/py38-jinja2/work
 Exit code: 1
 Warning: The following existing file was hidden from the build system by
 trace mode:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/colorama/__init__.py
 Error: Failed to build py38-jinja2: command execution failed
 }}}

 So I also uninstalled and re-installed py38-colorama. This does not change
 anything. BTW, I often see this warning:

 {{{
 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/setuptools/command/install.py:34:
 SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build
 and pip and other standards-based tools.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65097#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list