()
| 7 | #very ugly prints, but at least it works with python 3 |
| 8 | |
| 9 | def main(): |
| 10 | print("##### System Information #####\n") |
| 11 | print("Platform:", sys.platform) |
| 12 | print("Operating System:", os.name) |
| 13 | print("Python:", sys.version.replace("\n", "")+ "\n") |
| 14 | |
| 15 | try: |
| 16 | import pycurl |
| 17 | print("pycurl:", pycurl.version) |
| 18 | except: |
| 19 | print("pycurl:", "missing") |
| 20 | |
| 21 | try: |
| 22 | import Crypto |
| 23 | print("py-crypto:", Crypto.__version__) |
| 24 | except: |
| 25 | print("py-crypto:", "missing") |
| 26 | |
| 27 | try: |
| 28 | import OpenSSL |
| 29 | print("OpenSSL:", OpenSSL.version.__version__) |
| 30 | except: |
| 31 | print("OpenSSL:", "missing") |
| 32 | |
| 33 | try: |
| 34 | from PIL import Image |
| 35 | print("image library:", Image.VERSION) |
| 36 | except: |
| 37 | try: |
| 38 | import Image |
| 39 | print("image library:", Image.VERSION) |
| 40 | except: |
| 41 | print("image library:", "missing") |
| 42 | |
| 43 | try: |
| 44 | import PyQt4.QtCore |
| 45 | print("pyqt:", PyQt4.QtCore.PYQT_VERSION_STR) |
| 46 | except: |
| 47 | print("pyqt:", "missing") |
| 48 | |
| 49 | from module.common import JsEngine |
| 50 | js = JsEngine.ENGINE if JsEngine.ENGINE else "missing" |
| 51 | print("JS engine:", js) |
| 52 | |
| 53 | |
| 54 | print("\n\n##### System Status #####") |
| 55 | print("\n## pyLoadCore ##") |
| 56 | |
| 57 | core_err = [] |
| 58 | core_info = [] |
| 59 | |
| 60 | if sys.version_info > (2, 8): |
| 61 | core_err.append("Your python version is to new, Please use Python 2.6/2.7") |
| 62 | |
| 63 | if sys.version_info < (2, 5): |
| 64 | core_err.append("Your python version is to old, Please use at least Python 2.5") |
| 65 | |
| 66 | try: |
no test coverage detected