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

SyntaxError: invalid syntax in downloading from Category #16

Open
marlara opened this issue Nov 20, 2020 · 4 comments
Open

SyntaxError: invalid syntax in downloading from Category #16

marlara opened this issue Nov 20, 2020 · 4 comments

Comments

@marlara
Copy link

marlara commented Nov 20, 2020

I used pip to install CommonsDownloader and I'm using python 3.6 on Ubuntu. 18.04 When I run this command:

download_from_Wikimedia_Commons --category Giovanni_Battista_Moroni --output ~/path
I get the following error:

 File "/home/user/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2456, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.6/dist-packages/commonsdownloader/commonsdownloader.py", line 104
    except DownloadException, e:
                            ^
SyntaxError: invalid syntax

Is it something I'm doing wrong?
Thanks in advance

@JeanFred
Copy link
Member

Hi @marlara ,

I’m afraid CommonsDownloader was written in Python2 and never upgraded to py3 :-(

There’s an open PR for this at #15 − I will try to have a look soon.

@marlara
Copy link
Author

marlara commented Nov 20, 2020 via email

@WikiLucas00
Copy link

Hi @JeanFred, I would be very interested to use this tool to download files from categories, do you plan looking at the PR soon? All the best

@thibaultmol
Copy link

I had to go check this issue to notice it. Consider mentioning that you should use python 2 on the readme of the project

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

No branches or pull requests

4 participants