summaryrefslogtreecommitdiffstats
path: root/systemCheck.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2014-05-19 14:04:58 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-28 03:03:01 +0200
commit171904c1bf41c0444d1dde283ceb2f820bce75ea (patch)
treed6ac52600d2902671c6c8668b13cb9dd2d89c101 /systemCheck.py
parentFixed just_header HEAD request issue. (diff)
downloadpyload-171904c1bf41c0444d1dde283ceb2f820bce75ea.tar.xz
Porting to Pillow
See #620 and #254 + PEP 8
Diffstat (limited to 'systemCheck.py')
-rw-r--r--systemCheck.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/systemCheck.py b/systemCheck.py
index d46a2d99a..a1f8ba67f 100644
--- a/systemCheck.py
+++ b/systemCheck.py
@@ -6,11 +6,12 @@ import sys
#very ugly prints, but at least it works with python 3
+
def main():
print("##### System Information #####\n")
print("Platform:", sys.platform)
print("Operating System:", os.name)
- print("Python:", sys.version.replace("\n", "")+ "\n")
+ print("Python:", sys.version.replace("\n", "") + "\n")
try:
import pycurl
@@ -24,7 +25,6 @@ def main():
except:
print("py-crypto:", "missing")
-
try:
import OpenSSL
print("OpenSSL:", OpenSSL.version.__version__)
@@ -32,7 +32,7 @@ def main():
print("OpenSSL:", "missing")
try:
- import Image
+ from PIL import Image
print("image libary:", Image.VERSION)
except:
print("image libary:", "missing")
@@ -60,14 +60,13 @@ def main():
except:
core_err.append("Please install py-curl to use pyLoad.")
-
try:
from pycurl import AUTOREFERER
except:
core_err.append("Your py-curl version is to old, please upgrade!")
try:
- import Image
+ from PIL import Image
except:
core_err.append("Please install py-imaging/pil to use Hoster, which uses captchas.")
@@ -94,7 +93,6 @@ def main():
for line in core_info:
print(line)
-
print("\n## pyLoadGui ##")
gui_err = []
@@ -111,7 +109,6 @@ def main():
else:
print("No Problems detected, pyLoadGui should work fine.")
-
print("\n## Webinterface ##")
web_err = []
@@ -122,7 +119,6 @@ def main():
except:
web_info.append("Install Flup to use FastCGI or optional webservers.")
-
if web_err:
print("The system check has detected some errors:\n")
for err in web_err: