Re: [pyxl] Installing xlrd

2,387 views
Skip to first unread message

LRN

unread,
Apr 6, 2013, 10:06:27 AM4/6/13
to python...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06.04.2013 07:04, J. Kumar wrote:
> Hello,
>
> I'm a bit new to Python and could use some help .I am attempting to
> install xlrd on my Windows 7 PC (have Python 3.2) using the Windows
> installer and get an error: "No Python installation found in
> directory." I know what this means - how do I get around it? Don't
> want to install files in the wrong area. Thanks in advance
>
Download xlrd release 9.1 (source code, not the installer), then use
setup.py to compile and install it (setup.py is a standard mechanism
for setting up Python packages, you should have no problem finding
documentation).

I once downloaded the installer, and it took me a while to figure out
that it installs an old 6.x version of xlrd, not the 9.x new hotness
that i needed (with Python 3.x compatibility).

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRYCvjAAoJEOs4Jb6SI2Cw3nMIAMC1cmPSWZ09XKUxH196SsVm
RYai7H2WZiT3CY+t+7KPtW5CPz1iZ4cpXshhJuOgPrDJSzTR9A2f/eyII4Bz9nBZ
lfCE3EJti6S9E5IIxdBIA5bPK2lHirlcsydm0vXHCZsPokrUH4tnBVIqtlI2IEKD
et7bVWbLtsXpMix4M2gOs3knp9yNIwG7G87yU2W5RVC7gwyAm4D9XYTW0p/EPzd8
PJ6Vg4f/klckK/eQvMh0HeTWsliEAqjmx9tBq+thRO5xt3VAn1+QSwzUz0s14XZ4
7H5UDIuM6MzrNbq+LZMOd6qCA1b6WDHQi9raZFHQZlnDArX1+R+IBT2HR5feRtI=
=Lr/d
-----END PGP SIGNATURE-----

Chris Withers

unread,
Apr 6, 2013, 11:07:21 AM4/6/13
to python...@googlegroups.com, J. Kumar
On 06/04/2013 00:04, J. Kumar wrote:
> I'm a bit new to Python and could use some help .I am attempting to
> install xlrd on my Windows 7 PC (have Python 3.2)

Unless you're particularly wedded to 3.2, I'd recommend 3.3.

> using the Windows
> installer

What windows installer? Where did you download it from?

> and get an error: "No Python installation found in directory."
> I know what this means - how do I get around it? Don't want to install
> files in the wrong area. Thanks in advance

I'd get to grips with virtualenv if I were you...

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk

LRN

unread,
Apr 6, 2013, 11:11:32 AM4/6/13
to python...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06.04.2013 19:07, Chris Withers wrote:
> On 06/04/2013 00:04, J. Kumar wrote:
>> using the Windows installer
>
> What windows installer? Where did you download it from?
My guess is [1]

[1] http://www.lexicon.net/sjmachin/xlrd.htm

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRYDskAAoJEOs4Jb6SI2CwyJ8H/Rxu0gYbDvcr7ct2HCyzK3Y/
zJWafB5x3c8Fppxo4p2LiGkJHbdSPLTxWkbDQu7l2kDT0m7DdpZcqaddThb6NQQC
PM1DDiIvusXxNwScuolIjRd/e+IVew0rgI9UGR84+xuNEhorg3K4CyGmjVT/1X68
rAxeMbaogO6CCJre5uiEQCLcE/IcbrzWv2kvpgU8MGpsGY+kXG1eqAZGBGA1iB+C
xLubJFHhmF4SDHxU3v0HkZ0ypFfxeY+9TbCQzKla0vcuU3lwshp+66s/l5dzA5b/
U6FNHnclfF4GYpOqo2wlHLIituHAA7ruUawZX4FGM/IObVRqMzQkGWLzhM7h3sM=
=/xCX
-----END PGP SIGNATURE-----

Anurag Chourasia

unread,
Apr 6, 2013, 11:18:57 AM4/6/13
to python...@googlegroups.com

A new version of xlrd was released earlier today.

http://pypi.python.org/pypi/xlrd/0.9.1

I would recommend you use that and install using source to avoid the issue you are having.

Installing is as easy as issuing a command python setup.py install.

Regards,
Anurag

On 6 Apr 2013 05:18, "J. Kumar" <jasmin...@gmail.com> wrote:
Hello,

I'm a bit new to Python and could use some help .I am attempting to install xlrd on my Windows 7 PC (have Python 3.2) using the Windows installer and get an error: "No Python installation found in directory."  I know what this means - how do I get around it? Don't want to install files in the wrong area. Thanks in advance

JK

--
You received this message because you are subscribed to the Google Groups "python-excel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-excel...@googlegroups.com.
To post to this group, send an email to python...@googlegroups.com.
Visit this group at http://groups.google.com/group/python-excel?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ravish Bapna

unread,
Apr 6, 2013, 1:38:19 PM4/6/13
to python...@googlegroups.com
Hi Mr. Kumar,

I think Python(x,y) will prove handy to you.

https://code.google.com/p/pythonxy/

Let me know in case you still have problem.

Regards
Ravish

LRN

unread,
Apr 6, 2013, 1:44:26 PM4/6/13
to python...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06.04.2013 21:38, Ravish Bapna wrote:
> On 4/6/2013 8:34 AM, J. Kumar wrote:
>> Hello,
>>
>> I'm a bit new to Python and could use some help .I am attempting
>> to install xlrd on my Windows 7 PC (have Python 3.2) using the
>> Windows installer and get an error: "No Python installation found
>> in directory." I know what this means - how do I get around it?
>> Don't want to install files in the wrong area. Thanks in advance
>>
>> JK -- You received this message because you are subscribed to the
>> Google Groups "python-excel" group. To unsubscribe from this
>> group and stop receiving emails from it, send an email to
>> python-excel...@googlegroups.com. To post to this group,
>> send an email to python...@googlegroups.com. Visit this group
>> at http://groups.google.com/group/python-excel?hl=en-GB. For more
>> options, visit https://groups.google.com/groups/opt_out.
>>
>>
> Hi Mr. Kumar,
>
> I think Python(x,y) will prove handy to you.
>
> https://code.google.com/p/pythonxy/
>
> Let me know in case you still have problem.
AFAICS, Python(x,y) is based on Python 2.7.
xlrd 9.x requires Python 3.x


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRYF76AAoJEOs4Jb6SI2CwphUH/AohG2Ia7bAp1GPTgnrPr23x
hr6+rUr9XGaKN1Q/shIw+CKJfa2lnwInxGHObcTK+THH5J+l/aBTghBJWfyT6k0S
EWpLS0UOIijadD1p3Wcql5XBiRNmEalmDFLGoDRymhINktOjWvs8JvSbPXCBymoB
qa3dZaR+lhhxeC8pmDw6yNux0UxdP0UlmA64FlWiN/3R/dEaC+Vw+81sN5w3tYyU
llcTrINkhiRuBPDm8xZBDusHiqNCEfXRfXEOR4siCFaXqNWivxqoYaXRfmYVbrFb
liAOwWV6tB/A9qHq8J+WxQjW2k965wcdVXSo2ezad9VLa1HM394jZ3j/4RmixOI=
=kr0t
-----END PGP SIGNATURE-----

Chris Withers

unread,
Apr 6, 2013, 2:54:24 PM4/6/13
to python...@googlegroups.com, LRN
On 06/04/2013 14:44, LRN wrote:
>> I think Python(x,y) will prove handy to you.
>>
>> https://code.google.com/p/pythonxy/
>>
>> Let me know in case you still have problem.
> AFAICS, Python(x,y) is based on Python 2.7.
> xlrd 9.x requires Python 3.x

No it doesn't. I supports 3.x, but will work fine with 2.6, 2.7, 3.2 and
3.3, see here:

http://jenkins.simplistix.co.uk/job/xlrd/

However, if you're looking for a fully featured Python distro with lots
of extra libraries included, I'd consider Enthought's Free Python
Distribution:

http://www.enthought.com/products/epd_free.php

...as well as Python(x,y).

cheers,

J. Kumar

unread,
Apr 6, 2013, 4:16:50 PM4/6/13
to python...@googlegroups.com
Thanks for all the help and LRN for posting correctly where I was getting the installer from.

I will upgrade Python to 3.3 and give this a second attempt.  I am learning to use Python for writing scripts to manipulate GIS data  

JK

ach...@indeed.com

unread,
Aug 27, 2013, 3:05:02 PM8/27/13
to python...@googlegroups.com, J. Kumar
Hi Chris, (+ All)

A few months into learning python for work and am attempting to install xlrd/xlwt/xlutils onto my OS X 10.8.4 using virtualenv and python 2.7.

I followed the instructions found below and on other places online by downloading the tar.gz files to a folder (downloaded from here: https://pypi.python.org/pypi/xlrd/0.9.2), unzipping them, and then navigating to that folder and running:

(VIrtualEnv)Person's-MacBook-Air:xlrd-0.9.2 Person$ python setup.py install

I get this Syntax Error and haven't been able to find any information about it:

Traceback (most recent call last):
  File "setup.py", line 18, in <module>
    from xlrd.info import __VERSION__
  File "/Users/Person/Projects/VIrtualEnv/xlrd-0.9.2/xlrd/__init__.py", line 9, in <module>
    from . import licences
  File "/Users/Person/Projects/VIrtualEnv/xlrd-0.9.2/xlrd/licences.py", line 1
SyntaxError: encoding problem: with BOM

Not sure if this is good practice, but as you can see, I have unzipped the xlrd/xlwt/xlutils packages into the virtualenv folder I have setup for this project.

Has anyone else had this issue? Can anyone help me install correctly?

Thanks!

Matthew Smith

unread,
Aug 27, 2013, 4:09:00 PM8/27/13
to python...@googlegroups.com

Use pip?

--
You received this message because you are subscribed to the Google Groups "python-excel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-excel...@googlegroups.com.
To post to this group, send an email to python...@googlegroups.com.

Chris Withers

unread,
Sep 6, 2013, 3:37:41 PM9/6/13
to python...@googlegroups.com, Matthew Smith
Yeah, what he said.

Looks like whatever you have used to unpacked the tarball has screwed it
up...

Chris

On 27/08/2013 21:09, Matthew Smith wrote:
> Use pip?
>
> On Aug 27, 2013 4:07 PM, <ach...@indeed.com
> <mailto:ach...@indeed.com>> wrote:
>
> Hi Chris, (+ All)
>
> A few months into learning python for work and am attempting to
> install xlrd/xlwt/xlutils onto my OS X 10.8.4 using virtualenv and
> python 2.7.
>
> I followed the instructions found below and on other places online
> by downloading the tar.gz files to a folder (downloaded from here:
> https://pypi.python.org/pypi/xlrd/0.9.2), unzipping them, and then
> navigating to that folder and running:
>
> (VIrtualEnv)Person's-MacBook-Air:xlrd-0.9.2 Person$ python setup.py
> install
>
> I get this Syntax Error and haven't been able to find any
> information about it:
>
> Traceback (most recent call last):
> File "setup.py", line 18, in <module>
> from xlrd.info <http://xlrd.info> import __VERSION__
> <mailto:python-excel%2Bunsu...@googlegroups.com>.
> To post to this group, send an email to
> python...@googlegroups.com <mailto:python...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/python-excel.
> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to the Google
> Groups "python-excel" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to python-excel...@googlegroups.com.
> To post to this group, send an email to python...@googlegroups.com.
> Visit this group at http://groups.google.com/group/python-excel.
> For more options, visit https://groups.google.com/groups/opt_out.
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
Reply all
Reply to author
Forward
0 new messages