개발로 자기계발
728x90
SMALL
Superset ERROR: Could not build wheels for python-geohash, which is required to install pyproject.toml-based projects 에러
버그처리 2023. 11. 13. 18:12

원인 파악 gcc 컴파일러나 다른 필수 라이브러리가 누락되었거나, 해당 EC2 인스턴스에 설치되어 있지 않음을 의미할 수 있다. 원인 해결 1. 개발 도구 설치: gcc를 포함한 필요한 개발 도구들이 시스템에 설치되어 있지 않다면, 이를 설치 이 그룹에는 GCC, Make, Autoconf 등과 같은 일반적인 개발 도구들이 포함되어 있다. 이러한 도구들은 소프트웨어 개발과 컴파일에 필요 - Ubuntu 같은 Debian 기반 시스템 sudo apt-get update sudo apt-get install build-essential - CentOS 같은 Red Hat 기반 시스템 sudo yum groupinstall -y "Development Tools" 2. 파이썬 개발 헤더와 라이브러리 설치: 파..

article thumbnail
MySQL Read Only 에러 해결
버그처리 2023. 6. 19. 14:11

테이블을 생성하고 나서 데이터의 추가, 수정, 삭제 등을 하려고 했지만 할 수가 없었다. 이유는 테이블이 Read Only가 되어있었기 때문이다. 이런 상황에서 발생할 수 있는 경우는 1. 사용자 권한이 읽기 전용(read-only)으로 설정되어 있는 경우 2. 테이블에 기본 키(Primary Key)가 없는 경우 * MySQL 서버 자체가 읽기 전용이 되어있을 수도 있다. 권한 1번 사항은 해당 User에 GRANT 명령어를 통해 권한을 부여하면 된다. 기본 키(PK) 2번 사항은 테이블에 기본 키(Primary Key)가 없는 경우이다. 테이블에 기본 키(Primary Key)가 없으면 데이터의 추가, 수정, 삭제를 허용하지 않는다. 이유는 데이터 무결성을 보장하기 위한 것이다. 기본 키(Primar..

article thumbnail
MySQL Safe Mode 에러 해결
버그처리 2023. 6. 19. 12:39

Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect. 0.0048 sec 1. Query 문으로 Safe Mode 해제하기 SET SQL_SAFE_UPDATES = 0; 세이프 모드 OFF Query 문 SET SQL_SAFE_UPDATES = 1; 세이프 모드 ON 2. WorkBench 상에서 Safe Mode 해제하기 Setting => SQL Editor 혹시 모를 사태에 권장하지 않는 옵션

article thumbnail
ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device
버그처리 2023. 5. 22. 00:23

EC2에서 라이브러리를 설치하던 도중 에러가 발생했다. 48.9 MB/s eta 0:00:31ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device 이 에러는AWS EC2 인스턴스에서 디스크 공간 부족 문제를 뜻한다 해결방법 1) 불필요한 파일 삭제 불필요한 파일을 삭제하여 디스크 공간을 확보할 수 있다. 로그 파일, 캐시 파일, 임시 파일 등이 이에 해당되며, 더 이상 필요하지 않은 소프트웨어 패키지를 제거하여 공간을 확보할 수도 있다. 2) EBS 볼륨 크기 조정 AWS 관리 콘솔을 사용하여 EBS 볼륨 크기를 증가시킬 수 있다. 이렇게 하면 인스턴스에 연결된 디스크 공간이 증가한다. 그러나 이 방법..

django-crontab RuntimeError 처리
버그처리 2023. 5. 15. 14:02

crontab 실행 중에 발생한 오류이다. RuntimeError: No job with hash 662b76c31b0a58cd7dcd87bb3446a99e found. It seems the crontab is out of sync with your settings.CRONJOBS. Run "python manage.py crontab add" again to resolve this issue! Django에서 사용하는 django-crontab이 설정한 작업을 찾지 못하고 있는 것으로, 이는 일반적으로 CRONJOBS 설정이 변경되고 django-crontab이 해당 변경 사항을 인식하지 못한 경우에 발생한다. 이 문제를 해결하려면 django-crontab을 업데이트해야 한다. 그냥 다시 삭제하고 ..

Django - DJANGO_SETTINGS_MODULE 에러
버그처리 2023. 5. 11. 10:32

에러문 django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. 에러문 이유 Django는 기본적으로 DJANGO_SETTINGS_MODULE 환경 변수를 통해 설정을 로드한다. 이 환경 변수가 설정되지 않으면 Django는 프로젝트 설정을 찾을 수 없으므로 위와 같은 ImproperlyConfigured 예외가 발생한다. startapp ..

EC2: Superset 백그라운드 실행 간 환경 변수 에러
버그처리 2023. 5. 8. 22:56

백그라운드 실행 nohup superset run -h 0.0.0.0 -p 8088 --with-threads --reload & 만약 이런 종류의 에러가 나온다면? Error: Could not locate a Flask application. You did not provide the "FLASK_APP" environment variable, and a "wsgi.py" or "app.py" module was not found in the current directory. Usage: superset [OPTIONS] COMMAND [ARGS]... Try 'superset --help' for help. Error: Could not locate a Flask application. You di..

EC2: 특정 python버전으로 venv 생성시 에러 날 때(Mac 기준)
버그처리 2023. 5. 5. 12:21

파이썬 3.8 버전으로 venv를 생성하려다가 에러를 만났다. Error: Command '['/home/ubuntu/pica_team/pica_proj/pica_venv/bin/python3.8', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1. 1) pip 없이 가상환경 생성 python3.8 -m venv venv --without-pip 2) 가상환경 활성화 source venv/bin/activate 3) pip 파일 받아오기 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py 4) pip 설치 python get-pip.py * 근데 여기서 이런..

mysqlclient 설치 에러
버그처리 2023. 5. 1. 17:46

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)
버그처리 2023. 5. 1. 16:40

-------------------------------------------------------------------------------- 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 ----------..

728x90
SMALL