Dvorapa added a comment.
Yeah, when I run `python pwb.py generate_user_files` locally, it breaks on
the same issue:
$ python pwb.py generate_user_files
Traceback (most recent call last):
File "/home/pavel/pywikibot5/pwb.py", line 199, in <module>
import pywikibot as pwb
File "/home/pavel/pywikibot5/pywikibot/__init__.py", line 22, in <module>
from pywikibot import config as _config
File "/home/pavel/pywikibot5/pywikibot/config.py", line 380, in <module>
base_dir = get_base_dir()
File "/home/pavel/pywikibot5/pywikibot/config.py", line 371, in
get_base_dir
raise RuntimeError(exc_text)
RuntimeError: No user-config.py found in directory '/home/pavel/pywikibot5'.
Please check that user-config.py is stored in the correct location.
Directory where user-config.py is searched is determined as follows:
Return the directory in which user-specific information is stored.
This is determined in the following order:
1. If the script was called with a -dir: argument, use the directory
provided in this argument.
2. If the user has a PYWIKIBOT_DIR environment variable, use the value
of it.
3. If user-config is present in current directory, use the current
directory.
4. If user-config is present in pwb.py directory, use that directory
5. Use (and if necessary create) a 'pywikibot' folder under
'Application Data' or 'AppData\Roaming' (Windows) or
'.pywikibot' directory (Unix and similar) under the user's home
directory.
Set PYWIKIBOT_NO_USER_CONFIG=1 to disable loading user-config.py or
install pywikibot as a site-package.
@param test_directory: Assume that a user config file exists in this
directory. Used to test whether placing a user config file in this
directory will cause it to be selected as the base directory.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pavel/pywikibot5/pwb.py", line 202, in <module>
import pywikibot as pwb
File "/home/pavel/pywikibot5/pywikibot/__init__.py", line 36, in <module>
from pywikibot.bot import (
File "/home/pavel/pywikibot5/pywikibot/bot.py", line 105, in <module>
from pywikibot import config, daemonize, i18n, version
File "/home/pavel/pywikibot5/pywikibot/i18n.py", line 864, in <module>
TranslationError = pywikibot.exceptions.TranslationError
AttributeError: partially initialized module 'pywikibot' has no attribute
'exceptions' (most likely due to a circular import)
TASK DETAIL
https://phabricator.wikimedia.org/T281551
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, Dvorapa
Cc: Dvorapa, JJMC89, atagar, Ladsgroup, Legoktm, jayvdb, Aklapper, Xqt,
pywikibot-bugs-list, Shalomori123, Lalamarie69, Jyoo1011, JohnsonLee01, SHEKH,
Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301,
joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420,
Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, Maathavan, Altostratus,
Avicennasis, mys_721tx, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs