f0restron07 commented on issue #34558: URL: https://github.com/apache/airflow/issues/34558#issuecomment-1732504907
Hi @drobert-bfm, Thank you for providing the details of the issue you’re encountering with Apache Airflow 2.7.1. I understand that you are facing an ImportError when trying to test a DAG outside the Airflow scheduler/executor. Here are a few suggestions and questions that might help in resolving the issue: Check Import Statements: Ensure that you are importing the 'Dataset' class from the correct module and there are no circular or incorrect import statements in your script. Verify Airflow Initialization: Ensure that Airflow is correctly installed, configured, and fully initialized before running the script. There might be a missing configuration or incorrect installation causing the module to be partially initialized. Consult Specific Version Documentation: Please refer to the documentation for version 2.7.1 of Airflow to check for any deprecations or changes related to importing modules or classes. Inspect Virtual Environment Setup: Verify that your virtual environment is correctly set up and isolated, containing the right package versions, to avoid any package conflicts and errors. Additional Details: Could you provide more details on your code, specifically around where and how you are trying to import the 'Dataset' class? Any additional details on your environment setup might also be helpful in diagnosing the issue more accurately. If the issue persists after trying the above suggestions, please consider seeking more help from the Apache Airflow community forums or discussion groups, where you might find others who have encountered similar issues. I hope this helps in resolving your issue. If you manage to identify the problem and find a solution, please consider contributing back by submitting a PR, as you mentioned, following Apache Airflow’s contribution guidelines. Best Regards, f0restron -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
