Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to "enable" #22

Open
sdothum opened this issue Feb 24, 2025 · 0 comments
Open

Unable to "enable" #22

sdothum opened this issue Feb 24, 2025 · 0 comments

Comments

@sdothum
Copy link

sdothum commented Feb 24, 2025

On Voidlinux, running 3.3.7 Nicotine+

more-upload-stats placed in ~/.local/share/nicotine/plugins (default folder when "add plugins" selected).

Get this in debug log:

02/24/2025 02:27:09 PM Rescan complete: 4332 folders found
02/24/2025 02:27:19 PM Unable to load plugin more-upload-stats
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/pynicotine/pluginsystem.py", line 465, in _import_plugin_instance
    plugin = import_module(f"pynicotine.plugins.{plugin_name}")
  File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pynicotine.plugins.more-upload-stats'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/pynicotine/pluginsystem.py", line 522, in enable_plugin
    plugin = self._import_plugin_instance(plugin_name)
  File "/usr/lib/python3.13/site-packages/pynicotine/pluginsystem.py", line 479, in _import_plugin_instance
    spec.loader.exec_module(plugin)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/home/shum/.local/share/nicotine/plugins/more-upload-stats/__init__.py", line 18, in <module>
    from upload_stats import Plugin  # noqa: E402
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/shum/.local/share/nicotine/plugins/more-upload-stats/upload_stats/__init__.py", line 1, in <module>
    from .plugin import Plugin
  File "/home/shum/.local/share/nicotine/plugins/more-upload-stats/upload_stats/plugin.py", line 24, in <module>
    from .defaults import BUILD_PATH, HTML_PATH, REL_HTML_PATH
  File "/home/shum/.local/share/nicotine/plugins/more-upload-stats/upload_stats/defaults.py", line 5, in <module>
    from .npc import BASE_PATH
ImportError: cannot import name 'BASE_PATH' from 'upload_stats.npc' (unknown location)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant