티스토리 뷰
Python에서 Session을 유지한 인터넷 연결은 오늘 시도해 본 결과 꽤 어렵다.
그러나, 세상 만사는 찾아보면 다 있나니,
ClientCookie 라는 라이브러리이다.
만드신 분은 내겐 그저 고마운 사람
[ 설치 과정에서의 팁 ]
설치 과정에서 에러가 하나 난다. 그것만 짚고 넘어가자.
d:\src\python\CookieClient_ZIP\ClientCookie-1.3.0\ClientCookie-1.3.0>setup.py build
---------------------------------------------------------------------------
This script requires setuptools version 0.6a11 to run (even to display
help). I will attempt to download it for you (from
http://cheeseshop.python.org/packages/2.6/s/setuptools/), but
you may need to enable firewall access for this script first.
I will start the download in 15 seconds.
(Note: if this machine does not have network access, please obtain the file
http://cheeseshop.python.org/packages/2.6/s/setuptools/setuptools-0.6a11-py2.6.egg
and place it in this directory before rerunning this script.)
---------------------------------------------------------------------------
Downloading http://cheeseshop.python.org/packages/2.6/s/setuptools/setuptools-0.6a11-py2.6.egg
Traceback (most recent call last):
File "d:\src\python\CookieClient_ZIP\ClientCookie-1.3.0\ClientCookie-1.3.0\setup.py", line 89, in
ez_setup.use_setuptools()
File "d:\src\python\CookieClient_ZIP\ClientCookie-1.3.0\ClientCookie-1.3.0\ez_setup\__init__.py", line 88, in use_setuptools
egg = download_setuptools(version, download_base, to_dir, download_delay)
File "d:\src\python\CookieClient_ZIP\ClientCookie-1.3.0\ClientCookie-1.3.0\ez_setup\__init__.py", line 142, in download_setuptools
src = urllib2.urlopen(url)
File "C:\Python26\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "C:\Python26\lib\urllib2.py", line 389, in open
response = meth(req, response)
File "C:\Python26\lib\urllib2.py", line 502, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python26\lib\urllib2.py", line 421, in error
result = self._call_chain(*args)
File "C:\Python26\lib\urllib2.py", line 361, in _call_chain
result = func(*args)
File "C:\Python26\lib\urllib2.py", line 597, in http_error_302
return self.parent.open(new)
File "C:\Python26\lib\urllib2.py", line 389, in open
response = meth(req, response)
File "C:\Python26\lib\urllib2.py", line 502, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python26\lib\urllib2.py", line 427, in error
return self._call_chain(*args)
File "C:\Python26\lib\urllib2.py", line 361, in _call_chain
result = func(*args)
File "C:\Python26\lib\urllib2.py", line 510, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
---------------------------------------------------------------------------
This script requires setuptools version 0.6a11 to run (even to display
help). I will attempt to download it for you (from
http://cheeseshop.python.org/packages/2.6/s/setuptools/), but
you may need to enable firewall access for this script first.
I will start the download in 15 seconds.
(Note: if this machine does not have network access, please obtain the file
http://cheeseshop.python.org/packages/2.6/s/setuptools/setuptools-0.6a11-py2.6.egg
and place it in this directory before rerunning this script.)
---------------------------------------------------------------------------
Downloading http://cheeseshop.python.org/packages/2.6/s/setuptools/setuptools-0.6a11-py2.6.egg
Traceback (most recent call last):
File "d:\src\python\CookieClient_ZIP\ClientCookie-1.3.0\ClientCookie-1.3.0\setup.py", line 89, in
ez_setup.use_setuptools()
File "d:\src\python\CookieClient_ZIP\ClientCookie-1.3.0\ClientCookie-1.3.0\ez_setup\__init__.py", line 88, in use_setuptools
egg = download_setuptools(version, download_base, to_dir, download_delay)
File "d:\src\python\CookieClient_ZIP\ClientCookie-1.3.0\ClientCookie-1.3.0\ez_setup\__init__.py", line 142, in download_setuptools
src = urllib2.urlopen(url)
File "C:\Python26\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "C:\Python26\lib\urllib2.py", line 389, in open
response = meth(req, response)
File "C:\Python26\lib\urllib2.py", line 502, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python26\lib\urllib2.py", line 421, in error
result = self._call_chain(*args)
File "C:\Python26\lib\urllib2.py", line 361, in _call_chain
result = func(*args)
File "C:\Python26\lib\urllib2.py", line 597, in http_error_302
return self.parent.open(new)
File "C:\Python26\lib\urllib2.py", line 389, in open
response = meth(req, response)
File "C:\Python26\lib\urllib2.py", line 502, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python26\lib\urllib2.py", line 427, in error
return self._call_chain(*args)
File "C:\Python26\lib\urllib2.py", line 361, in _call_chain
result = func(*args)
File "C:\Python26\lib\urllib2.py", line 510, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
이 메시지는 다운로드 URL 을 자동으로 뽑아내려는 꽁수 때문에 발생하는 문제이다.
그저 난 웃지요ㅋ
아무튼, 이런 것 때문에 시간을 허비할 수는 없는 일...
'ez_setup\__init__.py' 파일을 수정하여 해결하고 넘어가자.
그런 뒤에, __init__.py 파일의 다운로드 코드에 직접 하드코딩 하고 평상시처럼 setup.py 를 실행하면 된다.
src = urllib2.urlopen('http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
이상!!
'IT > 프로그래밍' 카테고리의 다른 글
[Python] setuptools 업그레이드 시 문제점 (0) | 2009.11.23 |
---|---|
[Python] HTML,XML 파싱 라이브러리 - BeautifulSoup (0) | 2009.10.28 |
[Python] 어제 날짜 구하기 (2) | 2009.10.26 |
Python - URLLIB - GetAddrInfo Failed (0) | 2009.09.25 |
[Python] win32net.NetUseAdd() 오늘의 시행착오 (1) | 2009.09.21 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
- 지루박멸연구센타
- 열정의 힘을 믿는다
- Le4rN TO Cr4cK
- 디버깅에관한모든것(DebugLab)
- sysinternals
- FoundStone
- hashtab
- 보안-coderant
- 디바이스드라이버 개발자 포럼
- dualpage.muz.ro
- osronline.com - 드라이버 관련 정보 사이트
- NtInternals - NativeAPI Refere…
- pcthreat - spyware 정보 제공
- rootkit.com - 루트킷 관련 정보
- www.ntinternals.net
- WINE CrossRef. - source.winehq…
- tuts4you
- hex-rays
- idapalace
- idefense
- immunityinc
- threatexpert
- hdp.null2root.org
- www.crackstore.com
- crackmes.de
- www.who.is
- www.cracklab.ru
- community.reverse-engineering.…
- video.reverse-engineering.net
- SnD
- 클레이 키위
- reversengineering.wordpress.co…
- www.openrce.org
- www.woodmann.com
- PEID.Plusins.BobSoft
- roxik.com/pictaps/
- regexlib.com
- spyware-browser.com
- www.usboffice.kr
- regulator
- www.txt2re.com
- ietab.mozdev.org
- zesrever.xstone.org
- www.heaventools.com/PE-file-he…
- www.heaventools.com
- www.innomp3.com
- 울지않는벌새
- exetools.com-forum
- exetools.com
- utf8 conv
- robtex - IP trace
- onsamehost - same IP sites
- JpopSuki
- jsunpack.jeek.org
- wepawet.iseclab.org
- www.jswiff.com
- www.hackeroo.com
- winesearcher.co.kr
- khpga.org
- malwareurl.com
- anubis.iseclab.org
- www.crummy.com-eautifulSoup
- malwarebytes.org/forums
- bbs.janmeng.com
- blackip.ustc.edu.cn
- eureka.cyber-ta.org
- exploit-db.com
TAG
- 전세매매지수
- 맥쿼리인프라
- 공공인프라
- 피봇
- Pivot
- 주택구매력지수
- systemd
- 매매가격지수
- PIR
- 주식트래이딩
- logrotate
- 주식
- 미국주식
- SBI저축은행
- ElasticSearch
- 군함도
- 실시간트래이딩
- CriticalSection
- ubuntu
- INVOICE
- O365
- hai
- 자동트래이딩
- 다올저축은행
- ROA
- 사회간접자본
- 시스템트래이딩
- 신한저축은행
- 레고랜드
- ChatGPT
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
글 보관함