Carbon Black Cloud: Setup of the CBCSyslog Fails With ImportError
search cancel

Carbon Black Cloud: Setup of the CBCSyslog Fails With ImportError

book

Article ID: 289384

calendar_today

Updated On:

Products

Carbon Black Cloud Enterprise EDR (formerly Cb Threathunter)

Issue/Introduction

Setup of the Linux CBC Syslog server fails with the errorĀ 
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.8/dist-packages/markupsafe/__init__.py)

Environment

  • Carbon Black Cloud: All Version
  • Python: 3.x

Cause

Newer versions of markupsafe don't contain the soft_unicode module

Resolution

Install the older version of markupsafe (on Ubuntu) with the following command
sudo pip3 install markupsafe==2.0.1