Hi Brian,

> [2014-07-31 22:33 GMT+02:00 Brian Klahn <b...@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
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to