Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'module' object has no attribute 'indent': textwrap does not have indent in python 2.7 #46

Closed
knorth55 opened this issue Apr 16, 2020 · 2 comments · Fixed by #47

Comments

@knorth55
Copy link
Contributor

https://travis-ci.org/github/start-jsk/jsk_apc/jobs/675617785

Errors << grasp_fusion:make /home/travis/ros/ws_jsk_apc/logs/grasp_fusion/build.make.000.log

Cached Downloading: /home/travis/data/grasp_fusion_lib/grasp_fusion/rosbags/cluttered_tote.bag


Traceback (most recent call last):


  File "/home/travis/ros/ws_jsk_apc/src/jsk_apc/demos/grasp_fusion/ros/grasp_fusion/scripts/install_data.py", line 33, in <module>


    main()


  File "/home/travis/ros/ws_jsk_apc/src/jsk_apc/demos/grasp_fusion/ros/grasp_fusion/scripts/install_data.py", line 16, in main


    md5='1c9e45667d7a225d9bb089d2f45b3682',


  File "/usr/local/lib/python2.7/dist-packages/gdown/cached_download.py", line 123, in cached_download


    download(url, temp_path, quiet=quiet, proxy=proxy, speed=speed)


  File "/usr/local/lib/python2.7/dist-packages/gdown/download.py", line 99, in download


    error = textwrap.indent(error, "\t")


AttributeError: 'module' object has no attribute 'indent'


make[2]: *** [CMakeFiles/grasp_fusion_install_data] Error 1


make[1]: *** [CMakeFiles/grasp_fusion_install_data.dir/all] Error 2


make[1]: *** Waiting for unfinished jobs....


make: *** [all] Error 2
@wkentaro
Copy link
Owner

wkentaro commented Apr 16, 2020

Released a new version.
But you need to fix the file somehow anyway, because textwrap.indent is only used when gdown fails to download file. (In this case because of too many access)

@knorth55
Copy link
Contributor Author

knorth55 commented Apr 16, 2020

Yes, this is caused by google drive download limit.
with this PR, we can get correct download error message.
start-jsk/jsk_apc#2710 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants