Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Dropbox Import Fail

I'm trying to use the implementation of Dropbox in python but I can't get the import line to work.

import dropbox

gives me the following error. I have tried using the installation included with Raspbian and installing from source (git). Any ideas?

> Traceback (most recent call last):   File "<stdin>", line 1, in
> <module>   File
> "/usr/local/lib/python3.4/dist-packages/dropbox/__init__.py", line 3,
> in <module>
>     from .dropbox import __version__, Dropbox, DropboxTeam, create_session   File
> "/usr/local/lib/python3.4/dist-packages/dropbox/dropbox.py", line 19,
> in <module>
>     from . import files, stone_serializers   File "/usr/local/lib/python3.4/dist-packages/dropbox/files.py", line 8, in
> <module>
>     from . import stone_validators as bv   File "/usr/local/lib/python3.4/dist-packages/dropbox/stone_validators.py",
> line 21, in <module>
>     from typing import Optional ImportError: No module named 'typing'
like image 342
Drew Fulton Avatar asked Dec 07 '25 18:12

Drew Fulton


1 Answers

dropbox requires Python 3.5, as it requires the typing module, which wasn't introduced until 3.5. You're trying to use it with Python 3.4.

like image 174
Morgan Thrapp Avatar answered Dec 09 '25 13:12

Morgan Thrapp