FreeBSD Port: google-appengine-1.9.6

Nicola Vitale nivit at FreeBSD.org
Fri Aug 1 03:35:16 UTC 2014


Hi Brian,

> [2014-07-31 22:33 GMT+02:00 Brian Klahn <bdk at klahnpages.net>]
> Might you be able to help me? I've been searching for hours. Is your port
> supposed to allow this to not fail?:
>
>>>> from google.appengine.api import mail
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named google.appengine.api

You have to add /usr/local/share/google-appengine to the environment variable
PYTHONPATH or to sys.path in your scripts:

➜  ~  python
Python 2.7.8 (default, Jul 19 2014, 13:56:51)
[GCC 4.2.1 Compatible FreeBSD Clang 3.3 (tags/RELEASE_33/final
183502)] on freebsd10
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.appengine.api import mail
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named google.appengine.api
>>> import sys
>>> sys.path.insert(1, '/usr/local/share/google-appengine')
>>> from google.appengine.api import mail
>>>

Best regards.
--
Nicola Vitale


More information about the freebsd-ports mailing list