Web2py binaries

389 views
Skip to first unread message

Nico Zanferrari

unread,
Mar 13, 2019, 6:53:09 PM3/13/19
to web...@googlegroups.com
Hi,

I've just updated the experimental Windows binary version with python 3.7.2 to web2py 2.18.4 . Also, now there is in addition the no_console binary and there is the python-ldap module included. Grab it from https://github.com/nicozanf/web2py-pyinstaller : please test it and give me a feedback.

I'm still playing with the Mac version. Could someone confirm that the current official binary version is really working? After typing the password I've got the error 'module object has no attribute pbkdf2 hmac' - maybe for the python version included. According to this  it should have at least 2.7.8 but it seems with 2.7.3.

Cheers,
Nico

Massimo Di Pierro

unread,
Mar 14, 2019, 11:56:08 PM3/14/19
to web2py-users
The official version is currently broken.

Nico Zanferrari

unread,
Mar 15, 2019, 10:55:16 AM3/15/19
to web...@googlegroups.com
Hi all,

I've was successful in making the experimental Mac app, too, with python3. Grab it from https://github.com/nicozanf/web2py-pyinstaller  , where there are also all the instructions in order to build it by yourself ;-)

A private feedback is appreciated.

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.
For more options, visit https://groups.google.com/d/optout.

Massimo Di Pierro

unread,
Mar 17, 2019, 10:42:53 PM3/17/19
to web2py-users
Fantastic. Will process this within the week and make it the new default.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.

Nico Zanferrari

unread,
Apr 14, 2019, 4:28:30 PM4/14/19
to web...@googlegroups.com
Hi all,

I've  just updated the experimental binaries for MacOs and Windows to  the latest web2py version (2.18.5) on https://github.com/nicozanf/web2py-pyinstaller . They now contain python 3.7.3 64 bit. Also, the web2py sources inside the ZIP is now replaceble with newer web2py versions when needed ;-)

There is only a problem with the APP version of MacOs binaries, that is not working due to this PyInstaller bug. But the MacOs command version works fine.


Please, help my work by testing them! 


Cheers,
Nico  

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.

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

Dave S

unread,
Apr 18, 2019, 3:48:04 AM4/18/19
to web2py-users


On Sunday, April 14, 2019 at 1:28:30 PM UTC-7, Nico Zanferrari wrote:
Hi all,

I've  just updated the experimental binaries for MacOs and Windows to  the latest web2py version (2.18.5) on https://github.com/nicozanf/web2py-pyinstaller . They now contain python 3.7.3 64 bit. Also, the web2py sources inside the ZIP is now replaceble with newer web2py versions when needed ;-)

There is only a problem with the APP version of MacOs binaries, that is not working due to this PyInstaller bug. But the MacOs command version works fine.


Please, help my work by testing them! 


Cheers,
Nico  



 I sent email per the README, but copying the group here:

Stage 1:  installation -- pass
Stage 2:  Welcome App -- seems to be problems with CSS, especially in the navigation bar.  Each menu shows up, but in faint blue on white, small font, and the pull-downs wrap instead of item-per-line.
Admin App -- seems to work fine in early testing.
Stage 3:  Port one of my apps -- pending.

Chrome: Version 73.0.3683.103 (Official Build) (64-bit)
Windows 10 Pro build number 17763


Il giorno lun 18 mar 2019 alle ore 03:42 Massimo Di Pierro <massimo...@gmail.com> ha scritto:
Fantastic. Will process this within the week and make it the new default.

On Friday, 15 March 2019 07:55:16 UTC-7, Nico Zanferrari wrote:
Hi all,

I've was successful in making the experimental Mac app, too, with python3. Grab it from https://github.com/nicozanf/web2py-pyinstaller  , where there are also all the instructions in order to build it by yourself ;-)

A private feedback is appreciated.

Nico

Il giorno ven 15 mar 2019 alle ore 04:56 Massimo Di Pierro <massimo...@gmail.com> ha scritto:
The official version is currently broken.

On Wednesday, 13 March 2019 15:53:09 UTC-7, Nico Zanferrari wrote:
Hi,

I've just updated the experimental Windows binary version with python 3.7.2 to web2py 2.18.4 . Also, now there is in addition the no_console binary and there is the python-ldap module included. Grab it from https://github.com/nicozanf/web2py-pyinstaller : please test it and give me a feedback.

