installing xlwt ImportError: No module names 'Workbook'

2,100 views
Skip to first unread message

Joshua Williams

unread,
Oct 17, 2014, 4:19:57 PM10/17/14
to python...@googlegroups.com
Hi all,

I have been able to successfully install xlrd by doing python setup.py install. When I go to do this for xlwt in throws an error:

Traceback (most recent call last):

  File "setup.py", line 4, in <module>

    from xlwt import __VERSION__

  File "/Users/Williams/Downloads/xlwt-0.7.5/xlwt/__init__.py", line 3, in <module>

    from Workbook import Workbook

ImportError: No module named 'Workbook'


Any advice? It seems strange since the xlwt folder has the Workbook.py module in it... 


Let me know if anyone can help out!


Thanks,


Josh



Adrian Klaver

unread,
Oct 25, 2014, 11:14:38 AM10/25/14
to python...@googlegroups.com
On 10/17/2014 01:19 PM, Joshua Williams wrote:
> Hi all,
>
> I have been able to successfully install xlrd by doing python setup.py
> install. When I go to do this for xlwt in throws an error:
>
> *Traceback (most recent call last):*
>
> * File "setup.py", line 4, in <module>*
>
> * from xlwt import __VERSION__*
>
> * File "/Users/Williams/Downloads/xlwt-0.7.5/xlwt/__init__.py", line 3,
> in <module>*
>
> * from Workbook import Workbook*
>
> *ImportError: No module named 'Workbook'*
>
> *
> *
>
> Any advice? It seems strange since the xlwt folder has the Workbook.py
> module in it...
>
>
> Let me know if anyone can help out!

I am assuming this is related to your other post.

You did not say what version of Python you where using before, but xlwt
only works with Python 2.x:

https://pypi.python.org/pypi/xlwt

If you want an experimental 3.x version see here:

https://pypi.python.org/pypi/xlwt-future

>
>
> Thanks,
>
>
> Josh
>

> To post to this group, send 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/d/optout.


--
Adrian Klaver
adrian...@aklaver.com
Reply all
Reply to author
Forward
0 new messages