please help testing web3py

421 views
Skip to first unread message

Massimo Di Pierro

unread,
Jul 7, 2019, 3:57:26 AM7/7/19
to web2py-users
Let's test the dashboard today:

# download web2py from pypi

python3 -m pip install web3py

# start it:

web3py-start myapps

(pick a one time password  and answer yes when it wants to create something, it will create myapps folder and a temp .web3py-service folder)

# open browser


Now create a new app by cloning scaffold

Does it work?
How does it flow?
What explanations should be necessary?
Can you write a brief documentation of your experience for other users?


Message has been deleted

Nico Zanferrari

unread,
Jul 7, 2019, 8:17:12 AM7/7/19
to web...@googlegroups.com
Hi Massimo,

on a fresh VM with Windows 10 and Python 3.7.3 I've got traceback errors starting the _dashboard:

RuntimeError: Failure to connect, tried 5 times:
[...]
sqlite3.OperationalError: unable to open database file
[...] 

 
(see attachment for details)


Nico

--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/2a42c89f-cb28-4672-8f3a-f56ff883ccc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
web3py_win_error.txt

Jim S

unread,
Jul 7, 2019, 3:12:07 PM7/7/19
to web2py-users
Same for me on Ubuntu 19.04

-Jim


On Sunday, July 7, 2019 at 3:17:12 AM UTC-5, Nico Zanferrari wrote:
Hi Massimo,

on a fresh VM with Windows 10 and Python 3.7.3 I've got traceback errors starting the _dashboard:

RuntimeError: Failure to connect, tried 5 times:
[...]
sqlite3.OperationalError: unable to open database file
[...] 

 
(see attachment for details)


Nico

Il giorno dom 7 lug 2019 alle ore 05:57 Massimo Di Pierro <massimo...@gmail.com> ha scritto:
Let's test the dashboard today:

# download web2py from pypi

python3 -m pip install web3py

# start it:

web3py-start myapps

(pick a one time password  and answer yes when it wants to create something, it will create myapps folder and a temp .web3py-service folder)

# open browser


Now create a new app by cloning scaffold

Does it work?
How does it flow?
What explanations should be necessary?
Can you write a brief documentation of your experience for other users?


--
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 web...@googlegroups.com.

Massimo Di Pierro

unread,
Jul 7, 2019, 6:51:31 PM7/7/19
to web2py-users
New version posted. Pleas try again.

Mind that you have to delete apps/_dashboard and apps/_default if you want them to be upgraded upon restart
Message has been deleted

Nico Zanferrari

unread,
Jul 8, 2019, 5:10:47 AM7/8/19
to web...@googlegroups.com
It runs fine on Windows 10, too.
But I'm not able to create a new user and it also complains about missing favicon.ico.

Nico

Il Lun 8 Lug 2019, 01:56 黄祥 <steve.van...@gmail.com> ha scritto:
run well on docker container : ubuntu and mac

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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/7f68121a-d157-4445-97e1-57aff3ed8fd0%40googlegroups.com.

JSalvat

unread,
Jul 8, 2019, 5:25:36 PM7/8/19
to web2py-users

Not working for me on windows10

c:\wwwroot\web3py>python web3py-start apps

 _______  ____________  ____  ______  __
|  ____/ / / ____/ __ |/___ \/ __ \ \/ /
| |     / / /_  / /_/ /___/ / /_/ /\  /
| | /| / / __/ / __  //__  / ____/ / /
| |/ |/ / /___/ /_/ /___/ / / ____/ /
|___/|_/_____/_____/_____/_/ /_____/
It is still experimental...

Choose a one-time dashboad password:
[ ] Unzipping app web3py.app._default.zip
[A[X]
Traceback (most recent call last):
  File "web3py-start", line 6, in <module>
    main()
  File "c:\wwwroot\web3py\web3py\core.py", line 763, in main
    Reloader.import_apps()
  File "c:\wwwroot\web3py\web3py\core.py", line 620, in import_apps
    module = importlib.machinery.SourceFileLoader('apps', path).load_module()
  File "<frozen importlib._bootstrap_external>", line 407, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 907, in load_module
  File "<frozen importlib._bootstrap_external>", line 732, in load_module
  File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 724, in exec_module
  File "<frozen importlib._bootstrap_external>", line 859, in get_code
  File "<frozen importlib._bootstrap_external>", line 916, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\wwwroot\\web3py\\apps\\__init__.py'

c:\wwwroot\web3py>

 

Stephan

unread,
Jul 8, 2019, 11:04:23 PM7/8/19
to web2py-users
As far as I can tell, it works under macOS 10.14.5, I was able to generate a new app from the admin dashboard. 
However, apart from the missing favicon, the console reports these errors:

ERROR:root:Traceback (most recent call last):

  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/web3py/core.py", line 429, in wrapper

    ret = func(*func_args, **func_kwargs)

  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/web3py/core.py", line 395, in wrapper

    ret = func(*args, **kwargs)

  File "/Users/stp/Sites/web3py/myapps/_dashboard/__init__.py", line 178, in api

    from pydal.restapi import RestAPI, ALLOW_ALL_POLICY, DENY_ALL_POLICY

ModuleNotFoundError: No module named 'pydal.restapi'


Please remove these spinning gears!

Massimo Di Pierro

unread,
Jul 9, 2019, 4:44:53 AM7/9/19
to web2py-users
please delete the apps folder and let it re-create it

On Sunday, 7 July 2019 22:10:47 UTC-7, Nico Zanferrari wrote:
It runs fine on Windows 10, too.
But I'm not able to create a new user and it also complains about missing favicon.ico.

Nico

Il Lun 8 Lug 2019, 01:56 黄祥 <steve.van...@gmail.com> ha scritto:
run well on docker container : ubuntu and mac

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+unsubscribe@googlegroups.com.

Massimo Di Pierro

unread,
Jul 9, 2019, 4:45:48 AM7/9/19
to web2py-users
LOL. I love the spinnig gears.

You have an older version of pydal. Can you uninstall and pip3 install it again

Jim Steil

unread,
Jul 9, 2019, 12:43:43 PM7/9/19
to web...@googlegroups.com
Works for me now.  I deleted myapps and retried.  Didn't work, got a database error (unfortunately, I didn't copy it).  Then python3 -m pip install --upgrade web3py.  Worked after that.

-Jim

On Mon, Jul 8, 2019 at 11:44 PM Massimo Di Pierro <massimo....@gmail.com> wrote:
please delete the apps folder and let it re-create it

On Sunday, 7 July 2019 22:10:47 UTC-7, Nico Zanferrari wrote:
It runs fine on Windows 10, too.
But I'm not able to create a new user and it also complains about missing favicon.ico.

Nico

Il Lun 8 Lug 2019, 01:56 黄祥 <steve.van...@gmail.com> ha scritto:
run well on docker container : ubuntu and mac

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+un...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/Jm30RfBpLLo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/14ce78c3-aea3-47b5-babd-f3b04c4a8bbd%40googlegroups.com.

Carlos Costa

unread,
Jul 9, 2019, 12:51:37 PM7/9/19
to web...@googlegroups.com
I was able to install, start and create app without problems on Ubuntu 19.4


For more options, visit https://groups.google.com/d/optout.


--
At.

Carlos J. Costa
--------------------------------------------------------------
Cientista da Computação - Esp. Gestão em Telecom

Relsi Maron

unread,
Jul 9, 2019, 1:21:54 PM7/9/19
to web2py-users

 
Does it work?

Works fine here.
Ubuntu 16.04
Python 3.5
 
How does it flow?

In a fresh install, its flow easy.
 
What explanations should be necessary?

None, at now.
 
Can you write a brief documentation of your experience for other users?

I simply followed the instructions in the email and had no problem. I did not have another version installed, so I believe you used a version with no issues.
 

Lovedie JC

unread,
Jul 9, 2019, 1:23:44 PM7/9/19
to web...@googlegroups.com
Working for me but getting 40 Errors on myapp, _scaffolding. 

Jim Steil

unread,
Jul 9, 2019, 1:30:05 PM7/9/19
to web...@googlegroups.com
I believe mine was because I had an older version installed.  I should have removed the old version first.

-Jim

Massimo Di Pierro

unread,
Jul 9, 2019, 3:35:19 PM7/9/19
to web2py-users
Fantastic. I am writing some documentation. Especially about the differences with web2py. They are subtle but there are many.

Stephan

unread,
Jul 9, 2019, 4:05:07 PM7/9/19
to web2py-users
Okay, with the updated pydal, the errors have disappeared. I succeeded cloning a scaffolding app. However, when I try to register in my new app (page: http://127.0.0.1:8000/lovit/auth/register) I get an 404:
WARNING:tornado.access:404 POST /_scaffold/auth/api/register (127.0.0.1) 1.47ms 

There is a new link to the documentation now on the startpage. I'm not sure if it's just a dummy but it does not work. Favicons are missing.

If you need support for the user guide, maybe I can help and evaluate the texts from the noob's point of view. I'd recommend that a description of the docker installation process be included, since this seems to be the best way to publish I suppose.

Carlos Costa

unread,
Jul 9, 2019, 8:06:49 PM7/9/19
to web...@googlegroups.com
What is the state of the _scafold? I was not able to register as user.
Need some help on it?

--
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+un...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Massimo Di Pierro

unread,
Jul 10, 2019, 6:07:59 AM7/10/19
to web2py-users
 I think the registration problem is fixed. Please try again. But just to make it clean, please delete your apps folder, upgrade web3py, and start again.

Massimo Di Pierro

unread,
Jul 10, 2019, 6:33:26 AM7/10/19
to web2py-users
what do you advice about favico.ico? The _default app can easily define a route for it.

@action('favcio.con')
def favico(): return 'the bytes or the icon'

But is this the right way to handle? Should it be a more fundamental link handled by web3py? What is the _default app is deleted? If it is a customizable file, where should be located in _dashboard/static/ ? Again, what if _default is removed?

On Sunday, 7 July 2019 22:10:47 UTC-7, Nico Zanferrari wrote:
It runs fine on Windows 10, too.
But I'm not able to create a new user and it also complains about missing favicon.ico.

Nico

Il Lun 8 Lug 2019, 01:56 黄祥 <steve.van...@gmail.com> ha scritto:
run well on docker container : ubuntu and mac

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+unsubscribe@googlegroups.com.

Lovedie JC

unread,
Jul 10, 2019, 12:25:01 PM7/10/19
to web...@googlegroups.com
Using ubunut 18.04lts, we are getting:

Error Ticket: module 'jwt.exceptions' has no attribute 'InvalidSignatureError'

Traceback (most recent call last):
  File "/home/mauricewaka/web3py/web3py/core.py", line 280, in load
    self.local.data = jwt.decode(token_data, self.secret, algorithms=[self.algorithm])
  File "/usr/lib/python3/dist-packages/jwt/api_jwt.py", line 78, in decode
    jwt, key=key, algorithms=algorithms, options=options, **kwargs
  File "/usr/lib/python3/dist-packages/jwt/api_jws.py", line 140, in decode
    key, algorithms)
  File "/usr/lib/python3/dist-packages/jwt/api_jws.py", line 207, in _verify_signature
    raise DecodeError('Signature verification failed')
jwt.exceptions.DecodeError: Signature verification failed

During handling of the above exception, another exception occurred:


Traceback (most recent call last):
  File "/home/mauricewaka/web3py/web3py/core.py", line 429, in wrapper
    ret = func(*func_args, **func_kwargs)
  File "/home/mauricewaka/web3py/web3py/core.py", line 394, in wrapper
    [obj.on_request() for obj in fixtures]
  File "/home/mauricewaka/web3py/web3py/core.py", line 394, in <listcomp>
    [obj.on_request() for obj in fixtures]
  File "/home/mauricewaka/web3py/web3py/core.py", line 315, in on_request
    self.load()
  File "/home/mauricewaka/web3py/web3py/core.py", line 284, in load
    except (jwt.exceptions.InvalidSignatureError, AssertionError, ValueError):
AttributeError: module 'jwt.exceptions' has no attribute 'InvalidSignatureError'

On Wed, 10 Jul 2019 at 09:33, Massimo Di Pierro <massimo....@gmail.com> wrote:
what do you advice about favico.ico? The _default app can easily define a route for it.

@action('favcio.con')
def favico(): return 'the bytes or the icon'

But is this the right way to handle? Should it be a more fundamental link handled by web3py? What is the _default app is deleted? If it is a customizable file, where should be located in _dashboard/static/ ? Again, what if _default is removed?

On Sunday, 7 July 2019 22:10:47 UTC-7, Nico Zanferrari wrote:
It runs fine on Windows 10, too.
But I'm not able to create a new user and it also complains about missing favicon.ico.

Nico

Il Lun 8 Lug 2019, 01:56 黄祥 <steve.van...@gmail.com> ha scritto:
run well on docker container : ubuntu and mac

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+un...@googlegroups.com.

--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/ba30a635-d95d-4212-b6b1-9025462359b4%40googlegroups.com.

Carlos Cesar Caballero

unread,
Jul 11, 2019, 2:52:18 AM7/11/19
to web2py-users
Working great in Ubuntu 19.04 and Python 3.6.8, no errors, I have created a new app and a new user for the app and login without issues.

In the dashboard there is a broken link to "/_dashboard/static/favicon.ico"

PD: My words when I looked the dashboard for first time: "My eyes!! my eyes!!!" :P

Massimo Di Pierro

unread,
Jul 11, 2019, 4:00:45 AM7/11/19
to web2py-users

I will fix the requirements accordingly
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.

--
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+unsubscribe@googlegroups.com.

Massimo Di Pierro

unread,
Jul 11, 2019, 5:01:49 AM7/11/19
to web2py-users
>>> PD: My words when I looked the dashboard for first time: "My eyes!! my eyes!!!" :P

LOL

Nico Zanferrari

unread,
Jul 13, 2019, 9:02:41 AM7/13/19
to web...@googlegroups.com
Hi,

I've made a simple walkthrough with some screenshots from Win 10 here:  https://github.com/nicozanf/shared/blob/master/Web3py%20simple%20walkthrough.docx

I like the spinning gears!

Nico

Il giorno gio 11 lug 2019 alle ore 07:01 Massimo Di Pierro <massimo....@gmail.com> ha scritto:
>>> PD: My words when I looked the dashboard for first time: "My eyes!! my eyes!!!" :P

LOL

--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/4c40f01f-3e30-487b-a34a-b375387c090f%40googlegroups.com.

Massimo Di Pierro

unread,
Jul 14, 2019, 3:48:13 AM7/14/19
to web2py-users
Thank you Nico.

I posted some preliminary documentation

Auth plugins, Form, and <mtable> need more work and are still undocumented.
But it would be great if people could help review and proof read what we have so far.

Massimo

On Saturday, 13 July 2019 02:02:41 UTC-7, Nico Zanferrari wrote:
Hi,

I've made a simple walkthrough with some screenshots from Win 10 here:  https://github.com/nicozanf/shared/blob/master/Web3py%20simple%20walkthrough.docx

I like the spinning gears!

Nico

Il giorno gio 11 lug 2019 alle ore 07:01 Massimo Di Pierro <massimo....@gmail.com> ha scritto:
>>> PD: My words when I looked the dashboard for first time: "My eyes!! my eyes!!!" :P

LOL

--
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+unsubscribe@googlegroups.com.

Stephan

unread,
Jul 14, 2019, 5:30:46 PM7/14/19
to web2py-users
Registration process with test app was successful. Was able to login in the scaffolded app after using the confirmation link. No errors
Mac 10.14.5. python 3.7.3

Johann Spies

unread,
Jul 16, 2019, 1:48:14 PM7/16/19
to web...@googlegroups.com


On Sun, 14 Jul 2019 at 05:48, Massimo Di Pierro <massimo....@gmail.com> wrote:


I do not see a Makefile to convert the .mm-files to html-documentation. How do I read the documentation?

Johann
--
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

Nico Zanferrari

unread,
Jul 17, 2019, 8:21:43 PM7/17/19
to web...@googlegroups.com
Hi Johann,

you can copy the whole _documentation folder from github under the apps folder of web3py (C:\Users\nico\myapps in my case on Win10). Then, after running web3py, you can reach it on http://127.0.0.1:8000/_documentation  , which is automatically redirected to http://127.0.0.1:8000/_documentation/static/index.html.

By the way: is there a way to manually complete the registration process of a new user without configuring email server's property inside web3py?

Nico

--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CAGZ55DS7VO7Sm7RY5MwBwfMKi8bt9zyjNhuc3nGd4u%2BK1DJLpw%40mail.gmail.com.

Johann Spies

unread,
Jul 18, 2019, 8:17:37 AM7/18/19
to web...@googlegroups.com
On Wed, 17 Jul 2019 at 22:21, Nico Zanferrari <nico...@gmail.com> wrote:
Hi Johann,

