import cgitb
cgitb.enable()
# debug

Это Python! Он запущен!

Впервые на бесплатном хостинге!

Информация о системе

GET INFO!
__name__ = __main__
* sys.argv = ['/home/x/x90048bt/x90048bt.beget.tech/public_html/cgi-bin/hello.py']
* sys.exec_prefix = /usr
* sys.executable = /usr/bin/python2
* sys.flags = sys.flags(debug=0, py3k_warning=0, division_warning=0, division_new=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, tabcheck=0, verbose=0, unicode=0, bytes_warning=0, hash_randomization=0)
* sys.path = ['/home/x/x90048bt/x90048bt.beget.tech/public_html/cgi-bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']
* sys.platform = linux2
* sys.prefix = /usr
* sys.version = 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0]
* sys.api_version = 1013
* os.name = posix
* os.environ = {'GEOIP_CITY': 'Ashburn', 'GEOIP_LONGITUDE': '-77.47280', 'CONTEXT_DOCUMENT_ROOT': '/home/x/x90048bt/x90048bt.beget.tech/public_html/cgi-bin/', 'SERVER_SOFTWARE': 'Apache/2.4.10 (Unix)', 'CONTEXT_PREFIX': '/cgi-bin/', 'HTTP_IF_MODIFIED_SINCE': 'Wed, 01 Apr 2020 00:10:55 JST', 'SERVER_SIGNATURE': '<address>Apache/2.4.10 (Unix) Server at alekssamosbt.ru Port 80</address>\n', 'MMDB_ADDR': '3.231.226.13', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HTTP_X_REAL_IP': '3.231.226.13', 'HTTP_USER_AGENT': 'CCBot/2.0 (https://commoncrawl.org/faq/)', 'SERVER_NAME': 'alekssamosbt.ru', 'REMOTE_ADDR': '3.231.226.13', 'GEOIP_COUNTRY_NAME': 'United States', 'REQUEST_METHOD': 'GET', 'SERVER_PORT': '80', 'HTTP_X_SERVER_ADDR': '87.236.16.21', 'MMDB_INFO': 'result found', 'REQUEST_URI': '/cgi-bin/hello.py', 'SERVER_ADDR': '87.236.16.21', 'DOCUMENT_ROOT': '/home/x/x90048bt/x90048bt.beget.tech/public_html', 'HTTP_X_FORWARDED_PROTO': 'http', 'SCRIPT_FILENAME': '/home/x/x90048bt/x90048bt.beget.tech/public_html/cgi-bin/hello.py', 'SERVER_ADMIN': 'webmaster@alekssamosbt.ru', 'GEOIP_CONTINENT_CODE': 'NA', 'HTTP_HOST': 'alekssamosbt.ru', 'SCRIPT_NAME': '/cgi-bin/hello.py', 'GEOIP_POSTAL_CODE': '20149', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'GEOIP_LATITUDE': '39.04810', 'GATEWAY_INTERFACE': 'CGI/1.1', 'REMOTE_PORT': '6795', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'REQUEST_SCHEME': 'http', 'GEOIP_REGION': 'VA', 'GEOIP_ADDR': '3.231.226.13', 'GEOIP_COUNTRY_CODE': 'US', 'UNIQUE_ID': 'XtlLbQVlnGQAAN2n0S8AAAAC', 'HTTP_ACCEPT_ENCODING': 'br,gzip', 'PERL_USE_UNSAFE_INC': '1'}
* os.getpid() = 56926
* os.uname() = ('Linux', 'bigbone.beget.ru', '4.9.132-0-beget-acl', '#1 SMP Fri Nov 2 12:51:30 MSK 2018', 'x86_64')
* os.getcwd() = /home/x/x90048bt/x90048bt.beget.tech/public_html/cgi-bin

Тест форм


--> -->
 
 
<type 'exceptions.AttributeError'>
Python 2.7.15rc1: /usr/bin/python2
Thu Jun 4 22:28:45 2020

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/x/x90048bt/x90048bt.beget.tech/public_html/cgi-bin/hello.py in ()
     54 </form>""")
     55 import cgi
=>   56 print("<pre>cgi.form: "+ str(cgi.form) +"</pre>")
     57 print("""
     58 </body>
builtin str = <type 'str'>, cgi = <module 'cgi' from '/usr/lib/python2.7/cgi.pyc'>, cgi.form undefined

<type 'exceptions.AttributeError'>: 'module' object has no attribute 'form'
      args = ("'module' object has no attribute 'form'",)
      message = "'module' object has no attribute 'form'"