[web2py] Re: web3py -> py4web

2019-08-31 Thread pollwerk
Using: 
python3 -m pip install py4web --upgrade  worked. 

But i was unsucessful with these two commands:
source bin/activate 
   ./py4web-start apps / 

Then I used: 

git clone https://github.com/web2py/py4web.git
cd py4web
python3 -m pip install -r requirements.txt
python3 setup.py install


and finelly: 

py4web-start apps


It came up but I was unsucessful when entering the requested one-time dashboard 
password.


KlMcM:py4web klausxx$ py4web-start apps


██╗ ██╗   ██╗██╗  ██╗██╗██╗███╗██╗ 

██╔══██╗╚██╗ ██╔╝██║  ██║██║██║██╔╝██╔══██╗

██╔╝ ╚╔╝ ███║██║ █╗ ██║█╗  ██╔╝

██╔═══╝   ╚██╔╝  ╚██║██║███╗██║██╔══╝  ██╔══██╗

██║██║██║╚███╔███╔╝███╗██╔╝

╚═╝╚═╝╚═╝ ╚══╝╚══╝ ╚══╝╚═╝ 

It is still experimental...


assets-folder: 
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/py4web/assets

Choose a one-time dashboad password: ONETIMEPW

Dashboard is at: http://127.0.0.1:8000/_dashboard

Traceback (most recent call last):

  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/py4web-start", 
line 11, in 

load_entry_point('py4web==0.1.20190826.1', 'console_scripts', 
'py4web-start')()

  File 
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/py4web/core.py",
 line 816, in main

Reloader.import_apps()

  File 
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/py4web/core.py",
 line 661, in import_apps

'apps', path).load_module()

  File "", line 407, in 
_check_name_wrapper

  File "", line 907, in load_module

  File "", line 732, in load_module

  File "", line 265, in _load_module_shim

  File "", line 696, in _load

  File "", line 677, in _load_unlocked

  File "", line 724, in exec_module

  File "", line 859, in get_code

  File "", line 916, in get_data

FileNotFoundError: [Errno 2] No such file or directory: 
'/Users/klausv.zinser/py4web/apps/__init__.py'

KlMcM:py4web klausxx$ 


Klaus


Am Montag, 26. August 2019 19:05:24 UTC+2 schrieb En Ware:
>
> hmm , I just tried from pip and works find 
>
> python3 -m pip install py4web --upgrade 
>
> source bin/activate 
>
> ./py4web-start apps / 
>
>
> ██╗ ██╗   ██╗██╗  ██╗██╗██╗███╗██╗ 
> ██╔══██╗╚██╗ ██╔╝██║  ██║██║██║██╔╝██╔══██╗
> ██╔╝ ╚╔╝ ███║██║ █╗ ██║█╗  ██╔╝
> ██╔═══╝   ╚██╔╝  ╚██║██║███╗██║██╔══╝  ██╔══██╗
> ██║██║██║╚███╔███╔╝███╗██╔╝
> ╚═╝╚═╝╚═╝ ╚══╝╚══╝ ╚══╝╚═╝ 
> It is still experimental...
>
> assets-folder: 
> /Users/.env/python/py4web/lib/python3.6/site-packages/py4web/assets
> Choose a one-time dashboad password: 
> Dashboard is at: http://127.0.0.1:8000/_dashboard
> [X] loaded _dashboard 
> [X] loaded myapp 
> [X] loaded _default 
> [X] loaded _scaffold 
> Bottle v0.12.17 server starting up (using TornadoServer())...
> Listening on http://127.0.0.1:8000/
> Hit Ctrl-C to quit.
>
>
>
> On Wednesday, August 21, 2019 at 10:51:31 AM UTC-5, Annet wrote:
>>
>>
>> python3 setup.py install
>>>
>>
>> I installed py4web from source:
>>
>> git clone https://github.com/web2py/py4web.gitcd py4web
>> python3 -m pip install -r requirements.txt
>> python3 setup.py install
>>
>>
>> Running the last statement gives the following errors:
>>
>> byte-compiling 
>> build/bdist.macosx-10.9-x86_64/egg/py4web/utils/auth_plugins/saml2_plugin.py 
>> to saml2_plugin.cpython-37.pyc
>>   File 
>> "build/bdist.macosx-10.9-x86_64/egg/py4web/utils/auth_plugins/saml2_plugin.py",
>>  
>> line 105
>> session.saml_outstanding_queries = {req_id: request.url}
>>^
>> SyntaxError: invalid syntax
>>
>> and
>>
>> Extracting py4web-0.1.20190818.2-py3.7.egg to 
>> /usr/local/lib/python3.7/site-packages
>>   File 
>> "/usr/local/lib/python3.7/site-packages/py4web-0.1.20190818.2-py3.7.egg/py4web/utils/auth_plugins/saml2_plugin.py",
>>  
>> line 105
>> session.saml_outstanding_queries = {req_id: request.url}
>>^
>> SyntaxError: invalid syntax
>>
>>
>>
>> I starting py4web 
>>
>> py4web-start apps
>>
>>
>> fails with the following error:
>>
>> FileNotFoundError: [Errno 2] No such file or directory: 
>> '/Users/me/py4web/apps/__init__.py'
>>
>>
>> How do I resolve these issues?
>>
>>
>> Kind regards,
>>
>> Annet
>>
>

-- 
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/6fb376ca-9ab2-46e5-a19a-d9ef5847628b%40googlegroups.com.


[web2py] Re: how to embed a d3.js script in a view correctly?

2019-07-28 Thread pollwerk
Hello, I am new here and tried to get something working. It took some time 
until i realitzed its working but only in default/index.html (not in 
default/visualisations.html). Most realistic within the next days I will 
learn why. No need to reply. But I wanted to return the full code where I 
was successful the 1st time with D3. Now I can go ahead in an iterative 
way.  Regards, Klaus  
---

{{response.files.append(URL(r=request,c='static',f='/js/d3.js'))}}

{{extend 'layout.html'}}

 


d3.select('#mychart').append('svg').append('circle').style("stroke", 
"gray").style("fill", "red").attr("r", 40).attr("cx", 50).attr("cy", 50);


-

Am Samstag, 5. April 2014 21:11:01 UTC+2 schrieb Martina Gruber:
>
> Hi Sihui,
>
> Just add a div with an id after extend layout and then select this id from 
> d3.
> If you select "body" and append a circle it will go at the bottom of the 
> page.
>
> {{response.files.append(URL(r=request,c='static',f='/js/d3.js'))}}
>> {{extend 'layout.html'}}
>>  
>>  
>>
>> 
>> d3.select('#mychart').append('svg').append('circle').style("stroke", 
>> "gray").style("fill", "red").attr("r", 40).attr("cx", 50).attr("cy", 50);
>> 
>>
>>

-- 
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/3047cbc9-2acc-486b-b71a-8893a1e5ee33%40googlegroups.com.


[web2py] Re: quotes & invoices app

2019-04-09 Thread pollwerk
There is also something on Sourceforge: 
https://sourceforge.net/projects/facturalibre.berlios/ saying last updated 
in September 2014 

Are there any improvements/new projects for ERP and Invoicing etc?



Am Mittwoch, 16. Mai 2012 14:35:08 UTC+2 schrieb Alan Etkin:
>
> The second link is wrong. FacturaLibre is at 
> http://code.google.com/p/pyafipws/source/checkout?repo=web2py-app
>
> El miércoles, 16 de mayo de 2012 09:32:06 UTC-3, Alan Etkin escribió:
>>
>> Check out this projects:
>>
>> *GestionLibre* 
>> *FacturaLibre* 
>> 
>>
>>

-- 
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.