PyTango Installation Problem.

I'm trying to install pytango on centos 7. I thought I had completed all the steps correctly during the installation process but I get the following error once I try and import tango.

Any help would be appreciated.
thanks

Python 3.6.5 (default, Apr 10 2018, 17:08:37)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tango
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/pytango/pytango-9.2.4/tango/__init__.py", line 137, in <module>
from ._tango import (
ModuleNotFoundError: No module named 'tango._tango'
I know this is an old thread and the installation procedure has changed a lot since, probably.
However, I ran across the exact same error and posting the solution here for future reference.

You are running the Python interpreter from the directory in which you executed
python3 setup.py install

Therefore the local source directory "tango" is on the search path first (see trace) and indeed does not contain _tango.[ver].so
Go to any other directory and you will see if it worked or there are indeed problems.
It should load the code from some directory similar to this:
/usr/local/lib64/python3.6/site-packages/pytango-9.2.5-py3.6-linux-x86_64.egg/tango/

I checked this by entering
import tango
tango.__file__
Edited 4 years ago
 
Register or login to create to post a reply.