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

output file with no desktop #21

Open
shumyster opened this issue Mar 15, 2019 · 4 comments
Open

output file with no desktop #21

shumyster opened this issue Mar 15, 2019 · 4 comments

Comments

@shumyster
Copy link

Running EC2 instance of ubuntu 18.04, no desktop.

Even though I installed the python-tk (sudo apt-get install python-tk), I get the following stacktrace which has been mentioned in other issue reports:

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

running the python -m command also showed the same output

sudo python -m Tkinter
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 3864, in
_test()
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 3839, in _test
root = 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

What I am looking for is the output file of the scan. I can offload the ~/aws-inventory/gui directory to my Win desktop, get the gui working, but looking for the data file to upload.
not sure if the scan produced an output file due to the error above, but if it has, please provide output location.

Thanks.

@dariushazimi
Copy link

Same issue here, can't find the output file

@AdallomRoy
Copy link

AdallomRoy commented Apr 4, 2020

If you're using Ubuntu or any other *nix distro, you can use xvfb to create a virtual screen, that will make it finish.
Something like this:
apt-get install -y xvfb
xvfb-run python aws_inventory.py

@ncc-erik-steringer
Copy link
Collaborator

Cleaning out issues. Would you be able to try the develop branch, which shifted to Python 3 support, to see if that works better?

@mengmann
Copy link

Tested with python3 and develop branch with docker. I got my inventory.json file inside the gui folder

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

No branches or pull requests

5 participants