Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg_resources.DistributionNotFound: monasca-agent #28

Open
hawkwang opened this issue Feb 28, 2015 · 1 comment
Open

pkg_resources.DistributionNotFound: monasca-agent #28

hawkwang opened this issue Feb 28, 2015 · 1 comment

Comments

@hawkwang
Copy link

I encounter to execute this installer with following error messages:

TASK: [Run monasca-collector info to find any problems on the host] ***********
<10.103.13.196>
<10.103.13.196>
<10.103.13.196> PubkeyAuthentication=no ConnectTimeout=10 GSSAPIAuthentication=no User=root ControlPath=/home/hawkwang/.ansible/cp/ansible-ssh-%h-%p-%r ControlMaster=auto Port=22 ControlPersist=60s
<10.103.15.94>
<10.103.15.94>
<10.103.15.94> PubkeyAuthentication=no ConnectTimeout=10 GSSAPIAuthentication=no User=root ControlPath=/home/hawkwang/.ansible/cp/ansible-ssh-%h-%p-%r ControlMaster=auto Port=22 ControlPersist=60s
<10.103.13.196>
<10.103.15.94>
<10.103.13.196> PubkeyAuthentication=no ConnectTimeout=10 GSSAPIAuthentication=no 'LANG=C LC_CTYPE=C /usr/bin/python /root/.ansible/tmp/ansible-tmp-1425090256.88-82100347983650/command; rm -rf /root/.ansible/tmp/ansible-tmp-1425090256.88-82100347983650/ >/dev/null 2>&1' User=root ControlPath=/home/hawkwang/.ansible/cp/ansible-ssh-%h-%p-%r ControlMaster=auto Port=22 ControlPersist=60s
<10.103.15.94> PubkeyAuthentication=no ConnectTimeout=10 GSSAPIAuthentication=no 'LANG=C LC_CTYPE=C /usr/bin/python /root/.ansible/tmp/ansible-tmp-1425090256.91-123757132934374/command; rm -rf /root/.ansible/tmp/ansible-tmp-1425090256.91-123757132934374/ >/dev/null 2>&1' User=root ControlPath=/home/hawkwang/.ansible/cp/ansible-ssh-%h-%p-%r ControlMaster=auto Port=22 ControlPersist=60s
failed: [10.103.13.196] => {"changed": true, "cmd": ["monasca-collector", "info"], "delta": "0:00:00.234708", "end": "2015-02-28 10:24:17.310516", "rc": 1, "start": "2015-02-28 10:24:17.075808", "warnings": []}
stderr: /usr/local/lib/python2.7/dist-packages/monasca_agent/common/config.py:4: UserWarning: Module _yaml was already imported from /usr/lib/python2.7/dist-packages/_yaml.so, but /usr/local/lib/python2.7/dist-packages is being added to sys.path
import pkg_resources
Traceback (most recent call last):
File "/usr/local/bin/monasca-collector", line 6, in
from monasca_agent.collector.daemon import main
File "/usr/local/lib/python2.7/dist-packages/monasca_agent/collector/daemon.py", line 12, in
import checks.collector
File "/usr/local/lib/python2.7/dist-packages/monasca_agent/collector/checks/init.py", line 1, in
from check import AgentCheck
File "/usr/local/lib/python2.7/dist-packages/monasca_agent/collector/checks/check.py", line 19, in
import monasca_agent.common.check_status as check_status
File "/usr/local/lib/python2.7/dist-packages/monasca_agent/common/check_status.py", line 104, in
class AgentStatus(object):
File "/usr/local/lib/python2.7/dist-packages/monasca_agent/common/check_status.py", line 111, in AgentStatus
agent_config = config.Config()
File "/usr/local/lib/python2.7/dist-packages/monasca_agent/common/singleton.py", line 8, in call
cls.instance = super(Singleton, cls).call(_args, *_kw)
File "/usr/local/lib/python2.7/dist-packages/monasca_agent/common/config.py", line 41, in init
self._read_config()
File "/usr/local/lib/python2.7/dist-packages/monasca_agent/common/config.py", line 69, in _read_config
self._config = self._retrieve_sections(file_config)
File "/usr/local/lib/python2.7/dist-packages/monasca_agent/common/config.py", line 83, in _retrieve_sections
'version': self.get_version(),
File "/usr/local/lib/python2.7/dist-packages/monasca_agent/common/config.py", line 61, in get_version
return pkg_resources.require("monasca-agent")[0].version
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: monasca-agent

And I checked that the monasca-agent is installed well.

@craigbr
Copy link
Contributor

craigbr commented Mar 2, 2015

Hi. We need a little more information to help you out. Can you send the output of:

pip list | grep monasca-agent

And tell us exactly what operating system you are trying to run the agent on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants