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

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

Open
b-pardi opened this issue Nov 22, 2023 · 0 comments
Open

Comments

@b-pardi
Copy link

b-pardi commented Nov 22, 2023

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

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