potiuk commented on issue #40431:
URL: https://github.com/apache/airflow/issues/40431#issuecomment-2205170266
Can you look and 'modules management' (search for it in our docs) and
follow the best practices there ?
The - most likely - problem (and explained in the best practices) is that
you are using a 'common' name as top package import. This is a Python
'property' that when importing a module, Python will import the first found
module on the PYTHONPATH and since there are various places it can come from,
likely reason is that you have 'common' somewhere there that is different than
what you want to import.
Simply when importing something don't start the import with any name that is
likely to be used somewhere else.
Our recommendation is to put all packages of yours in uniquely named package
(say your organisation name - say 'myorg'. And always import your code as 'feom
myorg.something' - this effectively namespaces your import and avoids any kinds
of conflicts with similar names.
--
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]