I'm still playing with the Mac version. Could someone confirm that the current official binary version is really working? After typing the password I've got the error 'module object has no attribute pbkdf2 hmac' - maybe for the python version included. According to this  it should have at least 2.7.8 but it seems with 2.7.3.

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

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

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

Dave S

unread,
Apr 18, 2019, 4:59:04 AM4/18/19
to web2py-users


On Thursday, April 18, 2019 at 12:48:04 AM UTC-7, Dave S wrote:


On Sunday, April 14, 2019 at 1:28:30 PM UTC-7, Nico Zanferrari wrote:
Hi all,

I've  just updated the experimental binaries for MacOs and Windows to  the latest web2py version (2.18.5) on https://github.com/nicozanf/web2py-pyinstaller . They now contain python 3.7.3 64 bit. Also, the web2py sources inside the ZIP is now replaceble with newer web2py versions when needed ;-)

There is only a problem with the APP version of MacOs binaries, that is not working due to this PyInstaller bug. But the MacOs command version works fine.


Please, help my work by testing them! 


Cheers,
Nico  



 I sent email per the README, but copying the group here:

Stage 1:  installation -- pass
Stage 2:  Welcome App -- seems to be problems with CSS, especially in the navigation bar.  Each menu shows up, but in faint blue on white, small font, and the pull-downs wrap instead of item-per-line.
Admin App -- seems to work fine in early testing.
Stage 3:  Port one of my apps -- pending.


One of my simpler apps is mostly working, after a hasty pounding of print statements ("#", rather than "(" and ")" ).  I got a ticket for a sort() that wasn't an attribute of the dict-like thingy I was interested in.  That's a five minute test, but it included some SQLFORMs, and a custom validator.  I cheated and used my old static folder at this point.

/dps

Nico Zanferrari

unread,
Apr 19, 2019, 4:16:29 AM4/19/19
to web...@googlegroups.com
Thanks for testing, Dave, I'm happy to hear that it's working fine!

I think that the Welcome app with latest web2py versions don't look so fine in Windows and python 3, but I cannot see any difference from running it from sources. Let me know if I'm wrong or there are anything else.

Nico

To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.

Massimo Di Pierro

unread,
Apr 20, 2019, 11:23:54 AM4/20/19
to web2py-users
Can you point me to a version OSX and WIN for python 2.7?
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.

Nico Zanferrari

unread,
Apr 20, 2019, 5:32:13 PM4/20/19
to web...@googlegroups.com
Ciao Massimo,

I've tried today to build the Windows version with python 2.7 - but it's not so easy as I thought. I'll let you know ...

nico



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.

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

Nico Zanferrari

unread,
Apr 22, 2019, 5:24:09 PM4/22/19
to web...@googlegroups.com
Hi,

the  binary Mac version with python 2.7.16 is easily done, you can grab it here . It's  the command version  only, because the APP version is problematic - due to the already reported bug with Tk on Mac.

I'm still working on the Windows version with python 2.7  - but it seems hard to gain ;-(

Nico

Nico Zanferrari

unread,
Apr 24, 2019, 6:02:25 PM4/24/19
to web...@googlegroups.com
Hello,

I'm happy to say that I've gained the Win version, too! 

So, now we have a working web2py binary made with PyInstaller with python 3.7.3 or 2.7.16 - for MacOs or Windows. Also, the current web2py version (2.18.5)  should be easily updated in the future by changing the gluon folder inside the ZIP file.

Known problems:
- the Mac APP version is not working (due to the already reported bug with Pynstaller and Tk on Mac). You can use the CMD version instead.
- only with python 2 and Windows, you need to slightly modify rocket.py if you manually create the binaries or update the web2py sources inside the ZIP (gluon\rocket.py, line 26, from IS_JYTHON = platform.system() == 'Java' to IS_JYTHON = False)

Please, report any differences between binaries (on my repository) and running directly from sources.

I hope you enjoy it! 
Nico 

Dave S

unread,
Jun 13, 2019, 4:41:53 AM6/13/19
to web2py-users


On Friday, April 19, 2019 at 1:16:29 AM UTC-7, Nico Zanferrari wrote:
Thanks for testing, Dave, I'm happy to hear that it's working fine!

I think that the Welcome app with latest web2py versions don't look so fine in Windows and python 3, but I cannot see any difference from running it from sources. Let me know if I'm wrong or there are anything else.

Nico


Still haven't tried running it from sources, but I finally brought over another app (just one print to turn to print(), and it looked just fine with my old static directory, but I decided I needed try the new static, which I copied from the welcome app.  The banner again looked horrible, so I did an inspect and clicked here and there and after a brief cloud of dust  actually got the black band to show up.

Looking more into the inspect window, there's a reference to shockwave-flash, and I think Chrome doesn't like that (deprecated flash years ago).  I don't think this is your problem, but I'm not sure why it's in there.  I'm not going to hunt anything more down tonight, either.

/dps

Dave S

unread,
Jun 13, 2019, 12:34:54 PM6/13/19
to web2py-users


On Thursday, June 13, 2019 at 1:41:53 AM UTC-7, Dave S wrote:


On Friday, April 19, 2019 at 1:16:29 AM UTC-7, Nico Zanferrari wrote:
Thanks for testing, Dave, I'm happy to hear that it's working fine!

I think that the Welcome app with latest web2py versions don't look so fine in Windows and python 3, but I cannot see any difference from running it from sources. Let me know if I'm wrong or there are anything else.

Nico


Still haven't tried running it from sources, but I finally brought over another app (just one print to turn to print(), and it looked just fine with my old static directory, but I decided I needed try the new static, which I copied from the welcome app.  The banner again looked horrible, so I did an inspect and clicked here and there and after a brief cloud of dust  actually got the black band to show up.

Looking more into the inspect window, there's a reference to shockwave-flash, and I think Chrome doesn't like that (deprecated flash years ago).  I don't think this is your problem, but I'm not sure why it's in there.  I'm not going to hunt anything more down tonight, either.
 

Also, I see you have the psycopg2 driver bundled in (in a top-level directory within the web2py directory); how did you tell Web2py where to find it?

/dps

Dave S

unread,
Jun 13, 2019, 1:33:33 PM6/13/19
to web2py-users


On Thursday, June 13, 2019 at 1:41:53 AM UTC-7, Dave S wrote:


On Friday, April 19, 2019 at 1:16:29 AM UTC-7, Nico Zanferrari wrote:
Thanks for testing, Dave, I'm happy to hear that it's working fine!

I think that the Welcome app with latest web2py versions don't look so fine in Windows and python 3, but I cannot see any difference from running it from sources. Let me know if I'm wrong or there are anything else.

Nico


Still haven't tried running it from sources, but I finally brought over another app (just one print to turn to print(), and it looked just fine with my old static directory, but I decided I needed try the new static, which I copied from the welcome app.  The banner again looked horrible, so I did an inspect and clicked here and there and after a brief cloud of dust  actually got the black band to show up.

Looking more into the inspect window, there's a reference to shockwave-flash, and I think Chrome doesn't like that (deprecated flash years ago).  I don't think this is your problem, but I'm not sure why it's in there.  I'm not going to hunt anything more down tonight, either.

Here's a clue:  clicking on the web2py logo, which is an anchor to the web2py site, takes me to ... the web2py site, with the black band on top (for the navbar).  When I click back, my page displays the black band on top.  Does this indicate a missing resource?

/dps

Nico Zanferrari

unread,
Jun 23, 2019, 5:32:26 AM6/23/19
to web...@googlegroups.com
Hi all,

I've just released a new set of the 2.18.5 Web2py frozen binaries, for Windows and MacOs, with Python 2.7.16 and 3.7.3; grab them from my repository .

The only update is that now the interactive shell is working fine ;-) This was obtained by hacking the fake site.py module provided by PyInstaller with the missing functions from the official cPython. The Mac APP which is still not working at all (probably for Tcl/Tk wrong inclusion, see this bug), but the Mac CMD program is working fine.

Please, help with testing and report any difference with running from sources.

Cheers,
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/3ac332e6-3c4b-4ed4-83ff-196f9947894a%40googlegroups.com.

icodk

