-
Notifications
You must be signed in to change notification settings - Fork 63
AttributeError: 'module' object has no attribute 'add_to_builtins' #13
Comments
I believe this is a problem with Django 1.8. Try downgrading to 1.7. sudo pip uninstall django |
Yes this was the problem, that fixed it. |
Re-opening so people can find it. |
whoops. reopen again. |
Ha okay cool! |
I think that the problem is that this library needs to be updated on pypi |
I have no problems using 1.8. Perhaps the problem is really 1.8. I have not migrated to that yet. |
setup.py fixed in b584f76 |
I hit this issue today, too. We should release a version with the fix to pypi, if it is indeed fixed. |
I'm getting this error when building from source, too, not just the pypi package. The setup.py script is installing django 1.9rc1
After changing to exactly version 1.8.12, the generate_library command works again.
|
was this ever done as a PR? I ran into the same problem, used the 1.7.7 library and it worked |
We just pushed the change to fix this. Sorry, it was fixed in our internal repo but never synced the change back. |
Oh no it's all good. Thank you for getting all this together! On Thursday, September 29, 2016, Tim Swast notifications@github.com wrote:
Michael Tucker |
@tswast Any chance this fix can be deployed to PyPi? |
I hit this error today, so this is still an issue. If this is fixed internally, it'd be nice if it could be synced. |
IIIRC, this is a Django version mismatch. AFAIK, there have been no changes
to the version of Django we are working against.
…On Tue, Jul 11, 2017 at 8:14 PM, Taylor Cramer ***@***.***> wrote:
I hit this error today, so this is still an issue. If this is fixed
internally, it'd be nice if it could be synced.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC5znNI6BV-i0e_KhGx0f_xHMR4S9JGaks5sM7uFgaJpZM4E548T>
.
|
Yes, it is a version mismatch. However, it means that the README instructions ( |
Looks like there's even an open PR to fix it (#18). |
This is fixed in the latest version. https://pypi.python.org/pypi/google-apis-client-generator/1.4.3 @jeffkpayne Just released it today. Sorry it took so long for me to figure out how to get access to release the version to PyPI. @aiuto @SurferJeffAtGoogle I believe we can close this. |
After installing via pip (python 2.7.6) I keep getting this error
generate_library --input=drumroll.v1.json --language=java --output_dir=/test
Traceback (most recent call last):
File "/usr/local/bin/generate_library", line 9, in
load_entry_point('google-apis-client-generator==1.4.2', 'console_scripts', 'generate_library')()
File "/Library/Python/2.7/site-packages/googleapis/codegen/script_stubs.py", line 9, in RunGenerateLibrary
from googleapis.codegen import generate_library
File "/Library/Python/2.7/site-packages/googleapis/codegen/generate_library.py", line 35, in
from googleapis.codegen import generator_lookup
File "/Library/Python/2.7/site-packages/googleapis/codegen/generator_lookup.py", line 10, in
from googleapis.codegen import csharp_generator
File "/Library/Python/2.7/site-packages/googleapis/codegen/csharp_generator.py", line 23, in
from googleapis.codegen import api
File "/Library/Python/2.7/site-packages/googleapis/codegen/api.py", line 39, in
from googleapis.codegen import data_types
File "/Library/Python/2.7/site-packages/googleapis/codegen/data_types.py", line 24, in
from googleapis.codegen import template_objects
File "/Library/Python/2.7/site-packages/googleapis/codegen/template_objects.py", line 27, in
from googleapis.codegen.django_helpers import MarkSafe
File "/Library/Python/2.7/site-packages/googleapis/codegen/django_helpers.py", line 50, in
django_template.add_to_builtins(
AttributeError: 'module' object has no attribute 'add_to_builtins'
The text was updated successfully, but these errors were encountered: