Giter VIP home page Giter VIP logo

bdp's People

Contributors

altera520 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

matdulgi

bdp's Issues

[Airflow] AttributeError: 'CustomTTYColoredFormatter' object has no attribute 'color'

  • AttributeError: 'CustomTTYColoredFormatter' object has no attribute 'color'
--- Logging error ---
Traceback (most recent call last):
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/cachelib/file.py", line 253, in set
    self._run_safely(os.replace, tmp, filename)
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/cachelib/file.py", line 322, in _run_safely
    output = fn(*args, **kwargs)
PermissionError: [Errno 1] Operation not permitted: '/tmp/tmp5jwwogl5.__wz_cache' -> '/tmp/2029240f6d1128be89ddc32729463129'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/logging/__init__.py", line 1098, in emit
    msg = self.format(record)
  File "/usr/local/lib/python3.10/logging/__init__.py", line 942, in format
    return fmt.format(record)
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/airflow/utils/log/colored_log.py", line 95, in format
    record = self._color_record_traceback(record)
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/airflow/utils/log/colored_log.py", line 86, in _color_record_traceback
    self.color(self.log_colors, record.levelname) + record.exc_text + escape_codes['reset']
AttributeError: 'CustomTTYColoredFormatter' object has no attribute 'color'
Call stack:
  File "/usr/bdp/airflow-2.2.5/venv/bin/airflow", line 8, in <module>
    sys.exit(main())
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/airflow/__main__.py", line 48, in main
    args.func(args)
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/airflow/cli/cli_parser.py", line 48, in command
    return func(*args, **kwargs)
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/airflow/utils/cli.py", line 92, in wrapper
    return f(*args, **kwargs)
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/airflow/cli/commands/user_command.py", line 47, in users_create
    appbuilder = cached_app().appbuilder
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/airflow/www/app.py", line 156, in cached_app
    app = create_app(config=config, testing=testing)
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/airflow/www/app.py", line 126, in create_app
    Cache(app=flask_app, config={'CACHE_TYPE': 'filesystem', 'CACHE_DIR': '/tmp'})
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/flask_caching/__init__.py", line 86, in __init__
    self.init_app(app, config)
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/flask_caching/__init__.py", line 141, in init_app
    self._set_cache(app, config)
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/flask_caching/__init__.py", line 172, in _set_cache
    app.extensions["cache"][self] = cache_factory(
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/flask_caching/backends/__init__.py", line 47, in filesystem
    return FileSystemCache.factory(app, config, args, kwargs)
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/flask_caching/backends/filesystemcache.py", line 79, in factory
    return cls(*args, **kwargs)
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/flask_caching/backends/filesystemcache.py", line 59, in __init__
    CachelibFileSystemCache.__init__(
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/cachelib/file.py", line 73, in __init__
    self._update_count(value=len(list(self._list_dir())))
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/cachelib/file.py", line 95, in _update_count
    self.set(self._fs_count_file, new_count, mgmt_element=True)
  File "/usr/bdp/airflow-2.2.5/venv/lib/python3.10/site-packages/cachelib/file.py", line 258, in set
    logging.warning(
Message: "Exception raised while handling cache file '%s'"
Arguments: ('\x1b[1m/tmp/2029240f6d1128be89ddc32729463129\x1b[22m',)

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.