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

NameError: global name 'ConnectionError' is not defined #356

Closed
nemobis opened this issue Feb 9, 2020 · 0 comments
Closed

NameError: global name 'ConnectionError' is not defined #356

nemobis opened this issue Feb 9, 2020 · 0 comments
Labels
Milestone

Comments

@nemobis
Copy link
Member

nemobis commented Feb 9, 2020

Analysing http://kk.encyclopedia.kz/api.php
Trying generating a new dump into a new directory...
Loading page titles from namespaces = all
Excluding titles from namespaces = None
16 namespaces found
    Retrieving titles in the namespace 0
..............................................................................................    46726 titles retrieved in the namespace 0
    Retrieving titles in the namespace 1
.    3 titles retrieved in the namespace 1
    Retrieving titles in the namespace 2
.    2 titles retrieved in the namespace 2
    Retrieving titles in the namespace 3
.    2 titles retrieved in the namespace 3
    Retrieving titles in the namespace 4
.    1 titles retrieved in the namespace 4
    Retrieving titles in the namespace 5
.Traceback (most recent call last):
  File "./dumpgenerator.py", line 2323, in <module>
    main()
  File "./dumpgenerator.py", line 2315, in main
    createNewDump(config=config, other=other)
  File "./dumpgenerator.py", line 1880, in createNewDump
    getPageTitles(config=config, session=other['session'])
  File "./dumpgenerator.py", line 429, in getPageTitles
    for title in titles:
  File "./dumpgenerator.py", line 276, in getPageTitlesAPI
    except ConnectionError as err:
NameError: global name 'ConnectionError' is not defined
tail: cannot open ‘kkencyclopediakz-20200209-wikidump/kkencyclopediakz-20200209-history.xml’ for reading: No such file or directory
No </mediawiki> tag found: dump failed, needs fixing; resume didn't work. Exiting.
@nemobis nemobis added the bug label Feb 9, 2020
@nemobis nemobis added this to the 0.4 milestone Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant