Re: [pyxl] xlrd 0.7.2 released!

2012-02-22 Thread Adrian Klaver
On Wednesday, February 22, 2012 5:22:45 am Chris Withers wrote:
> On 22/02/2012 00:37, python-ex...@raf.org wrote:
> > was good for previous versions. two reasons that spring to mind
> > 
> > immediately are:
> >   - it makes it much easier to tell what version is installed
> >   - it makes it much easier to uninstall the package
> > 
> > i know that both of these are things that the python community
> > does not yet seem to find useful but everyone else seems to.
> 
> That's because it's no longer best practice to polute the global python
> installation by installing packages directly into it.
> 
> The recommended wisdom nowadays is to use a virtualenv and then pip
> install the package.

I can see where that would be preferred when managing multiple versions of 
Python, but not when using a single version.  The pip system does a good job of 
managing package installs in the global context. As to the OPs original post, I 
see the point. On Windows the installer is the point of entry for 'package' 
management, going outside that can get confusing. I also understand setting up 
a 
Windows installer is non-trivial. Assuming a Windows installer is not in the 
offing, the OP might find it easier to use the Python packaging from here on 
out.  
For an example, to find out information on a package:

aklaver@tucker:~/.pip$ pip  search xlrd
xlutils   - Utilities for working with Excel files that require 
both xlrd and xlwt
xlrd  - Library for developers to extract data from 
Microsoft Excel (tm) spreadsheet files
  INSTALLED: 0.7.2 (latest)
xlrd3 - Library for developers to extract data from 
Microsoft Excel (tm) spreadsheet files
xlrd1 - library for extracting data from Microsoft Excel 
spreadsheet files


> 
> I believe that will give you everything you need, please explain if it
> doesn't.
> 
> cheers,
> 
> Chris

-- 
Adrian Klaver
adrian.kla...@gmail.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [pyxl] Re: xlrd 0.7.4 released!

2012-04-03 Thread Adrian Klaver

On 04/03/2012 01:46 PM, Josh English wrote:

Maybe it's just me, but I tried to upgrade my previous versions of xlrd,
xlwt, an xlutils and now some of the modules aren't loading properly.

I am currently using Portable Python 2.7 at this workstation.

I ran "easy_install --upgrade xlrd" and the result said it had updated.
If I try to update again, it says it's already there.

When I try to import xlrd, I get an error

IOError: [Errno 2] No such file or directory:
'C:\\Users\\josh\\Desktop\\Portable
Python\\App\\lib\\site-packages\\xlrd-0.7.5-py2.7.egg\\xlrd\\version.txt'

I also noticed that in my Site Packages folder, I have
xlrd-0.7.1-py2.7-win32.egg as an egg file, but xlrd-0.7.5-py2.7.egg as a
folder.

This in on a Windows 7 machine.

I didn't think EGG files could be folders. Is there a change in the way
the EGG file was meant to be distributed?


Interesting the below seemed to have got lost on way to Google Groups:

From Chris:
"
As pointed out, I stuffed up the release by not including a new file in 
the MANIFEST. My bad.


I've just release a 0.7.5 that fixes this.

cheers,

Chris "




Josh English
Confused Data Geek


--
Adrian Klaver
adrian.kla...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list