Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sairaja992 opened this issue Aug 23, 2018 · 5 comments
Closed

Comments

@sairaja992
Copy link

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
Copy link
Author

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
Copy link
Collaborator

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
Copy link

challs1 commented Aug 23, 2018

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

@bitsandsalsa
Copy link
Collaborator

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
Copy link

challs1 commented Aug 29, 2018

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants