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

which python version to run MARVEL_Download.py #4

Open
pzibang opened this issue May 13, 2020 · 1 comment
Open

which python version to run MARVEL_Download.py #4

pzibang opened this issue May 13, 2020 · 1 comment

Comments

@pzibang
Copy link

pzibang commented May 13, 2020

I think the version of python cause the mistake ,when run the MARVEL_Download.py ,something have change in higher version, like urllib2,urlopen,and so on. So I think could the author provide the version of the python,or commit a new MARVEL_Download.py?

@Kaeseknacker
Copy link

I used python 3. And change the following:

# line 2:
-from urllib2 import urlopen
+from urllib.request import urlopen
...
# line 59:
-                out = file(os.path.join(outFolder,filename),"wb")
+                #out = file(os.path.join(outFolder,filename),"wb")
+                out = os.path.join(outFolder,filename)

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

2 participants