https://bugzilla.wikimedia.org/show_bug.cgi?id=72680

            Bug ID: 72680
           Summary: 'user-config.py' not found if runs with cron
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: pywikipedia-b...@lists.wikimedia.org
          Reporter: l.rabinelli+bugzi...@gmail.com
       Web browser: ---
   Mobile Platform: ---

After Ic8ac542919e18ad16458d21e0f9713ade899b964 if I try to run a script via
command line (foreground), it's executed correctly.
Eg: python pwb.py <script_name>
But when I schedule the same script via cron, it terminates with this error:

NOTE: 'user-config.py' was not found!
Please follow the prompts to create it:
Traceback (most recent call last):
  File "/data/project/betabot/core/pwb.py", line 162, in <module>
    [])
  File "/data/project/betabot/core/pwb.py", line 74, in run_python_file
    source = open(filename).read()
IOError: [Errno 2] No such file or directory: 'generate_user_files.py'

This is my version:
Pywikibot: [https] r-pywikibot-core.git (178e01a, g4377, 2014/10/26, 22:42:22,
OUTDATED)
Release version: 2.0b2
httplib2 version: 0.9
    certificate test: ok
Python: 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3]
  unicode test: ok

Please, ask me if you need more information.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to