You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
593 B
Python
26 lines
593 B
Python
11 years ago
|
import sys
|
||
|
errors = False
|
||
|
|
||
|
try:
|
||
|
import zmq
|
||
|
except ImportError, e:
|
||
|
sys.stderr.write("You are missing ZeroMQ; `pip install pyzmq`\n")
|
||
|
errors = True
|
||
|
|
||
|
try:
|
||
|
import zmq
|
||
|
except ImportError, e:
|
||
|
sys.stderr.write("You are missing msgpack; `pip install msgpack-python`\n")
|
||
|
errors = True
|
||
|
|
||
|
try:
|
||
|
import zmq
|
||
|
except ImportError, e:
|
||
|
sys.stderr.write("You are missing requests; `pip install requests`\n")
|
||
|
errors = True
|
||
|
|
||
|
if errors == False:
|
||
|
subprocess.call(["/bin/sh", "_start.sh"])
|
||
|
|
||
|
sys.stdout.write("pastebin-scrape is now running. Run `python retrieve.py` to add additional retrieval workers.\n")
|