473,378 Members | 1,142 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Installing BeautifulSoup with easy_install (broken?)

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
5 3752
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Gonzillaaa | last post by:
I'm trying to get the data on the "Central London Property Price Guide" box at the left hand side of this page http://www.findaproperty.com/regi0018.html I have managed to get the data :) but...
3
by: bruce | last post by:
paul, thanks for the replies to my issues!!! much appreciation. i've got the python app: http://www.boddie.org.uk/python/downloads/libxml2dom-0.3.3.tar.gz and i've downloaded it, an...
0
by: TiNo | last post by:
Hi, I'm having problems installing easy_install. When I run python ez_setup.py I get: G:\python>python ez_setup.py 'import site' failed; use -v for traceback Downloading...
14
by: Nader Emami | last post by:
I have installed "TurboGears" and I would install 'pysqlite' also. I am a user on a Linux machine. If I try to install the 'pysqlite' with 'easy_install' tool I get the next error message. The...
7
by: Carl K | last post by:
I am trying to use this: http://python.net/crew/atuining/cx_Oracle/html/cx_Oracle.html it is a real module, right? sudo easy_install cx_Oracle did not easy_install cx_Oracle. ...
1
by: owl | last post by:
I love easy_install. I love watching it search and complete. It's when it doesn't complete that causes me grief. I don't program a lot these days and am relatively new to python but I often...
2
by: Benjamin Serrato | last post by:
Hey, I've run into another problem. I am trying to install the Mutagen package to use as my first useful program, but can't figure out how to install it on windows. The README says it is a simple...
3
by: Kenneth McDonald | last post by:
Sadly. Thanks, Ken
4
by: Alan Baljeu | last post by:
I'm new to Python, and just downloaded Py2.6. I also want to use Nose. So I downloaded the latest sources, but it's not at all clear what's the best way to put this stuff into the Python package...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.