potiuk commented on pull request #20276:
URL: https://github.com/apache/airflow/pull/20276#issuecomment-993816084
> Providers manager is warning here:
> if already_registered.hook_class_name !=
hook_class_name:
This warning is not in the CI. I believe this is caused by .pyc file which
remained from the Hook being present in the old location when you moved the .py
file. This is one of the main reasons in Breeze we have this:
```
# Disable writing .pyc files - slightly slower imports but not messing
around when switching
# Python version and avoids problems with root-owned .pyc files in host
export PYTHONDONTWRITEBYTECODE=${PYTHONDONTWRITEBYTECODE:="true"}
```
cc: @uranusjr (our slack discussion) -> this is one of the bad sides of the
.pyc files, that's why I always disable witing .pyc files in any development
environment I have. Renaming and moving classes causes this kind of problems.
--
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]