Giter Club home page Giter Club logo

follow's Introduction

Hi, I'm Goku Mohandas

I create platforms that enable people to solve problems.

🔥 We're among the top MLOps repositories on GitHub

Connect with me via   Twitter or   LinkedIn
  to Made With ML for monthly updates on new content!


follow's People

Contributors

gokumohandas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

follow's Issues

git error when Build docker image

Hi,
I try to build the docker image from the latest. I can't build the image.
At the end I have this error message:
ERROR: Error [Errno 2] No such file or directory: 'git': 'git' while executing command git version
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

Ahmed

Obtaining file:///mlops
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting snorkel@ git+git://github.com/snorkel-team/snorkel.git@4d1555654496f0d9e089edc26a8aa102cdfbb5da
Cloning git://github.com/snorkel-team/snorkel.git (to revision 4d1555654496f0d9e089edc26a8aa102cdfbb5da) to /tmp/pip-install-k8dhrh4r/snorkel_11e0370d46774cf2afd57f3f4a66bcd1
ERROR: Error [Errno 2] No such file or directory: 'git': 'git' while executing command git version
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?
The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends gcc build-essential && rm -rf /var/lib/apt/lists/* && python -m pip install --upgrade pip setuptools wheel && python -m pip install -e . --no-cache-dir && apt-get purge -y --auto-remove gcc build-essential' returned a non-zero code: 1

Root Logger isn't configured properly

"root": {

I assumed with this configuration that we were indeed configuring and using the true root logger. However, this is giving a logger named "root", but not the true root logger I believe. When I use this configuration logged statements from other imported libraries aren't propagated up to this logger. So the problem I encountered was not being able to handle correctly logging statements from other imported libraries.

Instead, I followed the instructions here, for Dictionary Schema Details.

The configuration below configures the root logger and assigns it to logger:

logging_config = {
    "version": 1,
    "disable_existing_loggers": False,
    "formatters": {
        "minimal": {"format": "%(message)s"},
        "detailed": {
            "format": "%(levelname)s %(asctime)s [%(name)s:%(filename)s:%(funcName)s:%(lineno)d]\n%(message)s\n"
        },
    },
    "handlers": {
        "console": {
            "class": "logging.StreamHandler",
            "stream": sys.stdout,
            "formatter": "minimal",
            "level": logging.DEBUG,
        },
        "info": {
            "class": "logging.handlers.RotatingFileHandler",
            "filename": Path(LOGS_DIR, "info.log"),
            "maxBytes": 10485760,  # 1 MB
            "backupCount": 10,
            "formatter": "detailed",
            "level": logging.INFO,
        },
        "error": {
            "class": "logging.handlers.RotatingFileHandler",
            "filename": Path(LOGS_DIR, "error.log"),
            "maxBytes": 10485760,  # 1 MB
            "backupCount": 10,
            "formatter": "detailed",
            "level": logging.ERROR,
        },
    },
    "root": {"handlers": ["console", "info", "error"], "level": logging.INFO, "propagate": True},
}
logging.config.dictConfig(logging_config)

# Obtains the root logger; all child logging will propagate up to root logger
logger = logging.getLogger()

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.