Opened 2 years ago

Closed 2 years ago

#64984 closed defect (fixed)

py-jupyter_packaging @0.8.2: cannot import name 'StaticModule' from 'setuptools.config'

Reported by: mfacorcoran Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-jupyter_packaging py-jupyterlab_widgets

Description

install py310-jupyter fails - the log file says

: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)
:info:build Command failed:  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 Exit code: 1
:error:build Failed to build py310-jupyterlab_widgets: command execution failed
:debug:build Error code: CHILDSTATUS 30779 1
:debug:build Backtrace: command execution failed

Attachments (1)

main.log (14.2 KB) - added by mfacorcoran 2 years ago.
log file

Download all attachments as: .zip

Change History (9)

Changed 2 years ago by mfacorcoran

Attachment: main.log added

log file

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to stromnov
Port: py-jupyterlab_widgets added
Priority: HighNormal
Status: newassigned
Summary: Failed to build py310-jupyterlab_widgets: cannot import name 'StaticModule' from 'setuptools.config'py310-jupyterlab_widgets @1.0.2: cannot import name 'StaticModule' from 'setuptools.config'

comment:2 Changed 2 years ago by jmroot (Joshua Root)

Port: py-jupyter_packaging added
Summary: py310-jupyterlab_widgets @1.0.2: cannot import name 'StaticModule' from 'setuptools.config'py-jupyter_packaging @0.8.2: cannot import name 'StaticModule' from 'setuptools.config'

Looks like the issue is actually in jupyter_packaging.

comment:4 Changed 2 years ago by jmroot (Joshua Root)

Version 0.12.0 released a couple weeks ago includes the fix.

comment:5 in reply to:  4 Changed 2 years ago by mfacorcoran

Replying to jmroot:

Version 0.12.0 released a couple weeks ago includes the fix.

seems like 0.12.0 is not available yet

% sudo port install py310-jupyter_packaging @0.12.0 Error: py310-jupyter_packaging version 0.12.0 is not available (current version is 0.8.2_0)

comment:6 Changed 2 years ago by jmroot (Joshua Root)

Yes, the port needs to be updated to fix this issue.

comment:7 in reply to:  6 Changed 2 years ago by mfacorcoran

Replying to jmroot:

Yes, the port needs to be updated to fix this issue.

installing 0.12.0 with pip seemed to allow the install to proceed

Last edited 2 years ago by mfacorcoran (previous) (diff)

comment:8 Changed 2 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed

In edca0d797104e0e29b69b3d0b9552d82e4981947/macports-ports (master):

py-jupyter_packaging: update to 0.12.0

  • pin to latest supported version for PY36

Closes: #64984

Note: See TracTickets for help on using tickets.