Solved

easy_install feedparser doesn't work

Posted on 2006-11-25
5
668 Views
Last Modified: 2012-06-27
Hi,
I use easy_install to install various eggs with no problem.
I am failing on feedparser.
Any help would be appreciated.
0
Comment
Question by:mco
  • 2
  • 2
5 Comments
 
LVL 17

Expert Comment

by:ramrom
ID: 18012727
I hope another expert is familiar with easy_install and eggs. I am not.

I found the easy_install documentation on-line, so have a little more light. Still not sure what an egg is.

As always please be more specific about "failing" - what happens (error message, computer reboots, ?)
0
 
LVL 25

Expert Comment

by:clockwatcher
ID: 18013356
Is there a reason you don't just download and install feedparser manually (python setup.py install) --

   $ wget http://umn.dl.sourceforge.net/sourceforge/feedparser/feedparser-4.1.zip
   $ unzip feedparser-4.1.zip -d feedparser-4.1
   $ cd feedparser-4.1
   $ python setup.py install

Or do you get an error with a manual install as well?
0
 
LVL 1

Author Comment

by:mco
ID: 18014093
1) "failing" means that the easy_install procedure doensn't find the egg where it is supposed to be on the Net

2) I cannot manually install due to lack of permission. I install eggs on my own path.
    In any case, I would like to us easy_install because it is part of a script that I would like to always get the latest version of this and other eggs.
    Feedparser is in the same list as all the other eggs: http://cheeseshop.python.org/pypi/
0
 
LVL 25

Accepted Solution

by:
clockwatcher earned 50 total points
ID: 18015236
I don't see a download url on the cheeseshop and I'm pretty sure that's how easy_install works.  It searches for a download for the package if you give it an url that returns an HTML page.

Anyway, referencing the package download directly works fine for me:

  easy_install http://umn.dl.sourceforge.net/sourceforge/feedparser/feedparser-4.1.zip

C:\>easy_install http://umn.dl.sourceforge.net/sourceforge/feedparser/feedparser
-4.1.zip
Downloading http://umn.dl.sourceforge.net/sourceforge/feedparser/feedparser-4.1.
zip
Processing feedparser-4.1.zip
Running setup.py -q bdist_egg --dist-dir c:\docume~1\mark\locals~1\temp\easy_ins
tall-zesxyy\egg-dist-tmp-r3lnec
zip_safe flag not set; analyzing archive contents...
feedparser: top-level module may be 'python -m' script
Adding feedparser 4.1 to easy-install.pth file

Installed c:\python24\lib\site-packages\feedparser-4.1-py2.4.egg
Processing dependencies for feedparser==4.1
0
 
LVL 1

Author Comment

by:mco
ID: 18015289
Thanks.
I was just used to giving the package name (e.g. elementtree) as the argument of easy_install and did not know about giving the exact url. The latter is not ideal, BTW, because you will not get the latest version when the version changes.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Getting python error while running ansible command 2 112
Pyhon with Oracle encoding issue 8 96
distributed computing in Python 4 123
How To Loop - Python 19 86
Installing Python 2.7.3 version on Windows operating system For installing Python first we need to download Python's latest version from URL" www.python.org " You can also get information on Python scripting language from the above mentioned we…
Here I am using Python IDLE(GUI) to write a simple program and save it, so that we can just execute it in future. Because when we write any program and exit from Python then program that we have written will be lost. So for not losing our program we…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question