Skip to content

No module named 'TFM_addon.TFM_addon'; 'TFM_addon' is not a package #5

@b-pardi

Description

@b-pardi

After much trial and error clickpoints was successfully installed. After pip installing pyTFM and opening click points, I went to import the pyTFM addon and received the error in the title.

import add-on path C:\Users\MECHANO3BIOLOGY Lab\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyTFM
import TFM_addon.TFM_addon
Traceback (most recent call last):
  File "C:\Users\MECHANO3BIOLOGY Lab\AppData\Local\Programs\Python\Python311\Lib\site-packages\clickpoints\modules\ScriptLauncher.py", line 420, in add_script
    self.script_launcher.activateScript(self.selected_script)
  File "C:\Users\MECHANO3BIOLOGY Lab\AppData\Local\Programs\Python\Python311\Lib\site-packages\clickpoints\modules\ScriptLauncher.py", line 501, in activateScript
    if script.activate(self, silent=silent):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\MECHANO3BIOLOGY Lab\AppData\Local\Programs\Python\Python311\Lib\site-packages\clickpoints\modules\ScriptLauncher.py", line 230, in activate
    raise err
  File "C:\Users\MECHANO3BIOLOGY Lab\AppData\Local\Programs\Python\Python311\Lib\site-packages\clickpoints\modules\ScriptLauncher.py", line 224, in activate
    self.addon_module = import_module(folder + "." + basefilename)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\MECHANO3BIOLOGY Lab\AppData\Local\Programs\Python\Python311\Lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1135, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'TFM_addon.TFM_addon'; 'TFM_addon' is not a package

resolution has not been found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions