Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

adlmagics initialization error #44

Open
ruixinxu opened this issue Jul 4, 2018 · 1 comment
Open

adlmagics initialization error #44

ruixinxu opened this issue Jul 4, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ruixinxu
Copy link
Member

ruixinxu commented Jul 4, 2018

Describe the bug
got an error when initializing the adlmagics

To Reproduce
run %reload_ext adlmagics and got the error as shown in the attached image

Screenshots
initializationerror

Desktop (please complete the following information):

  • OS: Win10
  • Browser : IE
  • Jupyter Version:
  • ADS Notebook Version [e.g. 0.0.1]:

Additional context
Add any other context about the problem here.

@ruixinxu
Copy link
Member Author

Got following error when trying to initialize adlmagics today. @gaoyangxiaozhu could u pls help take a look?


ImportError Traceback (most recent call last)
in ()
----> 1 get_ipython().run_line_magic('reload_ext', 'adlmagics')

c:\python3\lib\site-packages\IPython\core\interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
2093 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2094 with self.builtin_trap:
-> 2095 result = fn(*args,**kwargs)
2096 return result
2097

in reload_ext(self, module_str)

c:\python3\lib\site-packages\IPython\core\magic.py in (f, *a, **k)
185 # but it's overkill for just that one bit of state.
186 def magic_deco(arg):
--> 187 call = lambda f, *a, **k: f(*a, **k)
188
189 if callable(arg):

c:\python3\lib\site-packages\IPython\core\magics\extension.py in reload_ext(self, module_str)
61 if not module_str:
62 raise UsageError('Missing module name.')
---> 63 self.shell.extension_manager.reload_extension(module_str)

c:\python3\lib\site-packages\IPython\core\extensions.py in reload_extension(self, module_str)
133 self.loaded.add(module_str)
134 else:
--> 135 self.load_extension(module_str)
136
137 def _call_load_ipython_extension(self, mod):

c:\python3\lib\site-packages\IPython\core\extensions.py in load_extension(self, module_str)
83 if module_str not in sys.modules:
84 with prepended_to_syspath(self.ipython_extension_dir):
---> 85 mod = import_module(module_str)
86 if mod.file.startswith(self.ipython_extension_dir):
87 print(("Loading extensions from {dir} is deprecated. "

c:\python3\lib\importlib_init_.py in import_module(name, package)
124 break
125 level += 1
--> 126 return _bootstrap._gcd_import(name[level:], package, level)
127
128

c:\python3\lib\importlib_bootstrap.py in _gcd_import(name, package, level)

c:\python3\lib\importlib_bootstrap.py in find_and_load(name, import)

c:\python3\lib\importlib_bootstrap.py in find_and_load_unlocked(name, import)

c:\python3\lib\importlib_bootstrap.py in _load_unlocked(spec)

c:\python3\lib\importlib_bootstrap_external.py in exec_module(self, module)

c:\python3\lib\importlib_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)

c:\python3\lib\site-packages\adlmagics_init_.py in ()
----> 1 from adlmagics.adlmagics_main import AdlMagics
2
3 def load_ipython_extension(ipython):
4 ipython.register_magics(AdlMagics)

c:\python3\lib\site-packages\adlmagics\adlmagics_main.py in ()
4
5 from adlmagics.services.azure_token_service import AzureTokenService
----> 6 from adlmagics.services.adla_service_sdk_impl import AdlaServiceSdkImpl
7 from adlmagics.services.adls_service_sdk_impl import AdlsServiceSdkImpl
8

c:\python3\lib\site-packages\adlmagics\services\adla_service_sdk_impl.py in ()
1 from azure.mgmt.resource.subscriptions import SubscriptionClient
----> 2 from azure.mgmt.datalake.analytics import DataLakeAnalyticsAccountManagementClient
3 from azure.mgmt.datalake.analytics import DataLakeAnalyticsJobManagementClient
4 from azure.mgmt.datalake.analytics.job.models import JobInformation, USqlJobProperties, JobType
5 from uuid import uuid4

c:\python3\lib\site-packages\azure\mgmt\datalake\analytics_init_.py in ()
----> 1 from .account import DataLakeAnalyticsAccountManagementClient
2 from .catalog import DataLakeAnalyticsCatalogManagementClient
3 from .job import DataLakeAnalyticsJobManagementClient
4
5 from .version import VERSION

c:\python3\lib\site-packages\azure\mgmt\datalake\analytics\account_init_.py in ()
10 # --------------------------------------------------------------------------
11
---> 12 from .data_lake_analytics_account_management_client import DataLakeAnalyticsAccountManagementClient
13 from .version import VERSION
14

c:\python3\lib\site-packages\azure\mgmt\datalake\analytics\account\data_lake_analytics_account_management_client.py in ()
10 # --------------------------------------------------------------------------
11
---> 12 from msrest.service_client import SDKClient
13 from msrest import Serializer, Deserializer
14 from msrestazure import AzureConfiguration

ImportError: cannot import name 'SDKClient'

@ruixinxu ruixinxu added the bug Something isn't working label Jul 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants