| MuhammadShuaib added a comment. |
In T146961#2676188, @Xqt wrote:Is it possible to you to join to core branch with your bot? compat is likely deprecated.
When i trying to run a script e.g clean sandbox.py, it gives following error:
tools.-@tools-bastion-03:~/pycore$ python pwb.py clean_sandbox.py -simulate
WARNING: Skipped '/data/project/-/pycore/user-config.py': owned by someone else.
WARNING: family and mylang are not set.
Defaulting to family='test' and mylang='test'.
Traceback (most recent call last):
File "pwb.py", line 270, in <module>
if not main():
File "pwb.py", line 264, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "pwb.py", line 109, in run_python_file
main_mod.__dict__)
File "./scripts/clean_sandbox.py", line 294, in <module>
main()
File "./scripts/clean_sandbox.py", line 266, in main
local_args = pywikibot.handle_args(args)
File "/data/project/-/pycore/pywikibot/bot.py", line 818, in handle_args
writeToCommandLogFile()
File "/data/project/-/pycore/pywikibot/bot.py", line 943, in writeToCommandLogFile
command_log_filename = config.datafilepath('logs', 'commands.log')
File "/data/project/-/pycore/pywikibot/config2.py", line 828, in datafilepath
return makepath(os.path.join(base_dir, *filename))
File "/data/project/-/pycore/pywikibot/config2.py", line 816, in makepath
os.makedirs(dpath)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/data/project/-/pycore/logs'
<type 'exceptions.OSError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abortTASK DETAIL
EMAIL PREFERENCES
To: MuhammadShuaib
Cc: gerritbot, pywikibot-bugs-list, Xqt, Aklapper, MuhammadShuaib, Lewizho99, Maathavan, Anshoe
Cc: gerritbot, pywikibot-bugs-list, Xqt, Aklapper, MuhammadShuaib, Lewizho99, Maathavan, Anshoe
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
