Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2014 16:33:44 -0400
From:      Brian Klahn <bdk@klahnpages.net>
To:        nivit@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: google-appengine-1.9.6
Message-ID:  <53DAA828.90205@klahnpages.net>

next in thread | raw e-mail | index | archive | help
Hi,

Might you be able to help me? I've been searching for hours. Is your 
port supposed to allow this to not fail?:

$ python
Python 2.7.6 (default, Mar  4 2014, 19:30:28)
[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
 >>>

The module name tab completion in IPython doesn't even show a "google" 
base module name:
In [1]: from google <tab>
google_sql  googlecl

My system:
$ uname -a
FreeBSD optiplex-9010 10.0-RELEASE-p15 FreeBSD 10.0-RELEASE-p15 #0: Wed 
Jul  9 15:46:53 UTC 2014 
root@amd64-builder.pcbsd.org:/usr/obj/usr/src/sys/GENERIC  amd6

I refreshed my ports tree (as root) and did:
cd /usr/ports/www/py-google-api-python-client
make install && make clean

pkg info google-appengine-1.9.6 gives . . .

google-appengine-1.9.6
Name           : google-appengine
Version        : 1.9.6
Installed on   : Thu Jul 31 15:13:05 EDT 2014
Origin         : www/google-appengine
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : www python devel
Licenses       : PSFL and MPL and MIT and LGPL21 and GPLv2 and 
BSD3CLAUSE and APACHE20
Maintainer     : nivit@FreeBSD.org
WWW            : https://developers.google.com/appengine/
Comment        : Development tools for Google App Engine (SDK)
Options        :
         EXAMPLES       : on
. . .

I can't tell what your port is supposed to install, and where (no 
pkg-plist). By the Makefile, it apparently uses the default PREFIX, 
which is /usr/local, but . . .
# find /usr/local/ -name "*appengine*"
/usr/local/share/examples/py-gdata/oauth/oauth_on_appengine
/usr/local/share/examples/py-gdata/oauth/oauth_on_appengine/appengine_utilities
/usr/local/share/examples/py-gdata/apps/marketplace_sample/appengine_utilities
/usr/local/share/examples/py-gdata/blogger/oauth-appengine
/usr/local/share/examples/py27-google-api-python-client/appengine
/usr/local/share/examples/py27-google-api-python-client/storage_serviceaccount_appengine
/usr/local/share/examples/py27-google-api-python-client/tasks_appengine
/usr/local/share/examples/google-appengine
/usr/local/share/examples/google-appengine/demos/php/minishell/static/appengine_button_noborder.gif
/usr/local/share/google-appengine
/usr/local/share/google-appengine/lib/PyAMF-0.6.1/pyamf/adapters/_google_appengine_ext_blobstore.pyc
/usr/local/share/google-appengine/lib/PyAMF-0.6.1/pyamf/adapters/_google_appengine_ext_db.py
/usr/local/share/google-appengine/lib/PyAMF-0.6.1/pyamf/adapters/_google_appengine_ext_db.pyc
/usr/local/share/google-appengine/lib/PyAMF-0.6.1/pyamf/adapters/_google_appengine_ext_blobstore.py
/usr/local/share/google-appengine/lib/webapp2-2.3/webapp2_extras/appengine
/usr/local/share/google-appengine/lib/webapp2-2.5.2/webapp2_extras/appengine
/usr/local/share/google-appengine/lib/google-api-python-client/oauth2client/appengine.pyc
/usr/local/share/google-appengine/lib/google-api-python-client/oauth2client/appengine.py
/usr/local/share/google-appengine/lib/google-api-python-client/apiclient/ext/appengine.py
/usr/local/share/google-appengine/lib/google-api-python-client/apiclient/ext/appengine.pyc
/usr/local/share/google-appengine/lib/webapp2-2.5.1/webapp2_extras/appengine
/usr/local/share/google-appengine/google/appengine
/usr/local/share/google-appengine/google/appengine/ext/appstats/sample_appengine_config.py
/usr/local/share/google-appengine/google/appengine/ext/appstats/sample_appengine_config.pyc
/usr/local/share/google-appengine/google/appengine/tools/appengine_rpc_httplib2.pyc
/usr/local/share/google-appengine/google/appengine/tools/appengine_rpc_httplib2.py
/usr/local/share/google-appengine/google/appengine/tools/appengine_rpc.py
/usr/local/share/google-appengine/google/appengine/tools/appengine_rpc.pyc
/usr/local/share/licenses/google-appengine-1.9.6
/usr/local/lib/python2.7/site-packages/gdata/alt/appengine.pyo
/usr/local/lib/python2.7/site-packages/gdata/alt/appengine.pyc
/usr/local/lib/python2.7/site-packages/gdata/alt/appengine.py
/usr/local/lib/python2.7/site-packages/oauth2client/appengine.py
/usr/local/lib/python2.7/site-packages/oauth2client/appengine.pyc
/usr/local/lib/python2.7/site-packages/oauth2client/appengine.pyo

The py-google-api-python-client port, for example, is easily imported, 
and lives here:
/usr/local/lib/python2.7/site-packages/apiclient

I get the same error when I, for example, run this:
$python /usr/local/lib/python2.7/site-packages/gdata/alt/appengine.py
Traceback (most recent call last):
   File "/usr/local/lib/python2.7/site-packages/gdata/alt/appengine.py", 
line 39, in <module>
     from google.appengine.api import urlfetch
ImportError: No module named google.appengine.api

Maybe I am mistaken in thinking your port is supposed to provide 
google.appengine.api.

Thank you for any input you have time to provide.

-Brian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53DAA828.90205>