thx carlos, here is the steps i took
git clone --recursive https://github.com/web2py/web2py.git
cd web2py/gluon/packages/dal/
git checkout modular

$ python -V
Python 3.7.1
$ python ../../../setup.py
Traceback (most recent call last):
  File "../../../setup.py", line 85, in <module>
    start()
  File "../../../setup.py", line 32, in start
    version=read_file("VERSION").split()[1],
  File "/Users/sugizo/Downloads/learn/web2py/gluon/fileutils.py", line 112, 
in read_file
    f = open_file(filename, mode)
  File "/Users/sugizo/Downloads/learn/web2py/gluon/fileutils.py", line 104, 
in open_file
    f = open(filename, mode, encoding="utf8")
FileNotFoundError: [Errno 2] No such file or directory: 'VERSION'
$ python ../../../web2py.py
$ open http://localhost:8000
$ open http://localhost:8000/admin/default/site

on http://localhost:8000/admin/default/site
*Version*
2.17.2-stable+timestamp.2018.10.06.11.34.06
(Running on Rocket 1.2.6, Python 3.7.1)

*suggestion*
why the upgrade now to version 2.17.2 is active, just a suggestion think 
the button for upgrade now should be disable if the version is same or same 
like behaviour in previous version : 
the button for upgrade is shown (Check for upgrades)
see below for test in python 2.7

$ python -V
Python 2.7.15 :: Anaconda, Inc.
$ python ../../../setup.py
/Users/sugizo/miniconda3/envs/python2_prod/lib/python2.7/site-packages/
psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be 
renamed from release 2.8; in order to keep installing from binary please use 
"pip 
install psycopg2-binary" instead. For details see: <http:
//initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
  """)
Traceback (most recent call last):
  File "../../../setup.py", line 85, in <module>
    start()
  File "../../../setup.py", line 32, in start
    version=read_file("VERSION").split()[1],
  File "/Users/sugizo/Downloads/learn/web2py/gluon/fileutils.py", line 112, 
in read_file
    f = open_file(filename, mode)
  File "/Users/sugizo/Downloads/learn/web2py/gluon/fileutils.py", line 102, 
in open_file
    f = open(filename, mode)
IOError: [Errno 2] No such file or directory: 'VERSION'
$ python ../../../web2py.py
$ open http://localhost:8000/admin/default/site
$ open http://localhost:8000
Traceback (most recent call last):
  File "/Users/sugizo/Downloads/learn/web2py/gluon/restricted.py", line 
219, in restricted
    exec(ccode, environment)
  File "/Users/sugizo/Downloads/learn/web2py/applications/welcome/models/db.
py", line 95, in <module>
    auth.define_tables(username=False, signature=False)
  File "/Users/sugizo/Downloads/learn/web2py/gluon/tools.py", line 2091, in 
define_tables
    super(Auth, self).define_tables(username, signature, migrate, 
fake_migrate)._table_signature_list
  File "/Users/sugizo/Downloads/learn/web2py/gluon/authapi.py", line 350, 
in define_tables
    format='%(first_name)s %(last_name)s (%(id)s)'))
  File "/Users/sugizo/Downloads/learn/web2py/gluon/packages/dal/pydal/base.
py", line 590, in define_table
    table = self.lazy_define_table(tablename, *fields, **kwargs)
  File "/Users/sugizo/Downloads/learn/web2py/gluon/packages/dal/pydal/base.
py", line 624, in lazy_define_table
    polymodel=polymodel)
  File "/Users/sugizo/Downloads/learn/web2py/gluon/packages/dal/pydal/
adapters/base.py", line 798, in create_table
    return self.migrator.create_table(*args, **kwargs)
  File "/Users/sugizo/Downloads/learn/web2py/gluon/packages/dal/pydal/
migrator.py", line 296, in create_table
    sql_fields_old = pickle.load(tfile)
  File "/Users/sugizo/miniconda3/envs/python2_prod/lib/python2.7/pickle.py", 
line 1384, in load
    return Unpickler(file).load()
  File "/Users/sugizo/miniconda3/envs/python2_prod/lib/python2.7/pickle.py", 
line 864, in load
    dispatch[key](self)
  File "/Users/sugizo/miniconda3/envs/python2_prod/lib/python2.7/pickle.py", 
line 892, in load_proto
    raise ValueError, "unsupported pickle protocol: %d" % proto
ValueError: unsupported pickle protocol: 3

using python 2.7 can run admin but not for welcome app
*Version*
2.17.2-stable+timestamp.2018.10.06.11.34.06
(Running on Rocket 1.2.6, Python 2.7.15)
the button for upgrade is shown (Check for upgrades)

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to