Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MariaDB 날씨_Table #8

Open
pkwon35 opened this issue Oct 30, 2021 · 15 comments
Open

MariaDB 날씨_Table #8

pkwon35 opened this issue Oct 30, 2021 · 15 comments

Comments

@pkwon35
Copy link
Owner

pkwon35 commented Oct 30, 2021

No description provided.

@pkwon35
Copy link
Owner Author

pkwon35 commented Oct 30, 2021

지역별 날씨를 뽑는데, 세종시, 충청북도, 강원도 는 2020년12월31일 이후 데이터를 못가져온다... 원래 안되는건지.. 내 코드가 문제인건지...ㅠㅠ @JINYUHOON

@JINYUHOON
Copy link
Collaborator

확인해볼게요 헤더 url문제일수도있을것같은데 함수 중간 response.content 제이슨으로 바꿔준이후에 print(response) 써주면 요청 에러 응답메세지 받아볼수있습니다

@pkwon35
Copy link
Owner Author

pkwon35 commented Oct 30, 2021

확인해볼게요 헤더 url문제일수도있을것같은데 함수 중간 response.content 제이슨으로 바꿔준이후에 print(response) 써주면 요청 에러 응답메세지 받아볼수있습니다

근데 다른 지역은 다 잘나와요~ 급한거는 아니니께 천천히 봐도되유

@pkwon35
Copy link
Owner Author

pkwon35 commented Oct 30, 2021

확인해볼게요 헤더 url문제일수도있을것같은데 함수 중간 response.content 제이슨으로 바꿔준이후에 print(response) 써주면 요청 에러 응답메세지 받아볼수있습니다

느낌은 일일 api limit 넘어가서 그런것 같으니 내일 다시 시도해보겠슴다 따핫

@JINYUHOON

@pkwon35
Copy link
Owner Author

pkwon35 commented Oct 30, 2021

해결!!! 고마워용 유훈씨 @JINYUHOON

@JINYUHOON
Copy link
Collaborator

원인공유점여 ..

@pkwon35
Copy link
Owner Author

pkwon35 commented Oct 30, 2021

너껄로 잘 mariadb에 넣었는데, mariadb view 자체에서 보이는 row 수에 리밋이 걸려서 근데 웃긴게 지역별로 limit을 걸어서 보여줌. 막상 pycharm 으로 table 불러오면 모든 일자 다 들어감.

@JINYUHOON
Copy link
Collaborator

무슨말인지 잘 모르겠지만 해결되었다니 다행입니다 ^^7

@pkwon35
Copy link
Owner Author

pkwon35 commented Oct 30, 2021

날씨 테이블 update 해주는 실행 파일 만드는 시도중...

https://www.youtube.com/watch?v=UZX5kH72Yx4&ab_channel=TechWithTim
참고중..

@pkwon35
Copy link
Owner Author

pkwon35 commented Oct 30, 2021

pip installer pyinstaller 문제 있어서

"tuple index out of range"

https://stackoverflow.com/questions/45112041/pyinstaller-and-py2exe-result-in-error-tuple-index-out-of-range
참고함...

pip uninstall pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/tarball/develop

@pkwon35
Copy link
Owner Author

pkwon35 commented Oct 30, 2021

그래도 안됨..... sqlalchemy 가... 엔진이...ㅠㅠㅠㅠㅠㅠㅠ

.exe 아직도 못만듬...

@pkwon35
Copy link
Owner Author

pkwon35 commented Oct 30, 2021

Hidden import 라는 것을 찾음... 과연 해결이 될지...ㅠㅠ

@pkwon35
Copy link
Owner Author

pkwon35 commented Oct 31, 2021

https://stackoverflow.com/questions/67661226/multiple-hidden-imports-in-pyinstaller

hidden import 가 multiple 일때...
pyinstaller main.py -—hidden-import pandas --hidden-import pyautogui

@pkwon35
Copy link
Owner Author

pkwon35 commented Oct 31, 2021

https://chicken-nlp.tistory.com/11

.exe 불가능.....

.bat 만들어서 .py 실행하게 하는 작업스케쥴러 시도

@pkwon35
Copy link
Owner Author

pkwon35 commented Oct 31, 2021

작업스케쥴러로 .bat 만들어서는 성공... 이 경우... 내 컴터로만 업데이트 가능..... 다른 사원들은 시각화를 보는 것밖에 못함.....또르르...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants