Giter Club home page Giter Club logo

brewblox-boilerplate's People

Contributors

dependabot[bot] avatar elcojacobs avatar nixon506e avatar steersbob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

brewblox-boilerplate's Issues

asyncio incompatibility with Rasbian Buster and python:3.9 base image

There appears to be a bug in the version of libseccomp2 that is used in Buster-based OS's that causes the following error when trying to use asyncio inside a container using the python:3.9 base image on a host running Rasbian Buster (and presumably all Buster-based OS's):

brewfather-uploader_1  | 2021-11-17T18:03:11.551122661Z   File "/usr/local/lib/python3.9/asyncio/events.py", line 761, in new_event_loop
brewfather-uploader_1  | 2021-11-17T18:03:11.552624275Z     return get_event_loop_policy().new_event_loop()
brewfather-uploader_1  | 2021-11-17T18:03:11.552730004Z   File "/usr/local/lib/python3.9/asyncio/events.py", line 659, in new_event_loop
brewfather-uploader_1  | 2021-11-17T18:03:11.554136515Z     return self._loop_factory()
brewfather-uploader_1  | 2021-11-17T18:03:11.554301515Z   File "/usr/local/lib/python3.9/asyncio/unix_events.py", line 54, in __init__
brewfather-uploader_1  | 2021-11-17T18:03:11.554896150Z     super().__init__(selector)
brewfather-uploader_1  | 2021-11-17T18:03:11.555004379Z   File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 55, in __init__
brewfather-uploader_1  | 2021-11-17T18:03:11.555625265Z     super().__init__()
brewfather-uploader_1  | 2021-11-17T18:03:11.555746359Z   File "/usr/local/lib/python3.9/asyncio/base_events.py", line 397, in __init__
brewfather-uploader_1  | 2021-11-17T18:03:11.556805317Z     self._clock_resolution = time.get_clock_info('monotonic').resolution
brewfather-uploader_1  | 2021-11-17T18:03:11.556951150Z PermissionError: [Errno 1] Operation not permitted

The problem can be fixed by updating libseccomp2 from the buster-backports repo. The issue is also not present if the container is using the python:3.9-buster base image. If you do not want require Rasbian >= 11 as a prereq, ask the users to enable the backports repo, or somehow put it in the install script to detect Buster-based OSs add update libseccomp2 if necessary, it would probably be best to change the Dockerfile in this template to use python.3.9-buster and python.3.9-buster-slim so that anyone using it will have images compatible with buster out of the box.

Fix boilerplate readme

  • Consistently put a white line before required changes
  • Be consistent in using code quotes or normal quotes for dash character
  • FIx dead link to conftest file
  • Add rm docker/pkg/* command to example

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.