For both PCs (OSX) I tried to tidy up. With AppCleaner in programs all
Python (except 3.7) was removed.
Whats initially coming with Apple OSX will stay and being updated.
(Currently: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 15:28:37) [GCC
4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Then from python org the most recent python was installed. Currently
Version 3.7.4.
Now in the terminal window
A: entering: python -> Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019,
15:28:37) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
B: entering python3 -> Python 3.7.4 (v3.7.4:e09359112e, Jul 8 2019,
14:54:52) [Clang 6.0 (clang-600.0.57)] on darwin
Now, install one of the 4 solutions. Possibly the most easiest is (not
working before):
' workflow 1) pip only' (see thread entry 31. Aug here)
python3 -m pip install py4web
py4web-start apps (apps will be created for you)'
It works. On a new macmini (10.14.6) 2018 and on a mid 2010 Macbook (OSX
10.13.6). (re 'very old pydal version' on the notebook, the web2py.app was
copied to the notebook prog folder).
Writing these details should be no advertisement for the company. Most
realistic the next notebook won't come from them.
So the infrastructure seems to be fine. On both PCs py4web and web2py is
working,
Am Montag, 2. September 2019 04:21:18 UTC+2 schrieb Massimo Di Pierro:
>
> I think this error
>
> AttributeError: type object 'DAL' has no attribute 'Field'
>
> means you have some very very old version of pydal. Is that possible?
>
> On Sunday, 1 September 2019 02:14:38 UTC-7, Klaus Zinser wrote:
>>
>> Thats was working on the Desktop:
>>
>> workflow 4) from source and install
>>
>> git clone https://github.com/web2py/py4web.git
>>
>> cd py4web
>> make install
>> cd ..
>> mkdir work
>> cd work
>> py4web-start apps
>>
>> For me thats fine and I don't want the risk to destroy. I need to make
>> sure to keep the code actual. Nothing happenened on this: ./py4web-start
>> app.py
>>
>> Nevertheless, that was on the desktop. I tried on the notebook:
>>
>> workflow 1) pip only
>> python3 -m pip install py4web
>> py4web-start apps
>> (apps will be created for you)
>>
>> zvkmcbk:~ klauszinser$ py4web-start app.py
>> Traceback (most recent call last):
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.6/bin/py4web-start", line
>> 11, in
>> ...
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py4web/__init__.py",
>>
>> line 1, in
>>from . core import (
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py4web/core.py",
>>
>> line 209, in
>>setattr(pydal.DAL.Field, _, threadsafevariable.ThreadSafeVariable())
>> AttributeError: type object 'DAL' has no attribute 'Field'
>> zvkmcbk:~ klauszinser$
>>
>> Right now I am fine as the desktop is working. I will play around with
>> the notebook and try 1) pip ony setup.
>>
>> For me its now a low priority.
>>
>> Thank you, Klaus
>>
>> -
>>
>> Am Sonntag, 1. September 2019 04:50:09 UTC+2 schrieb Massimo Di Pierro:
>>>
>>> This is my bad. We just renamed
>>>
>>> ./py4web-start to ./py4web-start app.py
>>>
>>> the reason is that windows did not understand the former. Does this
>>> solver the problems?
>>>
>>> On Saturday, 31 August 2019 14:45:14 UTC-7, Klaus Zinser wrote:
Thanks Val, thanks Massimo,
as there was the chance to tidy up I took the approach from Massimo.
First I tried
py4web-start apps -> working
./py4web-start apps -> not working
Then I tried to tidy up. Most realistic I
#1 deleted the venv (virtual environment),
#2 removed the folder
#3 uninstalled
The I rebooted OSX.
When choosing 1) pip only I got these messages:
You are using pip version 19.0.3, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip'
command.
KlMcM:~ klausv.zinser$ pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st,
2020. Please upgrade your Python as Python 2.7 won't be maintained after
that date. A future version of pip will drop support for Python 2.7. More
details about Python 2 support in pip, can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: pip in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
(19.2.3)
KlMcM:~ klausv.zinser$ py4web-start apps
-bash: py4web-start: command not found
Neither ./py4web-start apps or py4web-start apps was working.
When reviewing what I had done before to install and what I
uninstalled: python3 -m pip uninstall py4web
I went for workflow 4) from source and install (as I had done this
before).
That was working,
I don't want