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

  File "/Users/web2py/gluon/__init__.py", line 31, in <module>

    "You can also download a complete copy from http://www.web2py.com.";

RuntimeError: web2py depends on pydal, which apparently you have not 
installed.

Probably you cloned the repository using git without '--recursive'

To fix this, please run (from inside your web2py folder):



     git submodule update --init --recursive



You can also download a complete copy from http://www.web2py.com.


But when I run this command, which uses the system's python, it works!

$ /usr/bin/python web2py.py

I could always add "/usr/bin/" as a habit when starting web2py, but why 
doesn't homebrew's installed python work? Are they not the same?

When I run python in command line, 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.

>>> exit()

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

>>> exit()

Thank you for reading!

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