question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI Connection import command not work

See original GitHub issue

Apache Airflow version:

Kubernetes version (if you are using kubernetes) (use kubectl version):

Environment:

  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

What happened:

File “/home/airflow/.local/lib/python3.6/site-packages/airflow/cli/commands/connection_command.py”, line 272, in _import_helper key: value for key, value in conn_values.items() if key in allowed_fields AttributeError: ‘Connection’ object has no attribute ‘items’

I just use the file generated from connections export command

What you expected to happen:

How to reproduce it:

Anything else we need to know:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
natanweinbergercommented, Jun 11, 2021

Yes, that’s right. I made a last minute change that resulted in a mistake which wasn’t caught in the unit test. This was just fixed in #15425 this morning!

Check out the description of #15425 for a full explanation of the bug, the root cause and the fix.

0reactions
natanweinbergercommented, Jun 11, 2021

😁

Yes, it can be closed!

Read more comments on GitHub >

github_iconTop Results From Across the Web

import statement is not working when running python script ...
What worked fine for me is: Go to file which shows import module issue and before importing module(for which issue is seen),add the...
Read more >
Import and export from the command-line - Access to Memory
Import and export from the command-line¶. AtoM supports import and export via the user interface, and these tasks are executed as jobs and...
Read more >
az command not working: import issue #9473 - GitHub
When I run brew install azure-cli on my Mac running 10.14.4, all seems well. Is there anything special about your machine? Have you...
Read more >
Troubleshooting AWS CLI errors - AWS Command Line Interface
If the aws command cannot be found after first installing or updating the AWS CLI, you might need to restart your terminal for...
Read more >
istool import -all - IBM
You can import most types of assets with a single command by using the ... Data connections that are imported when you use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found