web2py ubuntu 16

57 views
Skip to first unread message

Ovidio Marinho

unread,
Jan 26, 2021, 7:33:59 AM1/26/21
to web...@googlegroups.com


I installed web2py using the setup_ubuntu.sh script and
I don't know what is happening with these errors

restarting apage ================ * Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message [ OK ] Traceback (most recent call last): File "<string>", line 1, in <module> File "gluon / widget.py", line 27, in <module> from gluon.shell import die, run, test File "gluon / shell.py", line 288 exec (read_pyc (pycfile), _env) SyntaxError: unqualified exec is not allowed in function 'run' it contains a nested function with free variables admin password: ov0466 Traceback (most recent call last): File "<string>", line 1, in <module> File "gluon / main.py", line 593, in save_password fp.write ('password = "% s" \ n'% cpassword) File "/home/www-data/web2py/gluon/packages/dal/pydal/validators.py", line 4302, in __str__ hashed = simple_hash (self.password, key, salt, digest_alg) File "/home/www-data/web2py/gluon/packages/dal/pydal/validators.py", line 4223, in simple_hash pbkdf2_hex (text, salt, int (iterations), int (keylen), get_digest (alg)) File "/home/www-data/web2py/gluon/packages/dal/pydal/validators.py", line 4205, in pbkdf2_hex hmac = hashlib.pbkdf2_hmac ( AttributeError: 'module' object has no attribute 'pbkdf2_hmac' done!
I confess that I never saw this error.



                  
                    
          Ovidio Marinho Falcao Neto
                 ovid...@gmail.com

                            Brasil
            

Dave S

unread,
Jan 26, 2021, 3:13:21 PM1/26/21
to web2py-users
On Tuesday, January 26, 2021 at 4:33:59 AM UTC-8 Ovidio Marinho wrote:
I installed web2py using the setup_ubuntu.sh script and
I don't know what is happening with these errors


restarting apage
================
 * Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[...] 
  File "/home/www-data/web2py/gluon/packages/dal/pydal/validators.py", line 4205, in pbkdf2_hex
    hmac = hashlib.pbkdf2_hmac (
AttributeError: 'module' object has no attribute 'pbkdf2_hmac'
done!
I confess that I never saw this error.
Please reveal the versions you are using of 

-- web2py
-- Python
-- Apache
-- Ubuntu

Please note that using Apache is not recommended unless you already have it working [for either web2py or other webservers]; new users are encouraged to use NginX.

/dps

Reply all
Reply to author
Forward
0 new messages