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

Code failing with dlt 1.3.0 #2023

Closed
senickel opened this issue Nov 4, 2024 · 1 comment
Closed

Code failing with dlt 1.3.0 #2023

senickel opened this issue Nov 4, 2024 · 1 comment

Comments

@senickel
Copy link
Contributor

senickel commented Nov 4, 2024

I have some code that worked fine with 1.2.0 and now fails with 1.3.0 with this error:

current_value, traces = _resolve_config_field(
^^^^^^^^^^^^^^^^^^^^^^
File "/bin/app/lib/python3.11/site-packages/dlt/common/configuration/resolve.py", line 321, in _resolve_config_field
value, traces = _resolve_single_value(
^^^^^^^^^^^^^^^^^^^^^^
File "/bin/app/lib/python3.11/site-packages/dlt/common/configuration/resolve.py", line 420, in _resolve_single_value
providers_context = container[PluggableRunContext].providers
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/bin/app/lib/python3.11/site-packages/dlt/common/configuration/container.py", line 67, in __getitem__
item = spec()
^^^^^^
File "/bin/app/lib/python3.11/site-packages/dlt/common/configuration/specs/pluggable_run_context.py", line 72, in __init__
self._plug(run_dir=None)
File "/bin/app/lib/python3.11/site-packages/dlt/common/configuration/specs/pluggable_run_context.py", line 125, in _plug
m = plugins.manager()
^^^^^^^^^^^^^^^^^
File "/bin/app/lib/python3.11/site-packages/dlt/common/configuration/plugins.py", line 41, in manager
return Container()[PluginContext].manager
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/bin/app/lib/python3.11/site-packages/dlt/common/configuration/container.py", line 67, in __getitem__
item = spec()
^^^^^^
File "/bin/app/lib/python3.11/site-packages/dlt/common/configuration/plugins.py", line 34, in __init__
load_setuptools_entrypoints(self.manager)
File "/bin/app/lib/python3.11/site-packages/dlt/common/configuration/plugins.py", line 51, in load_setuptools_entrypoints
if hasattr(dist, "name") and not dist.name.startswith("dlt-"):
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'startswith' 

I apologize for not providing a minimum example yet. However, I wanted to report this right away.

@burnash
Copy link
Collaborator

burnash commented Nov 6, 2024

Fixed in #2024

@burnash burnash closed this as completed Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants