installing py310-jupyter fails: cannot import name 'StaticModule' from 'setuptools.config'

Corcoran, Michael F. (GSFC-662.0)[CATHOLIC UNIV OF AMERICA] michael.f.corcoran at nasa.gov
Mon Apr 11 12:14:18 UTC 2022


I was trying to install py310-jupyter  but the install failed when building py310-jupyterlab_widgets.  The problem seems to be that the StaticModule package is imported by

/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/jupyter_packaging/setupbase.py

but not found in setuptools.config:

from setuptools.config import StaticModule
ImportError: cannot import name 'StaticModule' from 'setuptools.config' (/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/config/__init__.py)

Any idea how to solve this?

the relevant lines from the main.log file are

:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_python_py-jupyterlab_widgets/py310-jupyterlab_widgets/work/jupyterlab_widgets-1.0.2" && /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 setup.py --no-user-cfg build -j16
:info:build Traceback (most recent call last):
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_python_py-jupyterlab_widgets/py310-jupyterlab_widgets/work/jupyterlab_widgets-1.0.2/setup.py", line 6, in <module>
:info:build     from jupyter_packaging import (
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/jupyter_packaging/__init__.py", line 7, in <module>
:info:build     from .setupbase import *
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/jupyter_packaging/setupbase.py", line 38, in <module>
:info:build     from setuptools.config import StaticModule
:info:build ImportError: cannot import name 'StaticModule' from 'setuptools.config' (/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/config/__init__.py)

I've filed a ticket but was wondering if anyone on the list had any insight…

thanks

Mike

****************************************************
Dr. Michael F. Corcoran
The Catholic University of America
Goddard Space Flight Center, Code 662
Greenbelt, MD 20771
****************************************************


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20220411/5f683aeb/attachment.htm>


More information about the macports-users mailing list