Xqt created this task.
Xqt added projects: Pywikibot-core, Tool-Labs.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
Herald added a project: Labs.

TASK DESCRIPTION

@MuhammadShuaib added a comment. in T146961:

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 abort

TASK DETAIL
https://phabricator.wikimedia.org/T146996

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: hashar, valhallasw, Xqt, Aklapper, MuhammadShuaib, pywikibot-bugs-list, MayS, Freddy2001, Mdupont, JJMC89, Luke081515, yuvipanda, Gryllida, jayvdb, scfc, Alchimista, coren, chasemp
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to