Closed sairaja992 closed 6 years ago
Traceback (most recent call last): File "aws_inventory.py", line 11, in import aws_inventory.invoker File "/home/ec2-user/saipoc/aws-inventory/aws_inventory/invoker.py", line 11, in import progress File "/home/ec2-user/saipoc/aws-inventory/aws_inventory/progress.py", line 5, in import Tkinter as tk ImportError: No module named Tkinter
The README touches on this in the Installation section. You have to install the Tk library. What OS are you using? On Windows, the library should get installed by default when using the python.org Python installer. On a Linux system with APT package management, you need to install the python-tk package: sudo apt install python-tk
.
@bitsandsalsa I am using the linux and i have done those but still i am facing the issue.
The title of this GitHub issue does not speak to the Python stack trace above. I am assuming the problem has to do with the Python stack trace.
I see you have a home directory of ec2-user. That is indicative of an AWS instance which does not by default have GUI functionality.
What distribution of Linux? If Tk is properly installed, the following file should exist: /usr/lib/python2.7/lib-dynload/_tkinter.so. Does it exist? There is a Tk demo you can run to see if it is working and the version: python -m Tkinter
. What version of Python are you using: python -V
?
@bitsandsalsa : I am using the ubuntu 18 server . I am facing the following issues. If u have some time can u help me to figure it out? It will help me a lot. Thanks.
Traceback (most recent call last):
File "aws_inventory.py", line 320, in
Traceback (most recent call last): File "aws_inventory.py", line 11, in
import aws_inventory.invoker
File "/home/ec2-user/saipoc/aws-inventory/aws_inventory/invoker.py", line 11, in
import progress
File "/home/ec2-user/saipoc/aws-inventory/aws_inventory/progress.py", line 5, in
import Tkinter as tk
ImportError: No module named Tkinter