Description of problem: Tried to execute glances in the terminal. Version-Release number of selected component: glances-2.7.1-3.fc27 Additional info: reporter: libreport-2.9.2 cmdline: /usr/bin/python3 /usr/bin/glances crash_function: connect exception_type: AttributeError executable: /usr/bin/glances kernel: 4.13.4-300.fc27.x86_64 runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: glances_docker.py:98:connect:AttributeError: module 'docker' has no attribute 'Client' Traceback (most recent call last): File "/usr/bin/glances", line 11, in <module> load_entry_point('Glances==2.7.1', 'console_scripts', 'glances')() File "/usr/lib/python3.6/site-packages/glances/__init__.py", line 127, in main args=core.get_args()) File "/usr/lib/python3.6/site-packages/glances/standalone.py", line 68, in __init__ self.stats.update() File "/usr/lib/python3.6/site-packages/glances/stats.py", line 154, in update self._plugins[p].update() File "/usr/lib/python3.6/site-packages/glances/plugins/glances_plugin.py", line 734, in wrapper ret = fct(*args, **kw) File "/usr/lib/python3.6/site-packages/glances/plugins/glances_docker.py", line 153, in update self.docker_client = self.connect() File "/usr/lib/python3.6/site-packages/glances/plugins/glances_docker.py", line 98, in connect ret = docker.Client(base_url='unix://var/run/docker.sock') AttributeError: module 'docker' has no attribute 'Client' Local variables in innermost frame: version: None
Created attachment 1335038 [details] File: backtrace
Created attachment 1335039 [details] File: cgroup
Created attachment 1335040 [details] File: cpuinfo
Created attachment 1335041 [details] File: environ
Created attachment 1335042 [details] File: mountinfo
Created attachment 1335043 [details] File: namespaces
Created attachment 1335044 [details] File: open_fds
Similar problem has been detected: Tried to run glances command in the terminal where docker-py module is installed. reporter: libreport-2.9.2 cmdline: /usr/bin/python3 /usr/bin/glances crash_function: connect exception_type: AttributeError executable: /usr/bin/glances kernel: 4.13.8-300.fc27.x86_64 package: glances-2.7.1-3.fc27 reason: glances_docker.py:98:connect:AttributeError: module 'docker' has no attribute 'Client' runlevel: N 5 type: Python3 uid: 1000
Similar problem has been detected: Just run 'glances'. reporter: libreport-2.9.2 cmdline: /usr/bin/python3 /usr/bin/glances -b crash_function: connect exception_type: AttributeError executable: /usr/bin/glances kernel: 4.13.9-300.fc27.x86_64 package: glances-2.7.1-3.fc27 reason: glances_docker.py:98:connect:AttributeError: module 'docker' has no attribute 'Client' runlevel: N 5 type: Python3 uid: 1000
There is a workaround for this problem: use an updated version sudo dnf copr enable tartare/glances sudo dnf update glances And it's working
(In reply to Didier from comment #10) > There is a workaround for this problem: use an updated version > sudo dnf copr enable tartare/glances > sudo dnf update glances > > And it's working Then the fix is to update the official repo version :)
Whoa! The last fedora glances version is 2.5 and it's already 2 years old. If you visited glances releases, you'll find that last release was on Aug 27 and it's 2.11: https://github.com/nicolargo/glances/releases We need to update this package, ASAP.
Sorry, the last update is 2.7 on Fedora 27 but it doesn't show up in the Bodhi list: https://bodhi.fedoraproject.org/updates/?packages=glances
I made a PR on src.fedoraproject.org for new glances version to update to 2.11.1, I hope it gets merged soon and released: https://src.fedoraproject.org/rpms/glances/pull-request/1
glances-2.11.1-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-ce1b9a88bb
glances-2.11.1-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-4ec108000a
glances-2.11.1-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-ce1b9a88bb
glances-2.11.1-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-4ec108000a
glances-2.11.1-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.