Closed aftnix closed 9 years ago
A corrective version will be available soon. For the moment, add this file https://raw.githubusercontent.com/Alignak-monitoring/alignak/master/alignak/__init__.py in /home/aftnix/.local/lib/python2.7/site-packages/alignak/ folder
alignak-arbitar
now spits out usage. But still it gives a different exception before printing usage
alignak-arbiter -h
Error processing line 2 of /home/aftnix/.local/lib/python2.7/site-packages/alignak-0.1-py2.7-nspkg.pth:
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 158, in addpackage
exec line
File "<string>", line 1, in <module>
KeyError: 'alignak'
Remainder of file ignored
Which OS are you using? I'll try to reproduce that
$ uname -ar
Linux aftnix-VirtualBox 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=15.10
DISTRIB_CODENAME=wily
DISTRIB_DESCRIPTION="Ubuntu 15.10"
Ok i have a workaround for you because the corrective is still not there.
Remove alignak (pip uninstall alignak) and install it again but with the --egg option (pip install alignak --egg)
Explanation : Actually this prevent pip to use the --single-version-externally-managed that seems to fail with namespace files. As pip says in the setup
Skipping installation of /usr/local/lib/python2.7/dist-packages/alignak/__init__.py (namespace package)
Skipping installation of /usr/local/lib/python2.7/dist-packages/alignak/modules/__init__.py (namespace package)
I use a workaround from people not having this parameter to get pip not use it
Namespace removed, see #238