mix86 / SublimeJira

Sublime Text 3 plugin for integration with Atlassian Jira
30 stars 16 forks source link

Error on loading the plugin #1

Closed BernhardRode closed 10 years ago

BernhardRode commented 10 years ago

I'm getting a error after installing and configuring the plugin:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 671, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "sublime_jira in /Users/bernhard/Library/Application Support/Sublime Text 3/Installed Packages/Jira.sublime-package", line 7, in <module>
ImportError: No module named 'api_calls'

Is there an easy way getting the missing package to fix - ImportError: No module named 'api_calls'

johnlemon87 commented 10 years ago

Same error here on windows :-(

johnlemon87 commented 10 years ago

I found a fix for that. I changed the name of the folder inside the plugin from "api_calls" to "apicalls". Now the plugin is loaded and the commands are showing but when I try to get an issue I get this error:

SublimeJira error: [Errno 2] No such file or directory.

nicolashohm commented 10 years ago

i had the same problem, but after unpacking the Jira.sublime-package and moving it into Packages it works but then i try to get an issue i also get this error:

SublimeJira error: [Errno 2] No such file or directory

And If i use Update Issue i instantly get the following error:

SublimeJira error: 'NoneType' object has no attribute 'groups'

mix86 commented 10 years ago

wow... Hallo guys, sorry for silence. I has fixed ImportError. It was because package control by default packs all code to .sublime-package binary (zip) file and some python import magic stops work.

mix86 commented 10 years ago

So, and what about SublimeJira error: 'NoneType' object has no attribute 'groups', this means you trying to update issue with wrong-formatted text. Can you share example text of issue?

nicolashohm commented 10 years ago

hmm strange the error sill exists. After updating jira is installed unziped in Packages

reloading plugin Jira.sublime_jira
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 71, in reload_plugin
    m = imp.reload(m)
  File "X/imp.py", line 252, in reload
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 671, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "C:\...\Sublime Text 3\Packages\Jira\sublime_jira.py", line 7, in <module>
    from api_calls.get_issue import GetIssueApiCall
ImportError: No module named 'api_calls'
mix86 commented 10 years ago

I think, I found a problem. A minute please...

mix86 commented 10 years ago

Please try to update 0.1.3 version. I hope I fix your problem.

johnlemon87 commented 10 years ago

Last version is working for me. Good job! Thanks. :+1: