face same error too on mac python3.7
*steps*
./web3py-start -p password.txt -a 0.0.0.0:8000 apps
cat << EOF >> apps/_scaffold/models.py
db.define_table('thing', Field('name') )
db.commit()
db.define_table('think', Field('name') )
db.commit()
EOF
open http://localhost:8000/_dashboard

error traceback on terminal (appears when 'reload apps' button hit)
[FAILED] loading _scaffold     
Traceback (most recent call last):
  File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 614, in 
import_apps
    importlib.reload(sys.modules[name])
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/importlib/__init__.py"
, line 169, in reload
    _bootstrap._exec(spec, module)
  File "<frozen importlib._bootstrap>", line 630, in _exec
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in 
_call_with_frames_removed
  File "/Users/sugizo/learn/python/web3py/apps/_scaffold/common.py", line 37
, in <module>
    groups = Tags(db.auth_user, 'groups')
  File "/Users/sugizo/learn/python/web3py/web3py/utils/tags.py", line 14, in 
__init__
    Field('record_id', table))
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
, line 581, in define_table
    raise SyntaxError('table already defined: %s' % tablename)
  File "<string>", line None
SyntaxError: table already defined: auth_user_tag_groups

strange things, error traceback above not occured on _dashboard (recent 
tickets), no ticket id shown yet on terminal
after hit 'reload apps' sometimes stuck in gears animation not in previous 
_dashboard content (installed applications, recent tickets, system)

best regards,
stifan

On Monday, June 3, 2019 at 10:16:27 PM UTC+7, John Bannister wrote:
>
> Hi All,
>
> Finally gotten round to playing again on the latest Web3py.
>
> On _scaffold app .. if I add new tables to model file and then reload from 
> the dashboard .. I get errors as follows:-
>
> File "C:\Users\johhb\py3\lib\site-packages\pydal\base.py", line 581, in 
> define_table
>     raise SyntaxError('table already defined: %s' % tablename)
>   File "<string>", line None
> SyntaxError: table already defined: auth_user_tag_groups
>
> Only way around it seems to be to delete contents of database folder and 
> restart.
>
> Dashboard app hangs on reload sometimes (I think it has to do the with 
> same issue above) and only way to get round it is to restart the server and 
> refresh the _dashboard app. 
>
> I really want to start using it to create a few new apps I am due to start 
> working on shortly even though I am well aware that it is not yet 
> production ready so will keep testing and assist wherever I can. Thanks 
> again for all the hard work put in so far I am sure its gonna be a really 
> cool solution.
>
> Best Regards
> John
>
>
> On Thursday, 16 May 2019 17:15:44 UTC+2, John Bannister wrote:
>>
>> Hi All,
>>
>> Had a first real 'play' with web3py' today and have a few questions the 
>> biggest of which I am hoping the gurus will be able to answer:-
>>
>> 1: Is there any way to not to have to restart the app every time changes 
>> are made to actions in the controller or new actions added etc? I 
>> understand that controllers are basically being imported when the app fires 
>> up but is any there any way to occasionally reload instead of having to 
>> restart the app? This is a fairly big one for me as sometimes tweaks will 
>> need to be made in production and restarting the web server is not really 
>> an option so hopefully I am missing something really simple.
>>
>> Thanks in advance
>> John
>>
>>
>>
>>
>>
>>
>>   
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/34c36d8c-85d8-4565-a40e-db5fc97ac2e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to