Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies window only shows external plugin #17535

Closed
mrclary opened this issue Mar 24, 2022 · 6 comments
Closed

Dependencies window only shows external plugin #17535

mrclary opened this issue Mar 24, 2022 · 6 comments

Comments

@mrclary
Copy link
Contributor

mrclary commented Mar 24, 2022

Description

Bootstrap shows only the external plugin in dependencies window and spyder-terminal works.
macOS app shows all except the external plugin and spyder-terminal does not work.

What steps will reproduce the problem?

$ python bootstrap.py --safe-mode

Screen Shot 2022-03-23 at 11 55 05 PM

macOS app
Screen Shot 2022-03-23 at 11 57 39 PM

Versions

  • Spyder version: 5.3.0.dev0 d3abf35
  • Python version: 3.9.10
  • Qt version: 5.12.9
  • PyQt5 version: 5.12.3
  • Operating System: Darwin 20.6.0

Dependencies

# Mandatory:
applaunchservices >=0.1.7            :  0.2.1 (OK)
atomicwrites >=1.2.0                 :  1.4.0 (OK)
chardet >=2.0.0                      :  4.0.0 (OK)
cloudpickle >=0.5.0                  :  2.0.0 (OK)
cookiecutter >=1.6.0                 :  1.7.3 (OK)
diff_match_patch >=20181111          :  20200713 (OK)
intervaltree >=3.0.2                 :  3.0.2 (OK)
IPython >=7.31.1;<8.0.0              :  7.32.0 (OK)
jedi >=0.17.2;<0.19.0                :  0.18.1 (OK)
jellyfish >=0.7                      :  0.9.0 (OK)
jsonschema >=3.2.0                   :  4.4.0 (OK)
keyring >=17.0.0                     :  23.4.0 (OK)
nbconvert >=4.0                      :  6.4.4 (OK)
numpydoc >=0.6.0                     :  1.2 (OK)
parso >=0.7.0;<0.9.0                 :  0.8.3 (OK)
pexpect >=4.4.0                      :  4.8.0 (OK)
pickleshare >=0.4                    :  0.7.5 (OK)
psutil >=5.3                         :  5.9.0 (OK)
pygments >=2.0                       :  2.11.2 (OK)
pylint >=2.5.0                       :  2.12.2 (OK)
pyls_spyder >=0.4.0                  :  0.4.0 (OK)
pylsp >=1.3.2;<1.4.0                 :  1.3.2 (OK)
pylsp_black >=1.0.0                  :  1.1.0 (OK)
qdarkstyle =3.0.2                    :  3.0.2 (OK)
qstylizer >=0.1.10                   :  0.2.1 (OK)
qtawesome >=1.0.2                    :  1.1.1 (OK)
qtconsole >=5.2.1;<5.3.0             :  5.2.2 (OK)
qtpy >=1.5.0                         :  2.0.1 (OK)
rtree >=0.9.7                        :  0.9.7 (OK)
setuptools >=49.6.0                  :  60.10.0 (OK)
sphinx >=0.6.6                       :  4.4.0 (OK)
spyder_kernels >=2.2.1;<2.3.0        :  2.3.0.dev0 (OK)
textdistance >=4.2.0                 :  4.2.2 (OK)
three_merge >=0.1.1                  :  0.1.1 (OK)
watchdog >=0.10.3                    :  2.1.6 (OK)
zmq >=17                             :  22.3.0 (OK)

# Optional:
cython >=0.21                        :  0.29.28 (OK)
matplotlib >=2.0.0                   :  3.5.1 (OK)
numpy >=1.7                          :  1.22.3 (OK)
pandas >=1.1.1                       :  1.4.1 (OK)
scipy >=0.17.0                       :  1.8.0 (OK)
sympy >=0.7.3                        :  1.10.1 (OK)

# Spyder plugins:
spyder_terminal.terminalplugin 1.2.1 :  1.2.1 (OK)
@mrclary
Copy link
Contributor Author

mrclary commented Mar 24, 2022

Something is wrong with my system, because this manifests on bootstrap of 5.2.2 checkout...

@dalthviz
Copy link
Member

Just in case, I checked with the Windows installer generated at #17533 and seems like all the dependencies are being shown:

imagen

Checking with the latest 5.x d3abf35 I also get all the dependencies:

imagen

Maybe something is happening when parsing/computing the dependencies on MacOS?

@mrclary
Copy link
Contributor Author

mrclary commented Mar 24, 2022

Okay, the issue with bootstrap is a non-issue: I was opening the dependencies window before they were computed. If I wait just a little longer or close and reopen the window, the dependencies are there, including spyder-terminal.

However, for the macOS app, the spyder-terminal still does not show up even though it is installed in the application. I'll have to investigate at which commit this manifested to understand what changed.

@dalthviz, I'm hoping that there is something simple like parsing the dependencies, as you suggest.

@mrclary
Copy link
Contributor Author

mrclary commented Mar 24, 2022

The issue is isolated to #16651. Updating py2app has caused spyder-terminal to stop loading. I'll have to investigate.

@mrclary
Copy link
Contributor Author

mrclary commented Mar 24, 2022

It appears that pkg_resources does not locate any entry_points for any packages which have .dist-info files in python39.zip. This could be a problem for more than just spyder-terminal. I don't think this is directly related to py2app; it is a bug/feature of pkg_resources since simply copying the dist-info file to the python3.9 directory after app bundling alleviates the issue.

I'll do some more research...

@mrclary
Copy link
Contributor Author

mrclary commented Mar 25, 2022

Closing this issue since the primary problem was not a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants