mysqlclient 설치 에러
·
버그처리
mysql 연동을 하는 도중에 mysqlclient 에러가 나왔다. Collecting mysqlclient Using cached mysqlclient-2.1.1.tar.gz (88 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [16 lines of output] /bin/sh: mysql_config: command not found /bin/sh: mariadb_config: command not found /bin/sh: mysql_config: command not fou..
superset db upgrade시 WARNING 문제(SECRET_KEY)
·
버그처리
-------------------------------------------------------------------------------- WARNING -------------------------------------------------------------------------------- A Default SECRET_KEY was detected, please use superset_config.py to override it. Use a strong complex alphanumeric string and use a tool to help you generate a sufficiently random sequence, ex: openssl rand -base64 42 ----------..
AttributeError: 'sqlparse'
·
버그처리
해결책 superset을 설치하고 pip install apache-superset 밑에와 같은 명령문을 실행했을 때 superset --help 이런 에러가 발생한다면 AttributeError: module 'sqlparse.keywords' has no attribute 'FLAGS' 에러문 처리하기 이걸 통해서 버전을 확인한다. pip show sqlparse 만약에 0.4.4 버전 이상이라면 다운그레이드가 필요하다. pip install sqlparse==0.4.3 개인적인 원인 추측 1) 호환성 문제: 프로젝트에서 사용하는 다른 라이브러리나 코드가 sqlparse 0.4.4와 완벽하게 호환되지 않을 수 있다. 이 경우, 이전 버전인 0.4.3으로 다운그레이드하면 호환성 문제가 해결되고 에러가 ..
RuntimeError: 'cryptography' 에러
·
버그처리
RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods 이 오류는 MySQL 연결을 설정할 때 sha256_password 또는 caching_sha2_password 인증 방법을 사용하려면 필요한 cryptography 패키지가 설치되지 않았음을 나타낸다. 이 패키지는 MySQL 8.0 이상에서 기본으로 사용되는 인증 플러그인인 caching_sha2_password를 지원하기 위해 필요하다. 이 문제를 해결하려면 cryptography 패키지를 설치 pip install cryptography