1
0

try to import all python dependencies from the main script

This commit is contained in:
ThomasV
2015-01-26 14:14:16 +01:00
parent d14c03b47f
commit 16c72d286c
4 changed files with 36 additions and 37 deletions

View File

@@ -27,19 +27,13 @@ import time
import traceback
import urllib2
import urlparse
import requests
try:
import paymentrequest_pb2
except:
sys.exit("Error: could not find paymentrequest_pb2.py. Create it with 'protoc --proto_path=lib/ --python_out=lib/ lib/paymentrequest.proto'")
try:
import requests
except ImportError:
sys.exit("Error: requests does not seem to be installed. Try 'sudo pip install requests'")
import bitcoin
import util
import transaction