you can copy the whole _documentation folder from github under the apps folder of web3py (C:\Users\nico\myapps in my case on Win10). Then, after running web3py, you can reach it on http://127.0.0.1:8000/_documentation  , which is automatically redirected to http://127.0.0.1:8000/_documentation/static/index.html.


Thanks Nico.

Regards
Johann

KLL

unread,
Jul 20, 2019, 5:30:00 AM7/20/19
to web2py-users
You can view it as a web3py app if you follow the try me from the github source.
There are some failures with loading examples app and _scaffold app, but _documentation worked for me.



On Tuesday, July 16, 2019 at 9:48:14 AM UTC-4, Johann Spies wrote:

Massimo Di Pierro

unread,
Jul 20, 2019, 6:16:27 AM7/20/19
to web2py-users
Can you tell me more about those failures?

Nico Zanferrari

unread,
Jul 21, 2019, 9:36:01 AM7/21/19
to web...@googlegroups.com
Hi,

I've found some problems following the Readme with Windows 10.

If I follow the "Try me (from pip)" instructions it works fine, but the only applications installed are _dashboards and _default. Also, I can run "C:\Users\nico\AppData\Local\Programs\Python\Python37\Scripts\web3py-start.exe" from everywhere because it's in the path of the system

If I follow the "Try me (from source)" instructions, I cannot use the "./web3py-start apps" command because it's not a Windows executable (the EXE file is totally missing from the system). Also, it's not in the path. I can run it with Python, but it gives errors:

C:\Users\nico\web3py>python web3py-start apps

 _______  ____________  ____  ______  __
|  ____/ / / ____/ __ |/___ \/ __ \ \/ /
| |     / / /_  / /_/ /___/ / /_/ /\  /
| | /| / / __/ / __  //__  / ____/ / /
| |/ |/ / /___/ /_/ /___/ / / ____/ /
|___/|_/_____/_____/_____/_/ /_____/
It is still experimental...

assets-folder: C:\Users\nico\web3py\web3py\assets
Choose a one-time dashboad password:
[ ] Unzipping app web3py.app._default.zip
[A[X]
Dashboard is at: http://127.0.0.1:8000/_dashboard

Traceback (most recent call last):
  File "web3py-start", line 6, in <module>
    main()
  File "C:\Users\nico\web3py\web3py\core.py", line 808, in main
    Reloader.import_apps()
  File "C:\Users\nico\web3py\web3py\core.py", line 655, in import_apps
    'apps', path).load_module()
  File "<frozen importlib._bootstrap_external>", line 407, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 907, in load_module
  File "<frozen importlib._bootstrap_external>", line 732, in load_module
  File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 724, in exec_module
  File "<frozen importlib._bootstrap_external>", line 859, in get_code
  File "<frozen importlib._bootstrap_external>", line 916, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\nico\\web3py\\apps\\__init__.py'

Nonetheless, even if it dooes not work I've got all the expected apps folders including _documentation. 


Thank you,
Nico

--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/32140609-155a-4027-95e4-a58bc63879b9%40googlegroups.com.

KLL

unread,
Jul 21, 2019, 6:26:43 PM7/21/19
to web2py-users
with a newly cloned version there are 3 errors...

A FileNotFoundError: for apps/__init__.py
touch apps/__init__.py
resolves it. 

[FAILED] loading examples:
[FAILED] loading _scaffold:

both are errors in connecting to their respective databases
due to missing a databases directory in examples and _scaffold

mkdir example/databases
mkdir _scaffold/databases

resolves both errors.

Also at the main index http://127.0.0.1:8000/
the link to the documentation goes to http://web3py.com/_documentation?version=0.1.20190718.1 which doesn't exist.

tomt

unread,
Jul 29, 2019, 1:24:47 AM7/29/19
to web2py-users
I installed py4web on centos 7 in a virtual python environment and it works fine.

When using localhost, the dashboard page comes up, but it won't display any of the installed applications or any tickets.

I followed the documentation to add a session counter.  The code works when using http://127.0.0.1/myapp but not when using http://localhost/myapp.  (localhost is defined as 127.0.0.1 on my system) Most of my tests  work with http://localhost/myapp/* but some don't.  I'm not sure if this is a problem or not.

- Tom
Reply all
Reply to author
Forward
0 new messages