-
Notifications
You must be signed in to change notification settings - Fork 363
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
FileNotFoundError in running_in_docker #1201
Comments
Having the same issue, but triggered by "zappa init" even; eg:
|
Thanks for reporting this, we'll get a fix out soon! |
Same issue on osx! |
monkut
added a commit
that referenced
this issue
Dec 3, 2022
* Update setup.py * Update __init__.py * 🐛 fix FileNotFoundError in running_in_docker (#1201) * Remove version constraints * Changed the way Docker is determined * Reference to ticket 1140 * Added documentation for ZAPPA_RUNNING_IN_DOCKER flag * Fixed indentation * Removed log file * Added strtobool and re-added MINIMUM_SUPPORTED_MIINOR_VERSION * updated version * Added #1201 to CHANGELOG.md, reformatted code * Reformatted by black due to line length * Removed unnecessary comment Co-authored-by: monkut <shane.cousins@gmail.com>
Method was changed, and fixed in the 0.56.1 release, please check. |
@monkut it works now, thank you for the quick turnaround! |
Ian288
pushed a commit
to tackle-io/Zappa
that referenced
this issue
Jul 11, 2023
* Update setup.py * Update __init__.py * 🐛 fix FileNotFoundError in running_in_docker (zappa#1201) * Remove version constraints * Changed the way Docker is determined * Reference to ticket 1140 * Added documentation for ZAPPA_RUNNING_IN_DOCKER flag * Fixed indentation * Removed log file * Added strtobool and re-added MINIMUM_SUPPORTED_MIINOR_VERSION * updated version * Added zappa#1201 to CHANGELOG.md, reformatted code * Reformatted by black due to line length * Removed unnecessary comment Co-authored-by: monkut <shane.cousins@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
In
running_in_docker
if there is no/proc/1/cgroup
, like on OSX for example, a FileNotFoundError is raised and zappa can't be imported.We do some stuff with SQS and zappa's asynchronous tasks so we import zappa even during dev.
Expected Behavior
FileNotFoundError should be caught and running_in_docker should return False.
Actual Behavior
A FileNotFoundError is raised.
Possible Fix
FileNotFoundError should be caught and running_in_docker should return False.
Steps to Reproduce
Your Environment
pip freeze
:zappa_settings.json
:The text was updated successfully, but these errors were encountered: