Hi rāma,

you're right, the console in the new experimental binaries is not working
fine - even the 'help' command gives errors ;-(

web2py -M -S my_app

web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2019
Version 2.18.5-stable+timestamp.2019.04.08.04.22.03
Database drivers available: sqlite3, psycopg2, pyodbc, pymysql
application my_app does not exist, create (y/n)?y
WARNING:web2py:import IPython error; use default python shell
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> help
Traceback (most recent call last):
  File "<console>", line 1, in <module>
NameError: name 'help' is not defined
>>> import pandas
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "C:\Users\nico\Desktop\web2py_win\web2py\gluon\custom_import.py",
line 80, in custom_importer
    raise ImportError("No module named %s" % modules_prefix)
ImportError: No module named applications.my_app.modules.pandas
>>> quit()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
NameError: name 'quit' is not defined
>>>

The official binaries are fine, and the sources, too.

Nico









Il giorno ven 26 apr 2019 alle ore 09:31 Massimo Di Pierro <
massimo.dipie...@gmail.com> ha scritto:

> Yes. The plan is to provide the following executable from the official web
> page:
>
> OS web2py for py2.7, web2py for py3.7, web3py for py3.7 (WIP)
> WINDOWS web2py for py2.7, web2py for py3.7, web3py for py3.7 (WIP)
>
>
>
>
>
>
>
>
>
> On Thursday, 25 April 2019 22:02:37 UTC-7, rāma wrote:
>>
>> This is wonderful. And, something I would love to be adopted to the
>> official repo.
>>
>> Thanks for this!
>>
>> On Sunday, 3 March 2019 19:24:38 UTC+8, Nico Zanferrari wrote:
>>>
>>> Good morning!
>>>
>>> I'm proud to say that I've succeeded in building the Windows 64 bit
>>> binary with python 3.7.2 using pyinstaller !  Grab it from
>>> https://github.com/nicozanf/web2py-pyinstaller
>>>
>>> There are some little gothas, but it seems to work fine:
>>> - in the console I've got many errors like
>>> 'ERROR:Rocket.Errors.Thread-2:Tried to send "500 Server Error" to client
>>> but received socket error'. They disappear as soon as I've disabled IPv6
>>> and rebooted. There are users that report also to fix similar problems by
>>> adding the hostname on the hosts file
>>> - psycopg2 is placed in a folder by itself, instead than in the root
>>> folder
>>> - in the currently official binary build (with pyhton 2.7) there are
>>> also two binaries: web2py_no_console.exe and web2py_on_gevent.exe. They
>>> don't run correctly, and don't seem to be so important for me so I've
>>> decided to skip their generation.
>>> - Macintosh compatibility is needed, but I cannot work on it
>>>
>>> Please, help with testing it! I'll make a PR on the official web2py
>>> repository after some feedback.
>>>
>>> Cheers,
>>> Nico
>>>
>>> Il giorno mer 27 feb 2019 alle ore 12:03 Nico Zanferrari <
>>> nico...@gmail.com> ha scritto:
>>>
>>>> Hi,
>>>>
>>>> this is a big problem also from my point of view and I've already
>>>> opened issue 2027 <https://github.com/web2py/web2py/issues/2027> .
>>>> However it's not so easy to achieve this goal, because you've to switch to
>>>> 3.x + go 64 bit + change the *freezer* program (py2exe and bbfreeze do
>>>> not work with python >= 3.5). I'm playing with pyinstaller, but I'm not
>>>> promising anything. And also a binary Mac version is needed (I only have a
>>>> Win box), plus testing everything.
>>>>
>>>> Cheers,
>>>> Nico
>>>>
>>>> Il giorno mer 27 feb 2019 alle ore 11:45 elisha bere <
>>>> elish...@gmail.com> ha scritto:
>>>>
>>>>> Hie,
>>>>>
>>>>> Is it possible to change from 2.7 to 3.x in my web2py app
>>>>>
>>>>> On 17 Feb 2019 20:57, "Jitun John" <jitu...@gmail.com> wrote:
>>>>>
>>>>>> "It requires Python 2.6 (no more supported), Python 2.7 (stable) or
>>>>>> Python 3.5+ (*recommended for new projects*) already installed on
>>>>>> your system.
>>>>>> There are also *binary packages for Windows* and Mac OS X.* They
>>>>>> include the Python 2.7 interpreter* so you do not need to have it
>>>>>> pre-installed."
>>>>>>
>>>>>> Sorry for my ignorance, I am assuming "Python 2.7 interpreter" as
>>>>>> "python27.dll" and "pywintypes27.dll" files.
>>>>>>
>>>>>> I recently moved my app from 2.x to 3.x using PyCharm IDE and the app
>>>>>> works fine when using IDE on 3.7 python.
>>>>>> But when I try to compile it to .exe (using .iss file + hstart.exe),
>>>>>> I cant use the existing web2py_win.zip file.
>>>>>>
>>>>>> Gives me "<type 'exceptions.ValueError'> unsupported pickle protocol:
>>>>>> 3"
>>>>>>
>>>>>> As we are recommending new projects on 3.x, Is it possible for the
>>>>>> next version to have a 3.x interpreter ?
>>>>>> or if we have a workaround, I am happy to try it.
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> --
>>>>>> 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.
>>>>> 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to