By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,939 Members | 1,541 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,939 IT Pros & Developers. It's quick & easy.

Installing BeautifulSoup with easy_install (broken?)

P: n/a
Info:

Python version: ActivePython 2.5.1.1
Platform: Windows

I wanted to install BeautifulSoup today for a small project and decided to use
easy_install. I can install other packages just fine. Unfortunately I get the
following error from BeautifulSoup installation attempt:

C:\Python25\Lib\SITE-P~1>easy_install BeautifulSoup
Searching for BeautifulSoup
Reading http://pypi.python.org/simple/BeautifulSoup/
Reading http://www.crummy.com/software/BeautifulSoup/
Reading http://www.crummy.com/software/BeautifulSoup/download/
Best match: BeautifulSoup 3.0.5
Downloading http://www.crummy.com/software/Beaut...BeautifulSoup-
3.0.5.tar.gz
Processing BeautifulSoup-3.0.5.tar.gz
Running BeautifulSoup-3.0.5\setup.py -q bdist_egg --dist-dir c:\docume~1\larry\l
ocals~1\temp\easy_install-cfdxna\BeautifulSoup-3.0.5\egg-dist-tmp-gbrpp5
Traceback (most recent call last):
File "C:\Python25\Scripts\easy_install-script.py", line 8, in <module>
load_entry_point('setuptools==0.6c8', 'console_scripts', 'easy_install')()
File "C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 1671, in main
File "C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 1659, in with_ei_usage
File "C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 1675, in <lambda>
File "C:\Python25\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python25\lib\distutils\dist.py", line 974, in run_commands
self.run_command(cmd)
File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
cmd_obj.run()
File "C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 211, in run
File "C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 446, in easy_install
File "C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 476, in install_item
File "C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 655, in install_eggs
File "C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 930, in build_and_install
File "C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 919, in run_setup
File "C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\sand
box.py", line 27, in run_setup
File "C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\sand
box.py", line 63, in run
File "C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\sand
box.py", line 29, in <lambda>
File "C:\VOL1\Larry\Websafe\Python\wstools\setup.py ", line 2, in <module>
import py2exe
File "C:\VOL1\Larry\Websafe\Python\wstools\unittest.py" , line 3, in <module>
class TextCtrlTest(unittest.TestCase):
AttributeError: 'module' object has no attribute 'TestCase'
Thanks in advance for any "clues".

-Larry
Jun 27 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Larry Bates schrieb:
Info:

Python version: ActivePython 2.5.1.1
Platform: Windows

I wanted to install BeautifulSoup today for a small project and decided
to use easy_install. I can install other packages just fine.
Unfortunately I get the following error from BeautifulSoup installation
attempt:

C:\Python25\Lib\SITE-P~1>easy_install BeautifulSoup
Searching for BeautifulSoup
Reading http://pypi.python.org/simple/BeautifulSoup/
Reading http://www.crummy.com/software/BeautifulSoup/
Reading http://www.crummy.com/software/BeautifulSoup/download/
Best match: BeautifulSoup 3.0.5
Downloading
http://www.crummy.com/software/Beaut...BeautifulSoup-
3.0.5.tar.gz
Processing BeautifulSoup-3.0.5.tar.gz
Running BeautifulSoup-3.0.5\setup.py -q bdist_egg --dist-dir
c:\docume~1\larry\l
ocals~1\temp\easy_install-cfdxna\BeautifulSoup-3.0.5\egg-dist-tmp-gbrpp5
Traceback (most recent call last):
File "C:\Python25\Scripts\easy_install-script.py", line 8, in <module>
load_entry_point('setuptools==0.6c8', 'console_scripts',
'easy_install')()
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 1671, in main
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 1659, in with_ei_usage
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 1675, in <lambda>
File "C:\Python25\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python25\lib\distutils\dist.py", line 974, in run_commands
self.run_command(cmd)
File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
cmd_obj.run()
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 211, in run
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 446, in easy_install
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 476, in install_item
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 655, in install_eggs
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 930, in build_and_install
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 919, in run_setup
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\sand
box.py", line 27, in run_setup
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\sand
box.py", line 63, in run
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\sand
box.py", line 29, in <lambda>
File "C:\VOL1\Larry\Websafe\Python\wstools\setup.py ", line 2, in <module>
import py2exe
File "C:\VOL1\Larry\Websafe\Python\wstools\unittest.py" , line 3, in
<module>
class TextCtrlTest(unittest.TestCase):
AttributeError: 'module' object has no attribute 'TestCase'
Thanks in advance for any "clues".
I'm not sure what happens - but I think it is suspicious that these
"wstools" get into the way. And it looks as if wstools.unittest imports
itself, instead of the python-unittest - which must be solved with
getting the sys.path fixed.

Diez
Jun 27 '08 #2

P: n/a
Diez B. Roggisch wrote:
Larry Bates schrieb:
>Info:

Python version: ActivePython 2.5.1.1
Platform: Windows

I wanted to install BeautifulSoup today for a small project and
decided to use easy_install. I can install other packages just fine.
Unfortunately I get the following error from BeautifulSoup
installation attempt:

C:\Python25\Lib\SITE-P~1>easy_install BeautifulSoup
Searching for BeautifulSoup
Reading http://pypi.python.org/simple/BeautifulSoup/
Reading http://www.crummy.com/software/BeautifulSoup/
Reading http://www.crummy.com/software/BeautifulSoup/download/
Best match: BeautifulSoup 3.0.5
Downloading
http://www.crummy.com/software/Beaut...BeautifulSoup-
3.0.5.tar.gz
Processing BeautifulSoup-3.0.5.tar.gz
Running BeautifulSoup-3.0.5\setup.py -q bdist_egg --dist-dir
c:\docume~1\larry\l
ocals~1\temp\easy_install-cfdxna\BeautifulSoup-3.0.5\egg-dist-tmp-gbrpp5
Traceback (most recent call last):
File "C:\Python25\Scripts\easy_install-script.py", line 8, in <module>
load_entry_point('setuptools==0.6c8', 'console_scripts',
'easy_install')()
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 1671, in main
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 1659, in with_ei_usage
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 1675, in <lambda>
File "C:\Python25\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python25\lib\distutils\dist.py", line 974, in run_commands
self.run_command(cmd)
File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
cmd_obj.run()
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 211, in run
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 446, in easy_install
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 476, in install_item
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 655, in install_eggs
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 930, in build_and_install
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm
and\easy_install.py", line 919, in run_setup
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\sand
box.py", line 27, in run_setup
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\sand
box.py", line 63, in run
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\sand
box.py", line 29, in <lambda>
File "C:\VOL1\Larry\Websafe\Python\wstools\setup.py ", line 2, in
<module>
import py2exe
File "C:\VOL1\Larry\Websafe\Python\wstools\unittest.py" , line 3, in
<module>
class TextCtrlTest(unittest.TestCase):
AttributeError: 'module' object has no attribute 'TestCase'
Thanks in advance for any "clues".

I'm not sure what happens - but I think it is suspicious that these
"wstools" get into the way. And it looks as if wstools.unittest imports
itself, instead of the python-unittest - which must be solved with
getting the sys.path fixed.

Diez
Sharp eyes Diez, I overlooked that. This is a path that I search for some
tools I've written. It is set in PYTHONPATH environment variable. I cleared
PYTHONPATH and easy_install BeautifulSoup worked. Still not quite clear why.

Thanks loads.

-Larry
Jun 27 '08 #3

P: n/a
Larry Bates schrieb:
Diez B. Roggisch wrote:
>Larry Bates schrieb:
>>Info:

Python version: ActivePython 2.5.1.1
Platform: Windows

I wanted to install BeautifulSoup today for a small project and
decided to use easy_install. I can install other packages just
fine. Unfortunately I get the following error from BeautifulSoup
installation attempt:

C:\Python25\Lib\SITE-P~1>easy_install BeautifulSoup
Searching for BeautifulSoup
Reading http://pypi.python.org/simple/BeautifulSoup/
Reading http://www.crummy.com/software/BeautifulSoup/
Reading http://www.crummy.com/software/BeautifulSoup/download/
Best match: BeautifulSoup 3.0.5
Downloading
http://www.crummy.com/software/Beaut...BeautifulSoup-
3.0.5.tar.gz
Processing BeautifulSoup-3.0.5.tar.gz
Running BeautifulSoup-3.0.5\setup.py -q bdist_egg --dist-dir
c:\docume~1\larry\l
ocals~1\temp\easy_install-cfdxna\BeautifulSoup-3.0.5\egg-dist-tmp-gbrpp5
Traceback (most recent call last):
File "C:\Python25\Scripts\easy_install-script.py", line 8, in <module>
load_entry_point('setuptools==0.6c8', 'console_scripts',
'easy_install')()
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm

and\easy_install.py", line 1671, in main
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm

and\easy_install.py", line 1659, in with_ei_usage
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm

and\easy_install.py", line 1675, in <lambda>
File "C:\Python25\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python25\lib\distutils\dist.py", line 974, in run_commands
self.run_command(cmd)
File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
cmd_obj.run()
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm

and\easy_install.py", line 211, in run
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm

and\easy_install.py", line 446, in easy_install
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm

and\easy_install.py", line 476, in install_item
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm

and\easy_install.py", line 655, in install_eggs
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm

and\easy_install.py", line 930, in build_and_install
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\comm

and\easy_install.py", line 919, in run_setup
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\sand

box.py", line 27, in run_setup
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\sand

box.py", line 63, in run
File
"C:\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg\setuptools\sand

box.py", line 29, in <lambda>
File "C:\VOL1\Larry\Websafe\Python\wstools\setup.py ", line 2, in
<module>
import py2exe
File "C:\VOL1\Larry\Websafe\Python\wstools\unittest.py" , line 3, in
<module>
class TextCtrlTest(unittest.TestCase):
AttributeError: 'module' object has no attribute 'TestCase'
Thanks in advance for any "clues".

I'm not sure what happens - but I think it is suspicious that these
"wstools" get into the way. And it looks as if wstools.unittest
imports itself, instead of the python-unittest - which must be solved
with getting the sys.path fixed.

Diez

Sharp eyes Diez, I overlooked that. This is a path that I search for some
tools I've written. It is set in PYTHONPATH environment variable. I
cleared
PYTHONPATH and easy_install BeautifulSoup worked. Still not quite clear
why.
Mayb setuptools imports setup.py - but because of you having another one
on the PYTHONPATH, it gets that instead of the one actually needed by
setuptools? Only thing that helps is looking at sandbox.py, line 29.

Diez
Jun 27 '08 #4

P: n/a
Larry Bates wrote:
Info:

Python version: ActivePython 2.5.1.1
Platform: Windows

I wanted to install BeautifulSoup today for a small project and decided
to use easy_install. I can install other packages just fine.
Unfortunately I get the following error from BeautifulSoup installation
attempt:
easy_install usually seems to make things harder.

BeautifulSoup is one single .py file. That's all you need.
Everything else is excess baggage.

John Nagle
SiteTruth
Jun 27 '08 #5

P: n/a
John Nagle wrote:
easy_install usually seems to make things harder.

BeautifulSoup is one single .py file. That's all you need.
Everything else is excess baggage.
I wouldn't call the installation of a single module Python package a good
example for the "usual" case.

Stefan
Jun 27 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.