473,897 Members | 2,523 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_instal l 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\lar ry\l
ocals~1\temp\ea sy_install-cfdxna\Beautifu lSoup-3.0.5\egg-dist-tmp-gbrpp5
Traceback (most recent call last):
File "C:\Python25\Sc ripts\easy_inst all-script.py", line 8, in <module>
load_entry_poin t('setuptools== 0.6c8', 'console_script s', 'easy_install') ()
File "C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 1671, in main
File "C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 1659, in with_ei_usage
File "C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 1675, in <lambda>
File "C:\Python25\li b\distutils\cor e.py", line 151, in setup
dist.run_comman ds()
File "C:\Python25\li b\distutils\dis t.py", line 974, in run_commands
self.run_comman d(cmd)
File "C:\Python25\li b\distutils\dis t.py", line 994, in run_command
cmd_obj.run()
File "C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 211, in run
File "C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 446, in easy_install
File "C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 476, in install_item
File "C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 655, in install_eggs
File "C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 930, in build_and_insta ll
File "C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 919, in run_setup
File "C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\sand
box.py", line 27, in run_setup
File "C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\sand
box.py", line 63, in run
File "C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\sand
box.py", line 29, in <lambda>
File "C:\VOL1\Larry\ Websafe\Python\ wstools\setup.p y", line 2, in <module>
import py2exe
File "C:\VOL1\Larry\ Websafe\Python\ wstools\unittes t.py", line 3, in <module>
class TextCtrlTest(un ittest.TestCase ):
AttributeError: 'module' object has no attribute 'TestCase'
Thanks in advance for any "clues".

