question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while loading the plugin on startup

See original GitHub issue

sublime version: 4074

I wanted to try the typescript branch 😃 (master is also affected) and I stumbled upon this:

reloading python 3.3 plugin GithubPR.OpenPackage
reloading python 3.3 plugin JSCustom.plugin
Traceback (most recent call last):
  File "/opt/sublime_text/Lib/python33/sublime_plugin.py", line 274, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.3/importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1022, in load_module
  File "<frozen importlib._bootstrap>", line 1003, in load_module
  File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 868, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "/home/predrag/.config/sublime-text/Packages/JSCustom/plugin.py", line 12, in <module>
    from .src.commands.build_syntaxes import BuildJsCustomSyntaxCommand, BuildJsCustomSyntaxesCommand
  File "/home/predrag/.config/sublime-text/Packages/JSCustom/src/commands/build_syntaxes.py", line 3, in <module>
    from pathlib import Path
ImportError: No module named 'pathlib'

For some reason this JSCustom gets loaded with the python 3.3 version. (pathlib is available from version 3.4 and above) but I can see in the .python-version file that this plugin should use version 3.8.

It is probably a ST issue, but before I reach out to them, just wanted to check with you if you can maybe solve this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
predragnikoliccommented, May 16, 2020

Well this issue hasn’t lived long 😃

Can confirm that the startup error is fixed

1reaction
predragnikoliccommented, May 16, 2020

Damn it 😄

  File "/home/predrag/.config/sublime-text/Packages/JSCustom/src/commands/build_tests.py", line 2, in <module>
    from pathlib import Path
ImportError: No module named 'pathlib'

I wanted to do a PR, but it is just 2 lines. can you remove the references to pathlib in build_tests.py? 😃

After this change, there should be no errors

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pro Tools quits unexpectedly while loading plug-ins on launch
1. Go to your Pro Tools plug-ins folder: Mac: Macintosh HD/Library/Application Support/Avid/Audio · 2. Move the Plug-Ins folder to the Desktop.
Read more >
Errors prevented startup: While loading plugin `basicFileTypes ...
When I launch the app with meteor run android-device or simply meteor run I get this error in the console (19:21:32)[meteortest]$ meteor run ......
Read more >
MUSHclient : General : MUSHClient giving error ... - Gammon Forum
Gammon Forum : MUSHclient : General : MUSHClient giving error when loading plugin on startup. ... Line 1249: Error parsing script (problem in...
Read more >
Premiere Pro V 15.1 crash on startup (when loading...
Hi Dan. Startup crashes in Premiere are not only because of corrupt or incompatible plugins but also due to VST's that may cause...
Read more >
Pro Tools 2020.9.1 won't load plugins on startup
So today pro tools won't start and it had to do with third party plugins. I removed all the plugins and it loaded...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found