본문 바로가기

728x90

엉터리 개발 이야기

[Superset] Color Scheme 추가하기 계속해서 UI 및 기능이 업데이트 되고 있네요... Style > Chart Options > Color Scheme 추가하기 assets/javascripts/modules/colors.js 파일에 export const ALL_COLOR_SCHEMES = { bnbColors, d3Category10, d3Category20, d3Category20b, d3Category20c, googleCategory10c, googleCategory20c, myColors };이 부분에 추가하면 된다.const myColors= [ '#3366cc', '#dc3912', '#ff9900', '#109618'] Color Schema Control 위치는assets/javascripts/explore/compon.. 더보기
[PyCharm] Push failed: Failed with error: Could not read from remote repository. 해결 PyCharm 에 git 연동 사용시 push, pull 안될 경우Settings -> Version Control -> Git -> SSH executor 를 Native 로 변경 후 다시 적용!! Push failed: Failed with error: Could not read from remote repository.Git Pull Failed: Could not read from remote repository. 더보기
[Superset] 'NoneType' object has no attribute 'to_dict' Table 추가 후 컬럼 정보가 안나올 때 조치방법 sqlite 를 사용하여 superset 기본 db 를 제어하면 발생하지 않는다.하지만, mysql 을 연결해서 사용하면 table 추가 시 columns 정보가 출력되지 않고, 딱히 에러 메세지도 출력되지 않아 확인이 힘들다. 확인해본 결과, table_columns 테이블에 column 정보가 입력되지 않아, chart를 그릴 때 위와 같은 에러 메세지가 출력된다. table_columns 테이블의 type 컬럼 사이즈를 늘려주면 해결된다. mariaDB에서 type 이름이 긴 경우 입력이 안되어 발생하는 문제이다. 더보기
[ORM][Sequelize] include 모델에 order by 하기 참고한 내용https://github.com/sequelize/sequelize/issues/7510 Model.findAll({ include: [{ model: Nested, attributes: [] }], order: [[Nested, 'name', 'asc']] })A1.findone({where: { id: id },include: [ { model: B1, as: 'b1' } ],order: [ [ {model: B1, as: 'b1'}, 'createAt', 'DESC' ] ] A1.findone({where: { id: id },include: [ { model: B1, as: 'b1' } { model: C1, as: 'c1' } ],order: [ [ {model: B1, as: 'b.. 더보기
[Windows][CMD] 사용중인 포트 확인, TASK 확인 - 포트 확인netstat -ano | findstr :8080 - TASK 확인tasklist | findstr PID - 작업관리자에서 PID 확인해서 종료. 더보기
[Superset] upgrade 하기(makedirs 에러 조치) > pip install superset --upgrade 1234567891011121314151617181920212223242526Installing collected packages: pandas, webencodings, html5lib, bleach, PyHive, superset, cffi, scandir, pure-sasl Found existing installation: pandas 0.20.3 Uninstalling pandas-0.20.3: Successfully uninstalled pandas-0.20.3 Rolling back uninstall of pandasException:Traceback (most recent call last): File "e:\workspace\py.. 더보기
[Superset] Install 시 에러 발생 처리 ( 0.23.3 버전 ) 12345678910111213 Running setup.py install for python-geohash ... Running command e:\workspace\superset-install\venv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\jh999.lim\\appdata\\local\\temp\\pip-build-wmleww\\python-geohash\\setup.py'; f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))".. 더보기
[Superset] 'module' object has no attribute 'SIGALRM' for windows SQL Lab 에서 'Run Query' 를 실행하거나, Table을 선택하면 Preview for 탭에서 아래와 같은 에러가 발생한다... 'module' object has no attribute 'SIGALRM' 찾아봤지만,,, windows는 지원 안한다고 한다..? signal 소스 코드를 보면 SIGALRM이 없다. Query 수행 시 timeout 시간보다 오래 걸리면 끝내도록 해주는 부분에서 에러가 발생한다. core.py 소스에서 def sel_json() 부분이다. 그래도 실행이 되게끔 해야하니, 주석 처리 하기로 했다.timeout 거는 걸 좀 더 봐야겠지만, 방법은 있을 듯 하다.. python을 잘 모르기 때문에 우선 실행이 되는것만 확인할 수 있게 주석 처리 하니 정상적으로 수행.. 더보기

728x90