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

TypeError: name must be an instance of str #18

Open
jbc222 opened this issue Oct 31, 2024 · 2 comments
Open

TypeError: name must be an instance of str #18

jbc222 opened this issue Oct 31, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jbc222
Copy link

jbc222 commented Oct 31, 2024

(airda) PS C:\Users\Administrator> airda datasource add -n mydatasource -h localhost -p 3306 -k MYSQL -d sakila
Traceback (most recent call last):
File "D:\conda\envs\airda\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\conda\envs\airda\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "D:\conda\envs\airda\Scripts\airda.exe_main
.py", line 7, in
sys.exit(main())
File "D:\conda\envs\airda\lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
File "D:\conda\envs\airda\lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "D:\conda\envs\airda\lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "D:\conda\envs\airda\lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "D:\conda\envs\airda\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\conda\envs\airda\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "D:\conda\envs\airda\lib\site-packages\airda\cli\startup.py", line 177, in add
context = DataAgent(DataAgentKey.STORAGE).run()
File "D:\conda\envs\airda\lib\site-packages\airda\agent\agent.py", line 27, in init
self.context.load_storage()
File "D:\conda\envs\airda\lib\site-packages\airda\agent\data_agent_context.py", line 18, in load_storage
super().load(DataAgentKey.STORAGE, DataAgentStorage)
File "D:\conda\envs\airda\lib\site-packages\airda\framework\agent\context.py", line 46, in load
self._load_by_type(key, module, False, context=self)
File "D:\conda\envs\airda\lib\site-packages\airda\framework\agent\context.py", line 54, in _load_by_type
self._create_module(key, module, **kwargs)
File "D:\conda\envs\airda\lib\site-packages\airda\framework\agent\context.py", line 57, in _create_module
module = cls(**kwargs)
File "D:\conda\envs\airda\lib\site-packages\airda\agent\storage\storage.py", line 27, in init
self.init_storage()
File "D:\conda\envs\airda\lib\site-packages\airda\agent\storage\storage.py", line 41, in init_storage
self.database = self.client[db_name]
File "D:\conda\envs\airda\lib\site-packages\pymongo\synchronous\mongo_client.py", line 1183, in getitem
return database.Database(self, name)
File "D:\conda\envs\airda\lib\site-packages\pymongo\synchronous\database.py", line 125, in init
raise TypeError("name must be an instance of str")
TypeError: name must be an instance of str

Reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error '...'

Expected behavior

Context

  • Operating System and version:
  • Browser and version(if necessary):
  • Which version are you using:
Error message
Paste complete error message, logs, or stack traces here.
Configuration
Paste the contents of your configuration file here.
Additional context
Add any other context about the problem here.
@jbc222 jbc222 added the bug Something isn't working label Oct 31, 2024
@jbc222
Copy link
Author

jbc222 commented Oct 31, 2024

运行了好几次,都不行

@SoiTeoh
Copy link

SoiTeoh commented Dec 28, 2024

大佬,解决了没有,我也遇到了同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants