You are not logged in.

#1 2023-02-17 08:03:28

GENgreen
Member
Registered: 2023-02-17
Posts: 14

can't open spyder IDE both spyder 5.4.1-1 and AUR version

i have try spyder 5.4.1-1 and spyder-git 5.2.1.r345.gfad14a342-1
they don't work ()i don't know why)
use spyder 5.4.1-1 as an example:

Traceback (most recent call last):
  File "/usr/bin/spyder", line 33, in <module>
    sys.exit(load_entry_point('spyder==5.4.1', 'gui_scripts', 'spyder')())
  File "/usr/bin/spyder", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/spyder/app/start.py", line 55, in <module>
    from spyder.utils.external import lockfile
  File "/usr/lib/python3.10/site-packages/spyder/utils/external/lockfile.py", line 31, in <module>
    from spyder.utils.programs import is_spyder_process
  File "/usr/lib/python3.10/site-packages/spyder/utils/programs.py", line 28, in <module>
    import pkg_resources
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3257, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3231, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3269, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 617, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 956, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 815, in resolve
    dist = self._resolve_dist(
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 856, in _resolve_dist
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'appdirs>=1.4.4; extra == "global"' distribution was not found and is required by pytoolconfig

Offline

#2 2023-02-17 10:31:37

philo
Member
Registered: 2015-01-26
Posts: 251

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

Please use  code tags.

How did you install? For the AUR package, did you read the comments in the AUR web page of the package?

There may be useful past threads in our forums about that issue.

Last edited by philo (2023-02-19 14:20:22)

Offline

#3 2023-02-17 18:53:47

philo
Member
Registered: 2015-01-26
Posts: 251

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

Offline

#4 2023-02-18 15:04:26

philo
Member
Registered: 2015-01-26
Posts: 251

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

distribution was not found and is required by pytoolconfig

What does that tell you?

Sanity check: did you make a full upgrade (with pacman -Syu) before installing spyder 5.4.1?

Last edited by philo (2023-02-18 15:36:01)

Offline

#5 2023-02-18 15:09:21

icar
Member
From: Catalunya
Registered: 2020-07-31
Posts: 450

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

I personally recommend pipx for Python programs.
pipx install spyder

Offline

#6 2023-02-18 15:20:55

philo
Member
Registered: 2015-01-26
Posts: 251

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

pip is not widely recommended. pipx even less. Why circumvent pacman?

Last edited by philo (2023-02-18 16:34:49)

Offline

#7 2023-02-18 22:04:23

GENgreen
Member
Registered: 2023-02-17
Posts: 14

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

philo wrote:

Please use  code.

How did you install? For the AUR package, did you read the comments in the AUR web page of the package?

There may be useful past threads in our forums about that issue.

i have try this version
https://archlinux.org/packages/community/any/spyder/

and AUR version
https://aur.archlinux.org/packages/spyder-git

but they both don't work

Offline

#8 2023-02-18 22:26:39

GENgreen
Member
Registered: 2023-02-17
Posts: 14

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

philo wrote:

distribution was not found and is required by pytoolconfig

What does that tell you?

Sanity check: did you make a full upgrade (with pacman -Syu) before installing spyder 5.4.1?



yes, i have

Offline

#9 2023-02-18 22:42:10

GENgreen
Member
Registered: 2023-02-17
Posts: 14

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

i found a strange things
i use vanilla 64-bit Arch Linux
spyder 5.4.1-1 don't work
but it work on friend's Manjaro
( ꩜ ᯅ ꩜;) 

Offline

#10 2023-02-19 03:58:42

GENgreen
Member
Registered: 2023-02-17
Posts: 14

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

in Installation Guide
it said
"Other distributions

Spyder is also available in other GNU/Linux distributions, including:

    Arch Linux

    Fedora

    Gentoo

    openSUSE

Please refer to the links or your distribution’s documentation for how to install Spyder"

the link for arch is this
https://aur.archlinux.org/packages/spyder-git
AUR version
i tried this but don't work too

Offline

#11 2023-02-19 10:47:41

philo
Member
Registered: 2015-01-26
Posts: 251

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

The AUR package is over one year old. Also, it conflits with the official Community package.
Make a complete uninstall of both (including dependencies) and then try installing 5.4.1 with:
sudo  pacman -Syu spyder

Last edited by philo (2023-02-19 12:08:10)

Offline

#12 2023-02-19 15:00:28

icar
Member
From: Catalunya
Registered: 2020-07-31
Posts: 450

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

philo wrote:

pip is not widely recommended. pipx even less. Why circumvent pacman?

source?

Offline

#13 2023-02-19 15:12:53

philo
Member
Registered: 2015-01-26
Posts: 251

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

The wikis and comments as well as warnings from reliable contributors in our forums.

Offline

#14 2023-02-19 17:09:05

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

The souce of the problems is most probably that the OP mixed system-wide pip installations with pacman installations. For me the spyder package from [community] works out of the box.

Offline

#15 2023-02-19 23:07:41

GENgreen
Member
Registered: 2023-02-17
Posts: 14

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

philo wrote:

The AUR package is over one year old. Also, it conflits with the official Community package.
Make a complete uninstall of both (including dependencies) and then try installing 5.4.1 with:
sudo  pacman -Syu spyder

i have try this many time
but still don't work

Offline

#16 2023-02-20 08:25:29

philo
Member
Registered: 2015-01-26
Posts: 251

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

GENgreen wrote:

i have try this many time
but still don't work

Do not expect much help after such vague comments.

https://bbs.archlinux.org/viewtopic.php?id=57855

http://www.catb.org/~esr/faqs/smart-questions.html

Last edited by philo (2023-02-20 11:30:46)

Offline

#17 2023-02-20 18:34:30

GENgreen
Member
Registered: 2023-02-17
Posts: 14

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

GENgreen wrote:
philo wrote:

The AUR package is over one year old. Also, it conflits with the official Community package.
Make a complete uninstall of both (including dependencies) and then try installing 5.4.1 with:
sudo  pacman -Syu spyder

i have try this many time
but still don't work

Traceback (most recent call last):
  File "/usr/bin/spyder", line 33, in <module>
    sys.exit(load_entry_point('spyder==5.4.1', 'gui_scripts', 'spyder')())
  File "/usr/bin/spyder", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/spyder/app/start.py", line 55, in <module>
    from spyder.utils.external import lockfile
  File "/usr/lib/python3.10/site-packages/spyder/utils/external/lockfile.py", line 31, in <module>
    from spyder.utils.programs import is_spyder_process
  File "/usr/lib/python3.10/site-packages/spyder/utils/programs.py", line 28, in <module>
    import pkg_resources
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3257, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3231, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3269, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 617, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 956, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 815, in resolve
    dist = self._resolve_dist(
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 856, in _resolve_dist
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'appdirs>=1.4.4; extra == "global"' distribution was not found and is required by pytoolconfig

Offline

#18 2023-02-20 19:05:02

philo
Member
Registered: 2015-01-26
Posts: 251

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

Who know that but we do not know how you got there.For example:

What commands etc did you use:
- to first install the official [community] package and the one from AUR
- to uninstall them

What do you think of post #14 above?

Offline

#19 2023-02-20 19:07:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

All of this and nobody's checked if python-appdirs is installed  yet?

GENgreen, pacman -Q python-appdirs

Offline

#20 2023-02-20 19:19:32

GENgreen
Member
Registered: 2023-02-17
Posts: 14

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

Scimmia wrote:

All of this and nobody's checked if python-appdirs is installed  yet?

GENgreen, pacman -Q python-appdirs

thank you
is don't have python-appdirs
but after a installed python-appdirs 1.4.4-7
spyder work!

Last edited by GENgreen (2023-02-20 19:22:24)

Offline

#21 2023-02-20 19:36:46

GENgreen
Member
Registered: 2023-02-17
Posts: 14

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

GENgreen wrote:
Scimmia wrote:

All of this and nobody's checked if python-appdirs is installed  yet?

GENgreen, pacman -Q python-appdirs

thank you
is don't have python-appdirs
but after a installed python-appdirs 1.4.4-7
spyder work!

before install python-appdirs 1.4.4-7 i have tried
spyder in anaconda
anaconda-spyder can open but have error
(i forget what error is in it)
after install python-appdirs 1.4.4-7
anaconda-spyder works too

thank you

Offline

#22 2023-02-21 08:22:17

philo
Member
Registered: 2015-01-26
Posts: 251

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

python-appdirs is not a dependency of spyder 5.4.1. It would not have been required if the OP had done a straightforward installation of spyder.

As early as in posts #2 & 4 the OP was asked  how  he/she installed and about that "distribution" error message. No answer.

Time for the OP to mark the thread as [SOLVED].

Last edited by philo (2023-02-21 10:04:16)

Offline

#23 2023-04-30 14:41:11

ol
Member
Registered: 2023-04-30
Posts: 1

Re: can't open spyder IDE both spyder 5.4.1-1 and AUR version

pip install appdirs

Offline

Board footer

Powered by FluxBB