Bug 1379157

Summary: Wrong version of python3-multidict for GNS3-server
Product: [Fedora] Fedora Reporter: Andrea Oliveri <oliveriandrea>
Component: gns3-serverAssignee: Othman Madjoudj <athmanem>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 25CC: athmanem, oliveriandrea
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-12 21:24:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1381750    
Bug Blocks:    

Description Andrea Oliveri 2016-09-25 13:36:39 UTC
If you try to start gns3-server with systemctl start gns3 you obtain the following errors

gns3server[726]:   File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 637, in _build_master
gns3server[726]:     return cls._build_from_requirements(__requires__)
gns3server[726]:   File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 650, in _build_from_requirements
gns3server[726]:     dists = ws.resolve(reqs, Environment())
gns3server[726]:   File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 829, in resolve
gns3server[726]:     raise DistributionNotFound(req, requirers)
gns3server[726]: pkg_resources.DistributionNotFound: The 'multidict<2,>=1.2.2' distribution was not found and is required by aiohttp

probably due to the older version of python3-multidict (installed version:1.1.0 (the latest available on the F25 repository))
Please can you fix it, otherwise GNS3 can not be started!

Comment 1 Othman Madjoudj 2016-10-03 16:13:50 UTC
Could you please provide which GNS3 and aiohttp version you used. 

Here's a test from F25. 

~]$ sudo systemctl start gns3
~]$ sudo systemctl status gns3
● gns3.service - GNS3 server
   Loaded: loaded (/usr/lib/systemd/system/gns3.service; disabled; vendor preset: disabled)
   Active: active (running) since Mon 2016-10-03 16:08:50 UTC; 4s ago
 Main PID: 6419 (gns3server)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/gns3.service
           └─6419 /usr/bin/python3 /usr/bin/gns3server

Oct 03 16:08:50 devel2.localdomain systemd[1]: Started GNS3 server.
Oct 03 16:08:50 devel2.localdomain gns3server[6419]: No configuration file could be found or read
Oct 03 16:08:50 devel2.localdomain gns3server[6419]: 2016-10-03 16:08:50 INFO run.py:214 GNS3 server version 1.5.1
Oct 03 16:08:50 devel2.localdomain gns3server[6419]: 2016-10-03 16:08:50 INFO run.py:216 Copyright (c) 2007-2016 GNS3 Technologies Inc.
Oct 03 16:08:50 devel2.localdomain gns3server[6419]: 2016-10-03 16:08:50 INFO run.py:235 Running with Python 3.5.2 and has PID 6419
Oct 03 16:08:50 devel2.localdomain gns3server[6419]: 2016-10-03 16:08:50 INFO run.py:78 Current locale is en_US.UTF-8
Oct 03 16:08:50 devel2.localdomain gns3server[6419]: 2016-10-03 16:08:50 INFO server.py:241 Starting server on 0.0.0.0:3080
~]$ rpm -q gns3-server
gns3-server-1.5.1-1.fc25.noarch

Comment 2 Andrea Oliveri 2016-10-03 17:33:28 UTC
(In reply to Athmane Madjoudj from comment #1)
> Could you please provide which GNS3 and aiohttp version you used. 
> 
> Here's a test from F25. 
> 
> ~]$ sudo systemctl start gns3
> ~]$ sudo systemctl status gns3
> ● gns3.service - GNS3 server
>    Loaded: loaded (/usr/lib/systemd/system/gns3.service; disabled; vendor
> preset: disabled)
>    Active: active (running) since Mon 2016-10-03 16:08:50 UTC; 4s ago
>  Main PID: 6419 (gns3server)
>     Tasks: 1 (limit: 4915)
>    CGroup: /system.slice/gns3.service
>            └─6419 /usr/bin/python3 /usr/bin/gns3server
> 
> Oct 03 16:08:50 devel2.localdomain systemd[1]: Started GNS3 server.
> Oct 03 16:08:50 devel2.localdomain gns3server[6419]: No configuration file
> could be found or read
> Oct 03 16:08:50 devel2.localdomain gns3server[6419]: 2016-10-03 16:08:50
> INFO run.py:214 GNS3 server version 1.5.1
> Oct 03 16:08:50 devel2.localdomain gns3server[6419]: 2016-10-03 16:08:50
> INFO run.py:216 Copyright (c) 2007-2016 GNS3 Technologies Inc.
> Oct 03 16:08:50 devel2.localdomain gns3server[6419]: 2016-10-03 16:08:50
> INFO run.py:235 Running with Python 3.5.2 and has PID 6419
> Oct 03 16:08:50 devel2.localdomain gns3server[6419]: 2016-10-03 16:08:50
> INFO run.py:78 Current locale is en_US.UTF-8
> Oct 03 16:08:50 devel2.localdomain gns3server[6419]: 2016-10-03 16:08:50
> INFO server.py:241 Starting server on 0.0.0.0:3080
> ~]$ rpm -q gns3-server
> gns3-server-1.5.1-1.fc25.noarch
--------------------------------------------------------------------
--------------------------------------------------------------------
version (x86_64)
gns3-server 1.5.1-1.fc25
gns3-gui 1.5.1-2.fc25
python3-aiohttp 0.22.5-1.fc25
python3 3.5.2-4.fc25

I don't know if this information is useful but my locale is NOT en_US.UTF8 but it_IT.UTF8

Comment 3 Othman Madjoudj 2016-10-04 22:17:49 UTC
Thanks for your input, I can reproduce the issue now, it's related to python3-aiohttp-0.22.5-1.fc25 update.

Comment 4 Othman Madjoudj 2016-11-04 23:24:42 UTC
As temp workarround you can downgrade to python3-aiohttp-0.21.6-4.fc25

Comment 5 Othman Madjoudj 2017-04-12 21:24:25 UTC
I believe this was fixed.