You are not logged in.

#1 2023-05-12 15:11:06

huoda
Member
Registered: 2013-05-18
Posts: 6

[SOLVED] GNS3 not working after update (python problem I guess)

Hello,

I updated my Arch yesterday and GNS3 stop working.

Here's the console output when I try to run gns3 or gns3server:

Traceback (most recent call last):
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 563, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/gns3", line 33, in <module>
    sys.exit(load_entry_point('gns3-gui==2.2.38', 'gui_scripts', 'gns3')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/gns3", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 981, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 565, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for gns3-gui
Traceback (most recent call last):
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 563, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/gns3server", line 33, in <module>
    sys.exit(load_entry_point('gns3-server==2.2.38', 'console_scripts', 'gns3server')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/gns3server", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 981, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 565, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for gns3-server

I look for a python package called "name" but I don't found anything like that.
I tried reinstalling gns3-gui and gns3-server but doesn't work.
I tried rebooting too without good news.

What can I do to fix this?

Thank you.

Last edited by huoda (2023-05-12 18:09:55)

Offline

#2 2023-05-12 15:26:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] GNS3 not working after update (python problem I guess)

Reinstalling won't work, you have to actually rebuild the packages.

Offline

#3 2023-05-12 18:08:32

huoda
Member
Registered: 2013-05-18
Posts: 6

Re: [SOLVED] GNS3 not working after update (python problem I guess)

I installed the git version from AUR, installed some python depencies an now it works.

python dependencies:

psutil=="5.9.4"
aiofiles=="22.1.0"
sentry-sdk=="1.17.0"

Offline

Board footer

Powered by FluxBB