{"action":"created","issue":{"url":"https://api.github.com/repos/revmischa/sublime-boto3/issues/1","repository_url":"https://api.github.com/repos/revmischa/sublime-boto3","labels_url":"https://api.github.com/repos/revmischa/sublime-boto3/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/revmischa/sublime-boto3/issues/1/comments","events_url":"https://api.github.com/repos/revmischa/sublime-boto3/issues/1/events","html_url":"https://github.com/revmischa/sublime-boto3/issues/1","id":173577453,"number":1,"title":"invalid directory structure and missing botocore","user":{"login":"impressiver","id":125022,"avatar_url":"https://avatars.githubusercontent.com/u/125022?v=3","gravatar_id":"","url":"https://api.github.com/users/impressiver","html_url":"https://github.com/impressiver","followers_url":"https://api.github.com/users/impressiver/followers","following_url":"https://api.github.com/users/impressiver/following{/other_user}","gists_url":"https://api.github.com/users/impressiver/gists{/gist_id}","starred_url":"https://api.github.com/users/impressiver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/impressiver/subscriptions","organizations_url":"https://api.github.com/users/impressiver/orgs","repos_url":"https://api.github.com/users/impressiver/repos","events_url":"https://api.github.com/users/impressiver/events{/privacy}","received_events_url":"https://api.github.com/users/impressiver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-27T04:37:00Z","updated_at":"2016-08-29T23:27:42Z","closed_at":null,"body":"I'm trying to get [sublime-awslambda](/revmischa/sublime-awslambda) installed via Package Control 3, but there seems to be an issue importing `boto3` (declared in `dependencies.json`). Package Control does successfully download and install the `sublime-boto3`, but importing results in an empty module.\r\n\r\nI was able to track down half of the problem: the contents of `sublime-boto3/all` (minus the readme's, pkg-info, license, etc.) should be placed in a subdirectory `sublime-boto3/all/boto3`.\r\n\r\nDoing the above gets classes loading as expected, until `boto3` tries to import `botocore`, which is not available in the Package Control dependencies.\r\n\r\nConsole output when trying to run `sublime-awslambda` \"list functions\" from the menu:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py\", line 553, in run_\r\n    return self.run()\r\n  File \"awslambda in /Users/ian/Library/Application Support/Sublime Text 3/Installed Packages/AWS Lambda.sublime-package\", line 294, in run\r\n  File \"awslambda in /Users/ian/Library/Application Support/Sublime Text 3/Installed Packages/AWS Lambda.sublime-package\", line 182, in select_function\r\n  File \"awslambda in /Users/ian/Library/Application Support/Sublime Text 3/Installed Packages/AWS Lambda.sublime-package\", line 168, in _load_functions\r\n  File \"awslambda in /Users/ian/Library/Application Support/Sublime Text 3/Installed Packages/AWS Lambda.sublime-package\", line 66, in client\r\n  File \"awslambda in /Users/ian/Library/Application Support/Sublime Text 3/Installed Packages/AWS Lambda.sublime-package\", line 49, in test_aws_credentials_exist\r\n  File \"awslambda in /Users/ian/Library/Application Support/Sublime Text 3/Installed Packages/AWS Lambda.sublime-package\", line 43, in get_aws_session\r\nAttributeError: 'module' object has no attribute 'session'\r\n```\r\n\r\nTrying to import `boto3`:\r\n```\r\n>>> import boto3\r\n>>> dir(boto3)\r\n['__doc__', '__initializing__', '__loader__', '__name__', '__package__', '__path__']\r\n```\r\n\r\nAfter moving `boto3` module sources to `sublime-boto3/all/boto3/`:\r\n```\r\nreloading plugin AWS Lambda.awslambda\r\nTraceback (most recent call last):\r\n  File \"/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py\", line 78, in reload_plugin\r\n    m = importlib.import_module(modulename)\r\n  File \"./python3.3/importlib/__init__.py\", line 90, in import_module\r\n  File \"<frozen importlib._bootstrap>\", line 1584, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 1565, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 1532, in _find_and_load_unlocked\r\n  File \"/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py\", line 658, in load_module\r\n    exec(compile(source, source_path, 'exec'), mod.__dict__)\r\n  File \"awslambda in /Users/ian/Library/Application Support/Sublime Text 3/Installed Packages/AWS Lambda.sublime-package\", line 14, in <module>\r\n  File \"/Users/ian/Library/Application Support/Sublime Text 3/Packages/boto3/all/boto3/__init__.py\", line 16, in <module>\r\n    from boto3.session import Session\r\n  File \"/Users/ian/Library/Application Support/Sublime Text 3/Packages/boto3/all/boto3/session.py\", line 17, in <module>\r\n    import botocore.session\r\nImportError: No module named 'botocore'\r\n```"},"comment":{"url":"https://api.github.com/repos/revmischa/sublime-boto3/issues/comments/243288454","html_url":"https://github.com/revmischa/sublime-boto3/issues/1#issuecomment-243288454","issue_url":"https://api.github.com/repos/revmischa/sublime-boto3/issues/1","id":243288454,"user":{"login":"revmischa","id":245131,"avatar_url":"https://avatars.githubusercontent.com/u/245131?v=3","gravatar_id":"","url":"https://api.github.com/users/revmischa","html_url":"https://github.com/revmischa","followers_url":"https://api.github.com/users/revmischa/followers","following_url":"https://api.github.com/users/revmischa/following{/other_user}","gists_url":"https://api.github.com/users/revmischa/gists{/gist_id}","starred_url":"https://api.github.com/users/revmischa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revmischa/subscriptions","organizations_url":"https://api.github.com/users/revmischa/orgs","repos_url":"https://api.github.com/users/revmischa/repos","events_url":"https://api.github.com/users/revmischa/events{/privacy}","received_events_url":"https://api.github.com/users/revmischa/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T23:27:42Z","updated_at":"2016-08-29T23:27:42Z","body":"Maybe someone needs to make a botocore sublime dep package? Or bundle it in this one somehow?"}}
{"actor":{"display_login":"revmischa"}}