From 9eb8a16572cd395ccef86e5f37bc25adea4ec8d5 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 18 Apr 2018 01:55:44 -0500 Subject: [PATCH] added check for gui support --- onionr/onionr.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/onionr/onionr.py b/onionr/onionr.py index 323c3522..25108c39 100755 --- a/onionr/onionr.py +++ b/onionr/onionr.py @@ -21,7 +21,7 @@ along with this program. If not, see . ''' import sys, os, base64, random, getpass, shutil, subprocess, requests, time, platform -import api, core, gui, config, logger, onionrplugins as plugins +import api, core, config, logger, onionrplugins as plugins from onionrutils import OnionrUtils from netcontroller import NetController @@ -30,6 +30,12 @@ try: except ImportError: raise Exception("You need the PySocks module (for use with socks5 proxy to use Tor)") +try: + import gui +except ImportError: + logger.error('You need python3 tkinter and tk installed to use Onionr.') + sys.exit(1) + ONIONR_TAGLINE = 'Anonymous P2P Platform - GPLv3 - onionr.voidnet.tech' ONIONR_VERSION = '0.0.0' # for debugging and stuff API_VERSION = '1' # increments of 1; only change when something fundemental about how the API works changes. This way other nodes knows how to communicate without learning too much information about you.