Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#64453 closed defect (fixed)

py-spyder-{kernels}: requires newer version of `py-jupyter_client'

Reported by: wcvinyard (Bill) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: HighSierra Cc: reneeotten (Renee Otten), mf2k (Frank Schima), someuser12
Port: py-spyder-kernels py-jupyter-client

Description

macbookpro late 2011 macOS HighSierra 10.13.6

installed py39-spyder attempted to start spyder which failed with following:

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 573, in _build_master
    ws.require(__requires__)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 891, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 782, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (jupyter-client 6.1.12 (/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages), Requirement.parse('jupyter-client>=7.1.0'), {'spyder-kernels'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
. . . 
pkg_resources.DistributionNotFound: The 'jupyter-client>=7.1.0' distribution was not found and is required by spyder-kernels

Note the "...Requirement.parse('jupyter-client>=7.1.0')..."

and the "...'jupyter-client>=7.1.0' distribution was not found and is required by spyder-kernels"

for macport version 2.7.1 the highest version of jupyter-client appears to be 6.1.12

sudo port search jupyter_client

py38-jupyter_client @6.1.12 (python)

py39-jupyter_client @6.1.12 (python)

py310-jupyter_client @6.1.12 (python)

$ sudo port info py39-spyder-kernels

py39-spyder-kernels @2.2.1 (python, devel)

Description: Jupyter kernels for Spyder's console. Homepage: https://github.com/spyder-ide/spyder-kernels

Build Dependencies: py39-setuptools Library Dependencies: py39-cloudpickle, py39-ipykernel, py39-ipython, py39-jupyter_client,

py39-wurlitzer, py39-zmq, python39

Platforms: darwin License: MIT Maintainers: Email: reneeotten@…, GitHub: reneeotten

Policy: openmaintainer

Not sure if following tickets are relevant to this or not, but just in case:

#64446

#64139

Recommendation from #64446 was to install nodejs14 vice nodejs16 in order to get qt5-qtwebengine to install . . . which I did and resulted in successful install of all dependencies for py39-spyder

Attachments (1)

Screen Shot 2022-01-28 at 3.13.43 PM.png (79.9 KB) - added by wcvinyard (Bill) 3 years ago.
screen shot of spyder gui

Download all attachments as: .zip

Change History (7)

comment:1 Changed 3 years ago by reneeotten (Renee Otten)

Cc: reneeotten added; wcvinyard@… removed
Owner: set to stromnov
Port: py-spyder-kernels py-jupyter-client added; py39-spyder removed
Status: newassigned
Summary: py39-spyder installs correctly but fails during execution due to missing dependenciespy-spyder-{kernels}: requires newer version of `py-jupyter_client'

thanks for the report @wcvinyard, none of the tickets you mention are relevant here. The issue -as the error message- clearly states is that py-spyder-kernels requires a newer of py-jupyter_client than is currently available in MacPorts.

@Andrew: is there a reason for not updating the port other than "I haven't had time for it yet". I am happy to take a look at it, but if would be good to know if there is an (obvious) reason not to do so.

comment:2 Changed 3 years ago by mf2k (Frank Schima)

Cc: mf2k added

comment:4 Changed 3 years ago by someuser12

Cc: someuser12 added

comment:5 Changed 3 years ago by Julien Salort <julien.salort@…>

Resolution: fixed
Status: assignedclosed

In 6602024f1eb96f2cf4be0bd074fee5f04ef374d2/macports-ports (master):

py-jupyter_client: update to 7.1.2

Closes: #64453

Changed 3 years ago by wcvinyard (Bill)

screen shot of spyder gui

comment:6 Changed 3 years ago by wcvinyard (Bill)

Confirming issue resolved:

MacBook Pro late 2011; macOS 10.13.6

py39-spyder installs and initializes as expected. . .

$ sudo port outdated The following installed ports are outdated: cmake 3.22.1_0 < 3.22.2_0 gnutls 3.6.16_2 < 3.6.16_3 libomp 13.0.0_0 < 13.0.0_1 py39-charset-normalizer 2.0.9_0 < 2.0.10_0 py39-ipykernel 6.5.1_0 < 6.7.0_0 py39-jupyter_client 6.1.12_0 < 7.1.2_0 py39-numpy 1.22.0_0 < 1.22.1_0 py39-spyder 5.2.1_0 < 5.2.2_0 py39-spyder-kernels 2.2.1_0 < 2.2.1_1 re2 2021-11-01_0 < 2021-11-01_1 recode 3.7.10_0 < 3.7.11_0

$ sudo port upgrade outdated

$ sudo port select --set spyder spyder-39

$ spyder The available OpenGL surface format was either not version 3.2 or higher or not a Core Profile. Chromium on macOS will fall back to software rendering in this case. Hardware acceleration and features such as WebGL will not be available. fromIccProfile: failed minimal tag size sanity

Screen Shot 2022-01-28 at 3.13.43 PM.png

Note: See TracTickets for help on using tickets.