nccgroup / aws-inventory

Discover resources created in an AWS account.
Apache License 2.0
704 stars 131 forks source link

Profile was not running And the issue was this can u help me out? #8

Closed sairaja992 closed 6 years ago

sairaja992 commented 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

sairaja992 commented 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

bitsandsalsa commented 6 years ago

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.

challs1 commented 6 years ago

@bitsandsalsa I am using the linux and i have done those but still i am facing the issue.

bitsandsalsa commented 6 years ago

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?

challs1 commented 6 years ago

@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 main(parse_args()) File "aws_inventory.py", line 317, in main aws_inventory.invoker.ApiInvoker(args, service_descriptors, ops_count).start() File "/home/ubuntu/aws-inventory/aws_inventory/invoker.py", line 44, in start self._probe_services) File "/home/ubuntu/aws-inventory/aws_inventory/progress.py", line 16, in init ttk.Frame.init(self, relief='ridge', borderwidth=2) File "/usr/lib/python2.7/lib-tk/ttk.py", line 738, in init Widget.init(self, master, "ttk::frame", kw) File "/usr/lib/python2.7/lib-tk/ttk.py", line 551, in init master = setup_master(master) File "/usr/lib/python2.7/lib-tk/ttk.py", line 354, in setup_master master = Tkinter._default_root or Tkinter.Tk() File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1822, in init self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: no display name and no $DISPLAY environment variable