can't install with Python 3

255 views
Skip to first unread message

Thomas

unread,
Oct 23, 2012, 12:42:23 PM10/23/12
to openpyx...@googlegroups.com
Here is the error, I think ifilter is renamed to "filter" in Python 3.  Running Python 3.2.3, tried installing from source and Homebrew.  2to3 tool doesn't help.  Tried 1.6.0 and tip.

Traceback (most recent call last):
  File "setup.py", line 23, in <module>
    import openpyxl  # to fetch __version__ etc
  File "/Users/tommyc/Downloads/ericgazoni-openpyxl-ef6a1c94a595/openpyxl/__init__.py", line 34, in <module>
    from openpyxl import reader
  File "/Users/tommyc/Downloads/ericgazoni-openpyxl-ef6a1c94a595/openpyxl/reader/__init__.py", line 29, in <module>
    from openpyxl.reader import excel
  File "/Users/tommyc/Downloads/ericgazoni-openpyxl-ef6a1c94a595/openpyxl/reader/excel.py", line 41, in <module>
    from openpyxl.reader.worksheet import read_worksheet
  File "/Users/tommyc/Downloads/ericgazoni-openpyxl-ef6a1c94a595/openpyxl/reader/worksheet.py", line 42, in <module>
    from itertools import ifilter

Adam Morris

unread,
Oct 24, 2012, 6:34:11 AM10/24/12
to openpyx...@googlegroups.com
Hi Thomas -

It looks like ifilter isn't even used.  I tried removing it, seems to work fine locally, but I don't have python 3 installed.  Can you try this version, and let me know if there are any further issues:
https://bitbucket.org/amorris/openpyxl/get/730d333be974.zip

I created an issue - if there are further problems with the installation:
https://bitbucket.org/amorris/openpyxl/issue/6/cant-install-with-python-3

--Adam

Eric Gazoni

unread,
Oct 24, 2012, 10:43:57 AM10/24/12
to openpyx...@googlegroups.com
Hi,
sorry for the py3 issue, I believe now it should be fixed (though some unit tests will protest on python3). Please let me know if at least now you can use openpyxl on python3.

Cheers,
Eric
Le 24/10/12 12:34, Adam Morris a écrit :

Jess Vriesema

unread,
Aug 15, 2024, 5:52:48 PM8/15/24
to openpyxl-users
Hi! 

I'm new to Google Groups, so pardon me if this isn't the right way to use this. 

How can one install openpyxl from within Homebrew's ecosystem on macOS? 

Thanks so much!
-Jess

Charlie Clark

unread,
Aug 16, 2024, 4:03:10 AM8/16/24
to openpyxl-users
On 15 Aug 2024, at 23:52, Jess Vriesema wrote:

> Hi!

Hi Jess,

> I'm new to Google Groups, so pardon me if this isn't the right way to use
> this.
>
> How can one install openpyxl from within Homebrew's ecosystem on macOS?

You should be able to install Openpyxl using pip. I don't use Homebrew myself (I prefer MacPorts) so I don't whether someone has created a package for it, but pip is the usual way to install individual Python packages, especially if, like Openpyxl, no compiling is required.

Charlie

--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Sengelsweg 34
Düsseldorf
D- 40489
Tel: +49-203-3925-0390
Mobile: +49-178-782-6226
Reply all
Reply to author
Forward
0 new messages