0

Have been trying to get GNS3 to work on ArchLinux, installed a range of things following the instructions on the ArchWiki, but still running into the following when I try to start GNS3:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 581, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 909, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 800, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (jsonschema 4.16.0 (/usr/lib/python3.10/site-packages), Requirement.parse('jsonschema==3.2.0'), {'gns3-gui'})

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.34', 'gui_scripts', 'gns3')())
  File "/usr/bin/gns3", 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/gns3/main.py", line 40, in <module>
    from gns3.utils.get_resource import get_resource
  File "/usr/lib/python3.10/site-packages/gns3/utils/get_resource.py", line 21, in <module>
    import pkg_resources
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3260, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3272, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 596, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 795, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'jsonschema==3.2.0' distribution was not found and is required by gns3-gui

Been pulling my hair out a bit trying to figure it out. Anyone see anything in there that clearly indicates the remaining issue? No GUI pops up when I try to execute GNS3.

I have enabled and started gns3-gui and gns3-server by entering the following:

$ sudo systemctl enable gns3-server@Christian
$ sudo systemctl start gns3-server@Christian

These commands did not produce any errors. But still to no avail.

Thank you in advance.

  • I see in my output that there is: raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (jsonschema 4.16.0 (/usr/lib/python3.10/site-packages), Requirement.parse('jsonschema==3.2.0'), {'gns3-gui'}) I found that someone in the past had a similar issue and downgraded their python-jsonschema package, but I'm not sure to do this. Does the above indicate I need to downgrade to v 3.2 of jsonschema? If so, how can I do that? – Stormblade Oct 05 '22 at 11:31

0 Answers0