unread,
Jun 23, 2019, 7:24:07 AM6/23/19
to web2py-users
Does it run with SSL (  -c ca.crt -k ca.key -p 443 ) ?
To unsubscribe from this group and stop receiving emails from it, send an email to web...@googlegroups.com.

icodk

unread,
Jun 23, 2019, 7:25:29 AM6/23/19
to web2py-users
The reason I ask is because I got errors running from source with ssl


On Sunday, June 23, 2019 at 11:32:26 AM UTC+2, Nico Zanferrari wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to web...@googlegroups.com.

Dave S

unread,
Jun 24, 2019, 4:29:09 PM6/24/19
to web2py-users


On Sunday, June 23, 2019 at 4:25:29 AM UTC-7, icodk wrote:
The reason I ask is because I got errors running from source with ssl

Port 443 is special, as I indicated in the other thread.

/dps
 

Nico Zanferrari

unread,
Jul 28, 2019, 5:53:00 PM7/28/19
to web...@googlegroups.com
Hi,

good news: a simple workaround has been developed for the MacOs APP bundle problem with PyInstaller (see  https://github.com/pyinstaller/pyinstaller/issues/3820 ).
I've already created the new Mac binaries in the APP form, with embedded Python 3.7.4 and 2.7.16 - see my repository.

Now all the known problems have been solved and we could take these binaries to Production ;-)


Cheers,
Nico


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/11611fc7-3ffb-4f5c-bf8b-ff5842fef1fe%40googlegroups.com.

Nico Zanferrari

unread,
Aug 18, 2019, 3:18:15 AM8/18/19
to web...@googlegroups.com

Do not update to MacOS 10.14.6

Guys if you are in a MacOS version before 10.14.6 please do not update, the new version of MacOS has a bug with tkinter applications and they stop working, at the time these applications are executed the system freezes and returns to the login screen, here is a link with more information about it. https://discussions.apple.com/thread/250549297


Nico Zanferrari

unread,
Oct 9, 2019, 4:37:21 PM10/9/19
to web...@googlegroups.com
Hi,

see also this issue on the Pyinstaller's site. Could someone kindly try the existing binaries on the new MacOS Catalina (Version 10.15)?

Nico

Nico Zanferrari

unread,
Oct 14, 2019, 5:12:18 PM10/14/19
to web...@googlegroups.com
Hi all,

I've put again the MacOs CMD binaries on the repository, because they work fine even on Catilina - so they are recommended.

The APP versions seem to work fine, too, but only if you don't download them with the browser. In this case the system remember it (using Extended Attributes), and it apply some heavvy restrictions on them because they're not signed: 

image.png

But if you use the Terminal and wget or similar utilities (I've used sftp with my NAS), they seem to work as usual! Let me know if you can check it.

Cheers,
Nico


Nico Zanferrari

unread,
Oct 17, 2019, 8:52:33 AM10/17/19
to web...@googlegroups.com
Well,

after additional tests on latest MacOs (Catalina), both the CMD and the APP versions work fine. The problem comes from downloading from Internet - the Extended Attributes that Apple adds to the executables are not easily bypassed and the programs cannot be run for security reason.
The solution is quite simple: download them from another OS (Windows or Linux) and then use an USB key / drive in order to copy them to the Mac ... In this way the program works like a charm!

Nico

OogieM

unread,
Oct 18, 2019, 1:41:33 PM10/18/19
to web2py-users

The solution is quite simple: download them from another OS (Windows or Linux) and then use an USB key / drive in order to copy them to the Mac ... In this way the program works like a charm

Any suggestions for those of us with no access to any computer with any other operating system. I'm a totally Mac environment, work alone and do not have access to any other computer. All the people I knwo are also entirely Mac-based.

Marius Rusca

unread,
Oct 22, 2019, 2:25:35 AM10/22/19
to web2py-users
Hi

I downloaded web2py_osx.2_18_5.py3_app.zip with safari on macos catalina. 'control' + click on downloaded file and allowed me to 'open' after some warning. I moved the file in applications and then it started without problems.

Nico Zanferrari

unread,
Oct 22, 2019, 6:35:54 AM10/22/19
to web...@googlegroups.com
Thank you Marius,

you suggestion is simpler and is working fine, both for py2 and py3 apps!

Cheers,
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.
Reply all
Reply to author
Forward
0 new messages