pylucene 설치시 문의 드립니다.

178 views
Skip to first unread message

윤희 최

unread,
May 11, 2011, 1:50:15 PM5/11/11
to Python 3 질문 게시판
안녕하세요. 본 서적을 구입하여 열심히 학습하고 있습니다.
지금 window7 환경에서 pylucene의 설치를 하려고 하는데, 아래와 같은 에러로 작업이 거의 불가하고 있습니다.
열심히 해결책을 찾았지만, 그 방법을 찾기 어려워 이렇게 도움을 요청드립니다.

에러는 다음과 같습니다.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
C:\Users\Yun\Downloads>c:\Python27\Scripts\easy_install.exe
lucene-3.0.3-py2.6-w
in32.egg
Processing lucene-3.0.3-py2.6-win32.egg
creating c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
Extracting lucene-3.0.3-py2.6-win32.egg to c:\python27\lib\site-
packages
Adding lucene 3.0.3 to easy-install.pth file

Installed c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
Processing dependencies for lucene==3.0.3
Searching for lucene==3.0.3
Reading http://pypi.python.org/simple/lucene/
Couldn't find index page for 'lucene' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for lucene==3.0.3
Best match: None
Traceback (most recent call last):
File "c:\Python27\Scripts\easy_install-script.py", line 8, in
<module>
load_entry_point('setuptools==0.6c11', 'console_scripts',
'easy_install')()
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
1712, in main
with_ei_usage(lambda:
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
1700, in with_ei_usage
return f()
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
1716, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
211, in run
self.easy_install(spec, not self.no_deps)
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
427, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
478, in install_item
self.process_distribution(spec, dist, deps)
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
519, in process_distribution
[requirement], self.local_index, self.easy_install
File "C:\Python27\lib\site-packages\pkg_resources.py", line 563, in
resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "C:\Python27\lib\site-packages\pkg_resources.py", line 799, in
best_match

return self.obtain(req, installer) # try and download/install
File "C:\Python27\lib\site-packages\pkg_resources.py", line 811, in
obtain
return installer(requirement)
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
434, in easy_install
self.local_index
File "C:\Python27\lib\site-packages\setuptools\package_index.py",
line 475, in
fetch_distribution
return dist.clone(location=self.download(dist.location, tmpdir))
AttributeError: 'NoneType' object has no attribute 'clone'

C:\Users\Yun\Downloads>c:\Python27\Scripts\easy_install.exe
lucene-3.0.3-py2.6-w
in32.egg
Processing lucene-3.0.3-py2.6-win32.egg
removing 'c:\python27\lib\site-packages\lucene-3.0.3-py2.6-
win32.egg' (and every
thing under it)
creating c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
Extracting lucene-3.0.3-py2.6-win32.egg to c:\python27\lib\site-
packages
lucene 3.0.3 is already the active version in easy-install.pth

Installed c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
Processing dependencies for lucene==3.0.3
Searching for lucene==3.0.3
Reading http://pypi.python.org/simple/lucene/
Couldn't find index page for 'lucene' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for lucene==3.0.3
error: Could not find suitable distribution for
Requirement.parse('lucene==3.0.3
')

C:\Users\Yun\Downloads>c:\Python27\Scripts\easy_install.exe
lucene-3.0.3-py2.6-w
in32.egg
Processing lucene-3.0.3-py2.6-win32.egg
removing 'c:\python27\lib\site-packages\lucene-3.0.3-py2.6-
win32.egg' (and every
thing under it)
creating c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
Extracting lucene-3.0.3-py2.6-win32.egg to c:\python27\lib\site-
packages
lucene 3.0.3 is already the active version in easy-install.pth

Installed c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
Processing dependencies for lucene==3.0.3
Searching for lucene==3.0.3
Reading http://pypi.python.org/simple/lucene/
Couldn't find index page for 'lucene' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for lucene==3.0.3
error: Could not find suitable distribution for
Requirement.parse('lucene==3.0.3
')

C:\Users\Yun\Downloads>c:\Python27\Scripts\easy_install.exe
lucene-3.0.3-py2.6-w
in32.egg
Processing lucene-3.0.3-py2.6-win32.egg
removing 'c:\python27\lib\site-packages\lucene-3.0.3-py2.6-
win32.egg' (and every
thing under it)
creating c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
Extracting lucene-3.0.3-py2.6-win32.egg to c:\python27\lib\site-
packages
lucene 3.0.3 is already the active version in easy-install.pth

Installed c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
Processing dependencies for lucene==3.0.3
Searching for lucene==3.0.3
Reading http://pypi.python.org/simple/lucene/
Couldn't find index page for 'lucene' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for lucene==3.0.3
Best match: None
Traceback (most recent call last):
File "c:\Python27\Scripts\easy_install-script.py", line 8, in
<module>
load_entry_point('setuptools==0.6c11', 'console_scripts',
'easy_install')()
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
1712, in main
with_ei_usage(lambda:
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
1700, in with_ei_usage
return f()
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
1716, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
211, in run
self.easy_install(spec, not self.no_deps)
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
427, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
478, in install_item
self.process_distribution(spec, dist, deps)
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
519, in process_distribution
[requirement], self.local_index, self.easy_install
File "C:\Python27\lib\site-packages\pkg_resources.py", line 563, in
resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "C:\Python27\lib\site-packages\pkg_resources.py", line 799, in
best_match

return self.obtain(req, installer) # try and download/install
File "C:\Python27\lib\site-packages\pkg_resources.py", line 811, in
obtain
return installer(requirement)
File "C:\Python27\lib\site-packages\setuptools\command
\easy_install.py", line
434, in easy_install
self.local_index
File "C:\Python27\lib\site-packages\setuptools\package_index.py",
line 475, in
fetch_distribution
return dist.clone(location=self.download(dist.location, tmpdir))
AttributeError: 'NoneType' object has no attribute 'clone'
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

입니다.

python 2.7 버전이고, 당최 저 해결방법을 알수 없습니다. 도와주세요 ㅠ

again4you

unread,
May 16, 2011, 1:24:06 AM5/16/11
to Python 3 질문 게시판
안녕하세요 '빠르게 활용하는 파이썬3' 저자 우상정입니다.

우선 답변이 늦어서 죄송하단 말씀을 드리며,
문의하신 내용에 대해서 답변을 드리겠습니다.

설치하신 버전이 python 2.7 version을 사용하시고,
Lucene은 3.0.3 version for python 2.6을 사용하신 것 같습니다.

즉 python의 버전이 동일하지 않아서 발생한 문제입니다.
python을 2.6으로 설치하셔서 진행하시거나,
Lucene을 직접 build하여 python 2.7 version으로 진행하시면
정상적으로 진행하게 될 것입니다.

감사합니다.




On 5월12일, 오전2시50분, 윤희 최 <hatasee...@gmail.com> wrote:
> 안녕하세요. 본 서적을 구입하여 열심히 학습하고 있습니다.
> 지금 window7 환경에서 pylucene의 설치를 하려고 하는데, 아래와 같은 에러로 작업이 거의 불가하고 있습니다.
> 열심히 해결책을 찾았지만, 그 방법을 찾기 어려워 이렇게 도움을 요청드립니다.
>
> 에러는 다음과 같습니다.
>
> --------------------------------------------------------------------------- --------------------------------------------------------------------------- ------------------------------------------
> C:\Users\Yun\Downloads>c:\Python27\Scripts\easy_install.exe
> lucene-3.0.3-py2.6-w
> in32.egg
> Processing lucene-3.0.3-py2.6-win32.egg
> creating c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
> Extracting lucene-3.0.3-py2.6-win32.egg to c:\python27\lib\site-
> packages
> Adding lucene 3.0.3 to easy-install.pth file
>
> Installed c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
> Processing dependencies for lucene==3.0.3
> Searching for lucene==3.0.3
> Readinghttp://pypi.python.org/simple/lucene/
> Couldn't find index page for 'lucene' (maybe misspelled?)
> Scanning index of all packages (this may take a while)
> Readinghttp://pypi.python.org/simple/
> Readinghttp://pypi.python.org/simple/lucene/
> Couldn't find index page for 'lucene' (maybe misspelled?)
> Scanning index of all packages (this may take a while)
> Readinghttp://pypi.python.org/simple/
> No local packages or download links found for lucene==3.0.3
> error: Could not find suitable distribution for
> Requirement.parse('lucene==3.0.3
> ')
>
> C:\Users\Yun\Downloads>c:\Python27\Scripts\easy_install.exe
> lucene-3.0.3-py2.6-w
> in32.egg
> Processing lucene-3.0.3-py2.6-win32.egg
> removing 'c:\python27\lib\site-packages\lucene-3.0.3-py2.6-
> win32.egg' (and every
> thing under it)
> creating c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
> Extracting lucene-3.0.3-py2.6-win32.egg to c:\python27\lib\site-
> packages
> lucene 3.0.3 is already the active version in easy-install.pth
>
> Installed c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
> Processing dependencies for lucene==3.0.3
> Searching for lucene==3.0.3
> Readinghttp://pypi.python.org/simple/lucene/
> Couldn't find index page for 'lucene' (maybe misspelled?)
> Scanning index of all packages (this may take a while)
> Readinghttp://pypi.python.org/simple/
> No local packages or download links found for lucene==3.0.3
> error: Could not find suitable distribution for
> Requirement.parse('lucene==3.0.3
> ')
>
> C:\Users\Yun\Downloads>c:\Python27\Scripts\easy_install.exe
> lucene-3.0.3-py2.6-w
> in32.egg
> Processing lucene-3.0.3-py2.6-win32.egg
> removing 'c:\python27\lib\site-packages\lucene-3.0.3-py2.6-
> win32.egg' (and every
> thing under it)
> creating c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
> Extracting lucene-3.0.3-py2.6-win32.egg to c:\python27\lib\site-
> packages
> lucene 3.0.3 is already the active version in easy-install.pth
>
> Installed c:\python27\lib\site-packages\lucene-3.0.3-py2.6-win32.egg
> Processing dependencies for lucene==3.0.3
> Searching for lucene==3.0.3
> Readinghttp://pypi.python.org/simple/lucene/
> Couldn't find index page for 'lucene' (maybe misspelled?)
> Scanning index of all packages (this may take a while)
> Readinghttp://pypi.python.org/simple/
> --------------------------------------------------------------------------- --------------------------------------------------------------------------- ------------------------------------------
Reply all
Reply to author
Forward
0 new messages