Форум сайта python.su
>>> import wx >>> wx.version() '4.0.0b1 msw (phoenix)'
import wx print (wx.version())
AttributeError: module ‘wx’ has no attribute ‘version’
data_from_file = json.loads(infile) object1.__dict__.update(data_from_file)
C:\Windows\system32>python -m easy_install python-ldap Searching for python-ldap Reading https://pypi.python.org/simple/python-ldap/ Downloading https://pypi.python.org/packages/03/3d/52b2624c98b5e599b1eeebe66db0f7f7257d429df994c75e15e79dbf4a1c/python-ldap-2.4.43.tar.gz#md5=acf67f597c7665a41c6b90ed5e89f3f2 Best match: python-ldap 2.4.43 Processing python-ldap-2.4.43.tar.gz Writing c:\users\user\appdata\local\temp\easy_install-7rncih\python-ldap-2.4.43\setup.cfg Running python-ldap-2.4.43\setup.py -q bdist_egg --dist-dir c:\users\user\appdata\local\temp\easy_install-7rncih\python-ldap-2.4.43\egg-dist-tmp-rbzhhe defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R extra_compile_args: extra_objects: include_dirs: /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl library_dirs: /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 libs: ldap_r file Lib\ldap.py (for module ldap) not found file Lib\ldap\controls.py (for module ldap.controls) not found file Lib\ldap\extop.py (for module ldap.extop) not found file Lib\ldap\schema.py (for module ldap.schema) not found warning: no files found matching 'Makefile' warning: no files found matching 'Modules\LICENSE' file Lib\ldap.py (for module ldap) not found file Lib\ldap\controls.py (for module ldap.controls) not found file Lib\ldap\extop.py (for module ldap.extop) not found file Lib\ldap\schema.py (for module ldap.schema) not found file Lib\ldap.py (for module ldap) not found file Lib\ldap\controls.py (for module ldap.controls) not found file Lib\ldap\extop.py (for module ldap.extop) not found file Lib\ldap\schema.py (for module ldap.schema) not found LDAPObject.c c:\users\user\appdata\local\temp\easy_install-7rncih\python-ldap-2.4.43\modules\errors.h(8) : fatal error C1083: Cannot open include file: 'lber.h': No such file or directory error: Setup script exited with error: command 'C:\\Users\\user\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
s = Session() url_get_start = 'https://192.168.0.21:8443/WebTest/' req_start = Request('GET', url_get_start, headers=headers ) prepped_start = s.prepare_request(req_start) resp_start = s.send(prepped_start, verify='C:/Users/bosap/Desktop/keys/cert_uc.cer', cert=('C:/Users/bosap/Desktop/keys/crt.pem', 'C:/Users/bosap/Desktop/bsb_keys/key.pem'), timeout=5 ) print(resp_start.status_code)
setup( name = "21", version = "0.1", description = "Blackjack", executables = [Executable("21.py")] )