Skip to content

After 3.0.0: ModuleNotFoundError: No module named 'path' #2491

@cpoppema

Description

@cpoppema

Expected behaviour:

Clean startup (no errors)

Actual behaviour:

Log shows:

2019-11-11 19:42 CRITICAL plugin                        Plugin `flexget.plugins.cli.debug_info` failed to import dependencies
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/flexget/plugin.py", line 423, in _import_plugin
    import_module(module_name)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.7/site-packages/flexget/plugins/cli/debug_info.py", line 3, in <module>
    from path import Path
ModuleNotFoundError: No module named 'path'

Steps to reproduce:

  • Step 1: Start flexget: /usr/bin/flexget --loglevel debug daemon start --autoreload-config

Config:

Not relevant

Log:

(click to expand)
2019-11-11 19:42 DEBUG    manager                       Figuring out config load paths
2019-11-11 19:42 DEBUG    manager                       Found config: /root/.flexget/config.yml
2019-11-11 19:42 DEBUG    manager                       Config file /root/.flexget/config.yml selected
2019-11-11 19:42 DEBUG    manager                       sys.defaultencoding: utf-8
2019-11-11 19:42 DEBUG    manager                       sys.getfilesystemencoding: utf-8
2019-11-11 19:42 DEBUG    manager                       flexget detected io encoding: utf-8
2019-11-11 19:42 DEBUG    manager                       os.path.supports_unicode_filenames: False
2019-11-11 19:42 DEBUG    plugin                        Trying to load plugins from: ['/root/.flexget/plugins', '/usr/lib/python3.7/site-packages/flexget/plugins']
2019-11-11 19:42 DEBUG    plugin                        Plugin `memusage` requires plugin `ext lib `guppy`` to load.
2019-11-11 19:42 DEBUG    stevedore.extension                 found extension EntryPoint.parse('addic7ed = subliminal.providers.addic7ed:Addic7edProvider')
2019-11-11 19:42 DEBUG    stevedore.extension                 found extension EntryPoint.parse('legendastv = subliminal.providers.legendastv:LegendasTVProvider')
2019-11-11 19:42 DEBUG    stevedore.extension                 found extension EntryPoint.parse('opensubtitles = subliminal.providers.opensubtitles:OpenSubtitlesProvider')
2019-11-11 19:42 DEBUG    stevedore.extension                 found extension EntryPoint.parse('podnapisi = subliminal.providers.podnapisi:PodnapisiProvider')
2019-11-11 19:42 DEBUG    stevedore.extension                 found extension EntryPoint.parse('shooter = subliminal.providers.shooter:ShooterProvider')
2019-11-11 19:42 DEBUG    stevedore.extension                 found extension EntryPoint.parse('subscenter = subliminal.providers.subscenter:SubsCenterProvider')
2019-11-11 19:42 DEBUG    stevedore.extension                 found extension EntryPoint.parse('thesubdb = subliminal.providers.thesubdb:TheSubDBProvider')
2019-11-11 19:42 DEBUG    stevedore.extension                 found extension EntryPoint.parse('tvsubtitles = subliminal.providers.tvsubtitles:TVsubtitlesProvider')
2019-11-11 19:42 DEBUG    stevedore.extension                 found extension EntryPoint.parse('metadata = subliminal.refiners.metadata:refine')
2019-11-11 19:42 DEBUG    stevedore.extension                 found extension EntryPoint.parse('omdb = subliminal.refiners.omdb:refine')
2019-11-11 19:42 DEBUG    stevedore.extension                 found extension EntryPoint.parse('tvdb = subliminal.refiners.tvdb:refine')
2019-11-11 19:42 CRITICAL plugin                        Plugin `flexget.plugins.cli.debug_info` failed to import dependencies
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/flexget/plugin.py", line 423, in _import_plugin
    import_module(module_name)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.7/site-packages/flexget/plugins/cli/debug_info.py", line 3, in <module>
    from path import Path
ModuleNotFoundError: No module named 'path'
2019-11-11 19:42 DEBUG    plugin                        Trying to load components from: ['/root/.flexget/components', '/usr/lib/python3.7/site-packages/flexget/components']
2019-11-11 19:42 DEBUG    plugin                        Plugins took 1.03 seconds to load. 298 plugins in registry.
2019-11-11 19:42 DEBUG    manager                       Connecting to: sqlite:////root/.flexget/db-config.sqlite
2019-11-11 19:42 DEBUG    manager                       config_name: config
2019-11-11 19:42 DEBUG    manager                       config_base: /root/.flexget
2019-11-11 19:42 DEBUG    variables                     trying to load variables from file
2019-11-11 19:42 DEBUG    variables                     updating DB with variable file contents
2019-11-11 19:42 DEBUG    manager                       New config data loaded.
2019-11-11 19:42 DEBUG    schema                        updating flexget version 3.0.0 in db

Additional information:

  • FlexGet version: 3.0.0
  • Python version: 3.7.5
  • Installation method: pip
  • Using daemon (yes/no): yes
  • OS and version: alpine 3.10

Inside the same python environment if I run this command: pip install "flexget<3" it ends with:

Successfully installed flexget-2.21.35 future-0.16.0 path.py-11.5.0

So I guess from path import Path for py3 is made possible through path.py-11.5.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions