Coder Social home page Coder Social logo

django_sample not working : from apiclient.ext.django import FlowThreeLeggedField ImportError: No module named ext.django about google-api-python-client HOT 4 CLOSED

nqzhang avatar nqzhang commented on June 24, 2024
django_sample not working : from apiclient.ext.django import FlowThreeLeggedField ImportError: No module named ext.django

from google-api-python-client.

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Thanks for catching that. Could you try patching the setup.py file with the 
attached patch, and re-installing?

Original comment by [email protected] on 30 Oct 2010 at 10:10

Attachments:

from google-api-python-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
hello, i've tried your patch and ran sudo python install setup.py again.

But i received the following error:


Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 219, in execute
    self.validate()
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 249, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/validation.py", line 28, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 146, in get_app_errors
    self._populate()
  File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 64, in _populate
    self.load_app(app_name)
  File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 78, in load_app
    models = import_module('.models', app_name)
  File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/eugene/public_html/django/tabshift/../tabshift/buzz/models.py", line 8, in <module>
    from apiclient.ext.django import FlowThreeLeggedField
  File "/usr/local/lib/python2.6/dist-packages/google_api_python_client-0.1-py2.6.egg/apiclient/ext/django.py", line 1, in <module>
    from django.db import models
ImportError: No module named db


It seems that django.db is not being imported.

But my djanog installation works fine and i've been using it for about 1.5 
years.

Any idea how I can fix this?

Original comment by [email protected] on 31 Oct 2010 at 5:45

from google-api-python-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Yup, looks like a re-naming issue. I've attached another patch -- you should be 
able to apply this one directly to the installed files, no need to re-install.  
Let us know how it works out. Thanks!

Original comment by [email protected] on 1 Nov 2010 at 12:20

Attachments:

from google-api-python-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
revision 87c25aadf0 fixes the issue, revision de627a9efc fixes the problem 
mentioned in comment 2. Note that the patch in comment 3 isn't the same 
solution as the one in the trunk. The trunk has a more descriptive naming 
scheme that solves the problem.

If you're still having problems after pulling the latest changes, please let us 
know. Thanks!

Original comment by [email protected] on 1 Nov 2010 at 10:39

  • Changed state: Fixed

from google-api-python-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.