Those are the best kinds of bugs =) Happy New Year
On Tuesday, January 3, 2017 at 9:11:31 AM UTC-6, lyn2py wrote: > > It is working now. O.O Sorry for the noise and thank you for your time > Mark. > > I blew a fuse in the house and then it worked. Prior to that I restarted > the computer and it still didn't work. This is crazy and not > reproducible... YMMV... > > > > On Tuesday, January 3, 2017 at 10:54:35 PM UTC+8, lyn2py wrote: >> >> No, did not try the zip. It doesn't have to do with the release, rather >> it is the version of python that was installed by homebrew. I read >> somewhere that it is unstable, I don't know why that would be the case. >> While we are on the topic, did you try the python installation by homebrew? >> Is web2py running with the python 2 installed by homebrew for you? >> >> which python was included in my first post, here it is again: >> >> $ which python >> >> /usr/local/bin/python >> >> >> >> >> HOMEBREW >> >> $ python >> >> Python 2.7.13 (default, Dec 17 2016, 23:03:43) >> >> [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin >> >> Type "help", "copyright", "credits" or "license" for more information. >> >> >>> import os >> >> >>> print os.environ['PYTHONPATH'] >> >> Traceback (most recent call last): >> >> File "<stdin>", line 1, in <module> >> >> File >> "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py" >> , line 40, in __getitem__ >> >> raise KeyError(key) >> >> KeyError: 'PYTHONPATH' >> >> >>> import sys >> >> >>> print sys.path >> >> ['', >> '/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python27.zip' >> , >> '/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7' >> , >> '/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin' >> , >> '/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac' >> , >> '/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages' >> , >> '/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk' >> , >> '/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old' >> , >> '/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload' >> , '/usr/local/lib/python2.7/site-packages'] >> >> >> SYSTEM >> >> $ /usr/bin/python >> >> Python 2.7.10 (default, Oct 23 2015, 19:19:21) >> >> [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin >> >> Type "help", "copyright", "credits" or "license" for more information. >> >> >>> import os >> >> >>> print os.environ['PYTHONPATH'] >> >> Traceback (most recent call last): >> >> File "<stdin>", line 1, in <module> >> >> File >> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py" >> , line 23, in __getitem__ >> >> raise KeyError(key) >> >> KeyError: 'PYTHONPATH' >> >> >>> import sys >> >> >>> print sys.path >> >> ['', >> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip' >> , >> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', >> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin' >> , >> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac' >> , >> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages' >> , >> '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python' >> , >> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk' >> , >> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old' >> , >> '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload' >> , >> '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC' >> , '/Library/Python/2.7/site-packages'] >> >> >> >> >> >> On Tuesday, January 3, 2017 at 6:00:53 PM UTC+8, Mark Graves wrote: >>> >>> Also, under each please list the output of: >>> >>> import os >>> print os.environ['PYTHONPATH'] >>> >>> import sys >>> print sys.path >>> >>> On Tue, Jan 3, 2017 at 3:58 AM, Mark Graves <mgra...@gmail.com> wrote: >>> >>>> Wait wait, whats the output of >>>> >>>> which python >>>> >>>> On Tue, Jan 3, 2017 at 3:43 AM, Mark Graves <mgra...@gmail.com> wrote: >>>> >>>>> did you try the downloaded via zip version? >>>>> >>>>> On Mon, Jan 2, 2017 at 9:01 AM, lyn2py <lyn...@gmail.com> wrote: >>>>> >>>>>> Nope :) >>>>>> >>>>>> On Monday, January 2, 2017 at 10:55:59 AM UTC+8, Mark Graves wrote: >>>>>>> >>>>>>> Is it in a virtual environment? >>>>>>> >>>>>>> -Mark >>>>>>> >>>>>>> On Sun, Jan 1, 2017 at 8:37 PM, lyn2py <lyn...@gmail.com> wrote: >>>>>>> >>>>>>>> First, it is a working folder that I've been using. It breaks the >>>>>>>> moment when I use homebrew's version of python to start web2py. It >>>>>>>> works >>>>>>>> when I use the system's python. Both commands are on the same >>>>>>>> directory. >>>>>>>> Secondly, I have tried git clone recursive in a brand new folder, >>>>>>>> but it's still the same result. >>>>>>>> >>>>>>>> On Monday, January 2, 2017 at 9:51:55 AM UTC+8, Mark Graves wrote: >>>>>>>>> >>>>>>>>> potential quick fix before giving it thought: >>>>>>>>> >>>>>>>>> did you: >>>>>>>>> >>>>>>>>> git submodule update --init --recursive >>>>>>>>> You can easily try this by creating a new web2py installation in a >>>>>>>>> different folder so you don't mess up exising apps. >>>>>>>>> >>>>>>>>> Also, is it broken with the downloaded version via zip? >>>>>>>>> >>>>>>>>> On Sun, Jan 1, 2017 at 9:02 AM, lyn2py <lyn...@gmail.com> wrote: >>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Saturday, December 31, 2016 at 5:06:07 AM UTC+8, Mark Graves >>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>> How did you install web2py? as a zip? via git? >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> *git clone* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> Did you ever pip install gluon? >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> *nope* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> Did you install web2py / python at different times? >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> *I've been using web2py for years using the system python, and I >>>>>>>>>> only installed python via homebrew recently for other purposes, and >>>>>>>>>> homebrew automatically replaced the system python as the default one >>>>>>>>>> to use >>>>>>>>>> (no complaints, since it's a higher version), which was why I >>>>>>>>>> discovered >>>>>>>>>> that it won't work with web2py. The only thing, I presume, is >>>>>>>>>> different, is >>>>>>>>>> the version of python. If you see the code in my first post, the >>>>>>>>>> respective >>>>>>>>>> versions for SYSTEM vs HOMEBREW are 2.7.10 and 2.7.13.* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Can you try under each python version to do: >>>>>>>>>>> >>>>>>>>>>> import gluon.widget >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> *Oh good suggestion. I tried with both, and they both imported it >>>>>>>>>> fine. So it works in command-line python, but not with web2py (I >>>>>>>>>> dunno the >>>>>>>>>> right word for this... app / desktop app / guy)? I'll be happy to >>>>>>>>>> run any >>>>>>>>>> tests to figure out why... but do you think there might be something >>>>>>>>>> wrong >>>>>>>>>> with the version installed by homebrew??* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Thursday, December 29, 2016 at 11:29:08 PM UTC-6, lyn2py >>>>>>>>>>> wrote: >>>>>>>>>>>> >>>>>>>>>>>> I am not sure if this is the right place to ask this, but it >>>>>>>>>>>> only happens with web2py (for now). >>>>>>>>>>>> >>>>>>>>>>>> Due to a need to use pip, I used homebrew to install python. >>>>>>>>>>>> Sidenote: Homebrew used to require additional configuration to >>>>>>>>>>>> work as "the python" on the system, but now it does everything >>>>>>>>>>>> automatically. So when I type >>>>>>>>>>>> >>>>>>>>>>>> $ which python >>>>>>>>>>>> >>>>>>>>>>>> ...I get the one that homebrew installed. >>>>>>>>>>>> >>>>>>>>>>>> Onward... >>>>>>>>>>>> I tried >>>>>>>>>>>> >>>>>>>>>>>> $ python web2py.py >>>>>>>>>>>> >>>>>>>>>>>> ...which is the homebrew installed one, and ran into this error: >>>>>>>>>>>> >>>>>>>>>>>> Traceback (most recent call last): >>>>>>>>>>>> >>>>>>>>>>>> File "/Users/web2py/web2py.py", line 21, in <module> >>>>>>>>>>>> >>>>>>>>>>>> import<spa >>>>>>>>>>>> >>>>>>>>>>> -- 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.