yadayada / acd_cli

An unmaintained command line interface and FUSE filesystem for Amazon (Cloud) Drive
Other
1.35k stars 165 forks source link

ImportError: No module named 'urlparse' #484

Closed rubstew closed 7 years ago

rubstew commented 7 years ago

After upgrading to the last version it's crashing everything. 'Python 3.4.2'

acd_cli sync
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/requests_toolbelt/_compat.py", line 49, in <module>
    from requests.packages.urllib3.contrib import appengine as gaecontrib
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/contrib/appengine.py", line 45, in <module>
    from urlparse import urljoin
ImportError: No module named 'urlparse'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/acd_cli", line 9, in <module>
    load_entry_point('acdcli==0.3.2', 'console_scripts', 'acd_cli')()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2476, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/local/bin/acd_cli.py", line 22, in <module>
    from acdcli.api import client
  File "/usr/local/lib/python3.4/dist-packages/acdcli/api/client.py", line 14, in <module>
    from .content import ContentMixin
  File "/usr/local/lib/python3.4/dist-packages/acdcli/api/content.py", line 10, in <module>
    from requests_toolbelt import MultipartEncoder
  File "/usr/local/lib/python3.4/dist-packages/requests_toolbelt/__init__.py", line 12, in <module>
    from .adapters import SSLAdapter, SourceAddressAdapter
  File "/usr/local/lib/python3.4/dist-packages/requests_toolbelt/adapters/__init__.py", line 12, in <module>
    from .ssl import SSLAdapter
  File "/usr/local/lib/python3.4/dist-packages/requests_toolbelt/adapters/ssl.py", line 16, in <module>
    from .._compat import poolmanager
  File "/usr/local/lib/python3.4/dist-packages/requests_toolbelt/_compat.py", line 51, in <module>
    from urllib3.contrib import appengine as gaecontrib
ImportError: cannot import name 'appengine'
sapk commented 7 years ago

Cela provient peut-être de la nouvelle version de https://pypi.python.org/pypi/requests

chris243 commented 7 years ago

having same exact problem EDIT: Found a fix! Download this https://pypi.python.org/packages/f8/90/42d5e0d9b5c4c3629a3d99823bbc3748fb85616f0f7a45e79ba7908d4642/requests-2.11.0-py2.py3-none-any.whl#md5=369b7333bf2f710143a1b6678f2f214c and place somewhere then cd into it and do

pip3 install requests-2.11.0-py2.py3-none-any.whl`

you might have to do

pip3 uninstall requests

first

rubstew commented 7 years ago

Great this solved the problem!! Thanks!