JJMC89 created this task.
JJMC89 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **Steps to replicate the issue** (include links if applicable):
  
    $ python3 -m venv pwbvenv
    $ source pwbvenv/bin/activate
    $ git clone --depth 1 --single-branch --recurse-submodules 
--shallow-submodules --branch stable 
"https://gerrit.wikimedia.org/r/pywikibot/core"; $HOME/pywikibot-core
    $ pip install --upgrade pip setuptools wheel
    $ pip install $HOME/pywikibot-core[mwoauth,mysql]
    $ pwb version
  
  or
  
    $ python3 -m venv pwbvenv
    $ source pwbvenv/bin/activate
    $ pip install pywikibot-scripts
    $ pwb version
  
  **What happens?**:
  
  counterexample
    Traceback (most recent call last):
      File "/data/project/jjmc89-bot-dev/pwbvenv/bin/pwb", line 3, in <module>
        from pywikibot.scripts.wrapper import run
      File 
"/data/project/jjmc89-bot-dev/pwbvenv/lib/python3.13/site-packages/pywikibot/scripts/wrapper.py",
 line 297, in <module>
        if not check_modules():
               ~~~~~~~~~~~~~^^
      File 
"/data/project/jjmc89-bot-dev/pwbvenv/lib/python3.13/site-packages/pywikibot/scripts/wrapper.py",
 line 247, in check_modules
        from setup import script_deps
    ModuleNotFoundError: No module named 'setup'
  
  **What should have happened instead?**:
  
  The version script should have run successfully without the wrapper raising 
an exception.

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

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

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to