You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/tmp/diamond", line 25, in <module>
from diamond.server import Server
ImportError: No module named diamond.server
Then I added correct search path (as used by setup.py):
for path in [
os.path.join('/usr', 'share', 'pyshared'),
os.path.join('/opt', 'diamond', 'lib'),
os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'src'))
]:
(to bin/diamond)
$ /usr/bin/python /usr/bin/diamond
Traceback (most recent call last):
File "/usr/bin/diamond", line 26, in <module>
from diamond.server import Server
File "/usr/share/pyshared/diamond/server.py", line 21, in <module>
from diamond.utils.classes import initialize_collector
ImportError: No module named utils.classes
Activity
KlavsKlavsen commentedon Jun 26, 2018
It turns out__init__.py is NOT included in the package-file (for diamond.utils) - diamond and diamond.handler gets it.
KlavsKlavsen commentedon Jun 26, 2018
build output SAYS it does the right thing though - and setup ( ) in setup.py looks correct:
however contents is missing one of the init.py.. :
fix python module search path to work on Ubuntu 16.04. python-diamond…