Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 693400

Summary: net-misc/gns3-gui-2.1.21 : runtime error: pkg_resources.DistributionNotFound: The 'jsonschema==2.6.0' distribution was not found and is required by gns3-gui
Product: Gentoo Linux Reporter: Garri <g.djavadyan>
Component: Current packagesAssignee: Gino McCarty <onigino>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint, treecleaner
Priority: Normal Keywords: PMASKED, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/13273
Whiteboard:
Package list:
Runtime testing required: ---
Deadline: 2020-04-25   

Description Garri 2019-09-03 11:48:34 UTC
After recent world update, GNS3 has been failing to start providing the following error messages:

---
pkg_resources.ContextualVersionConflict: (jsonschema 3.0.1 (/usr/lib64/python3.6/site-packages), Requirement.parse('jsonschema==2.6.0'), {'gns3-gui'})

pkg_resources.DistributionNotFound: The 'jsonschema==2.6.0' distribution was not found and is required by gns3-gui
---


There is a similar with net-misc/gns3-gui-2.1.21, which also requires exact dev-python/jsonschema-2.6.0 and dev-python/prompt_toolkit-1.0.15 versions:

---
pkg_resources.ContextualVersionConflict: (prompt-toolkit 2.0.7 (/usr/lib64/python3.6/site-packages), Requirement.parse('prompt-toolkit==1.0.15'), {'gns3-server'})

pkg_resources.DistributionNotFound: The 'prompt-toolkit==1.0.15' distribution was not found and is required by gns3-server
---


Fixing the needed versions in package.mask solves the problems:

$ cat /etc/portage/package.mask 
>dev-python/jsonschema-2.6.0
>dev-python/prompt_toolkit-1.0.15



Below are full lists of requirements:

$ cat /usr/lib64/python3.6/site-packages/gns3_gui-2.1.21-py3.6.egg-info/requires.txt 
jsonschema==2.6.0
raven>=5.23.0
psutil>=2.2.1


$ cat /usr/lib64/python3.6/site-packages/gns3_server-2.1.21-py3.6.egg-info/requires.txt 
jsonschema==2.6.0
aiohttp<2.4.0,>=2.3.3
aiohttp-cors==0.6.0
Jinja2>=2.7.3
raven>=5.23.0
psutil>=3.0.0
zipstream>=1.1.4
prompt-toolkit==1.0.15
async-timeout<3.0.0
Comment 1 Aaron Bauman (RETIRED) gentoo-dev 2020-05-24 22:40:59 UTC
version dropped from tree.