-Larry
Jun 27 '08 #1
5 3784
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_instal l 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\lar ry\l
ocals~1\temp\ea sy_install-cfdxna\Beautifu lSoup-3.0.5\egg-dist-tmp-gbrpp5
Traceback (most recent call last):
File "C:\Python25\Sc ripts\easy_inst all-script.py", line 8, in <module>
load_entry_poin t('setuptools== 0.6c8', 'console_script s',
'easy_install') ()
File
"C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 1671, in main
File
"C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 1659, in with_ei_usage
File
"C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 1675, in <lambda>
File "C:\Python25\li b\distutils\cor e.py", line 151, in setup
dist.run_comman ds()
File "C:\Python25\li b\distutils\dis t.py", line 974, in run_commands
self.run_comman d(cmd)
File "C:\Python25\li b\distutils\dis t.py", line 994, in run_command
cmd_obj.run()
File
"C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 211, in run
File
"C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 446, in easy_install
File
"C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 476, in install_item
File
"C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 655, in install_eggs
File
"C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 930, in build_and_insta ll
File
"C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_instal l.py", line 919, in run_setup
File
"C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\sand
box.py", line 27, in run_setup
File
"C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\sand
box.py", line 63, in run
File
"C:\Python25\li b\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\sand
box.py", line 29, in <lambda>
File "C:\VOL1\Larry\ Websafe\Python\ wstools\setup.p y", line 2, in <module>
import py2exe
File "C:\VOL1\Larry\ Websafe\Python\ wstools\unittes t.py", line 3, in
<module>
class TextCtrlTest(un ittest.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.unittes t 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.
Unfortunatel y I get the following error from BeautifulSoup
installation attempt:

C:\Python25\Li b\SITE-P~1>easy_instal l 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\la rry\l
ocals~1\temp\e asy_install-cfdxna\Beautifu lSoup-3.0.5\egg-dist-tmp-gbrpp5
Traceback (most recent call last):
File "C:\Python25\Sc ripts\easy_inst all-script.py", line 8, in <module>
load_entry_poin t('setuptools== 0.6c8', 'console_script s',
'easy_install' )()
File
"C:\Python25\l ib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_insta ll.py", line 1671, in main
File
"C:\Python25\l ib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_insta ll.py", line 1659, in with_ei_usage
File
"C:\Python25\l ib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_insta ll.py", line 1675, in <lambda>
File "C:\Python25\li b\distutils\cor e.py", line 151, in setup
dist.run_comman ds()
File "C:\Python25\li b\distutils\dis t.py", line 974, in run_commands
self.run_comman d(cmd)
File "C:\Python25\li b\distutils\dis t.py", line 994, in run_command
cmd_obj.run()
File
"C:\Python25\l ib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_insta ll.py", line 211, in run
File
"C:\Python25\l ib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_insta ll.py", line 446, in easy_install
File
"C:\Python25\l ib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_insta ll.py", line 476, in install_item
File
"C:\Python25\l ib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_insta ll.py", line 655, in install_eggs
File
"C:\Python25\l ib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_insta ll.py", line 930, in build_and_insta ll
File
"C:\Python25\l ib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm
and\easy_insta ll.py", line 919, in run_setup
File
"C:\Python25\l ib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\sand
box.py", line 27, in run_setup
File
"C:\Python25\l ib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\sand
box.py", line 63, in run
File
"C:\Python25\l ib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\sand
box.py", line 29, in <lambda>
File "C:\VOL1\Larry\ Websafe\Python\ wstools\setup.p y", line 2, in
<module>
import py2exe
File "C:\VOL1\Larry\ Websafe\Python\ wstools\unittes t.py", line 3, in
<module>
class TextCtrlTest(un ittest.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.unittes t 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
installatio n attempt:

C:\Python25\L ib\SITE-P~1>easy_instal l 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.g z
Processing BeautifulSoup-3.0.5.tar.gz
Running BeautifulSoup-3.0.5\setup.py -q bdist_egg --dist-dir
c:\docume~1\l arry\l
ocals~1\temp\ easy_install-cfdxna\Beautifu lSoup-3.0.5\egg-dist-tmp-gbrpp5
Traceback (most recent call last):
File "C:\Python25\Sc ripts\easy_inst all-script.py", line 8, in <module>
load_entry_poin t('setuptools== 0.6c8', 'console_script s',
'easy_install ')()
File
"C:\Python25\ lib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm

and\easy_inst all.py", line 1671, in main
File
"C:\Python25\ lib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm

and\easy_inst all.py", line 1659, in with_ei_usage
File
"C:\Python25\ lib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm

and\easy_inst all.py", line 1675, in <lambda>
File "C:\Python25\li b\distutils\cor e.py", line 151, in setup
dist.run_comman ds()
File "C:\Python25\li b\distutils\dis t.py", line 974, in run_commands
self.run_comman d(cmd)
File "C:\Python25\li b\distutils\dis t.py", line 994, in run_command
cmd_obj.run()
File
"C:\Python25\ lib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm

and\easy_inst all.py", line 211, in run
File
"C:\Python25\ lib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm

and\easy_inst all.py", line 446, in easy_install
File
"C:\Python25\ lib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm

and\easy_inst all.py", line 476, in install_item
File
"C:\Python25\ lib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm

and\easy_inst all.py", line 655, in install_eggs
File
"C:\Python25\ lib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm

and\easy_inst all.py", line 930, in build_and_insta ll
File
"C:\Python25\ lib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\comm

and\easy_inst all.py", line 919, in run_setup
File
"C:\Python25\ lib\site-packages\setupt ools-0.6c8-py2.5.egg\setup tools\sand

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

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

box.py", line 29, in <lambda>
File "C:\VOL1\Larry\ Websafe\Python\ wstools\setup.p y", line 2, in
<module>
import py2exe
File "C:\VOL1\Larry\ Websafe\Python\ wstools\unittes t.py", line 3, in
<module>
class TextCtrlTest(un ittest.TestCase ):
AttributeErro r: '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.unittes t
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
8619
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 when I start looking for tables I only get tables of depth 1 how do I go about accessing inner tables? same happens for links... this is what I've go so far
3
1454
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 untarred it... i have the dir structure, but i don't know what needs to be done now!!! i have a setup.py. does it get run?
0
3446
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 http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0. 6c3-py2.5.egg Processing setuptools-0.6c3-py2.5.egg
14
7172
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 error message is longer than what I send here. % easy_install pysqlite Searching for pysqlite Reading http://cheeseshop.python.org/pypi/pysqlite/ Reading http://pysqlite.org/
7
14720
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. http://www.python.org/pypi/cx_Oracle/4.3.1 doesn't give me any clue. I got the source from http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-4.3.1.tar.gz?download
1
1254
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 wind up installing packages on both unix and windows machines and often the 'build' part of the install fails with not being able to find the compiler or compile problems. If there are any articles/pointers that talk about this, i.e. how to
2
6018
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 application of-- Installing ---------- $ ./setup.py build $ su -c "./setup.py install" --but I ran c:\>python c:\python25\tools\scripts\setup.py build and did
3
1013
by: Kenneth McDonald | last post by:
Sadly. Thanks, Ken
4
1641
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 system. Nose supports easy_install, easy_install doesn't have an installer for Windows and Py2.6, so I think I can't use that. (It only does 2.5 and earlier. (Should I go to Py2.5? Is there more support out there for that?)). Alan Baljeu ...
0
9990
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10850
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10478
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8032
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7185
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4698
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4293
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3300
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.