Questions like this should go to the mailing list, which I have cc'ed. My crystal ball tells me that you have /usr/gapps/exmatex/firedrake/firedrake/firedrake on your PYTHONPATH, whereas you should have /usr/gapps/exmatex/firedrake/firedrake. Therefore you have a name clash with the io module from the standard library and the one from firedrake is picked up instead. Those paths are rather awkward, which system is this? Florian On 07/10/14 13:18, Bercea, Gheorghe-teodor wrote:
Hi Florian,
Thanks for fixing the previous bug, now I have another. I'm trying to install Petsc via pip with --user enabled and I'm getting an error when importing gzip:
Traceback (most recent call last): File "/g/g90/bercea1/.local/bin/pip", line 5, in <module> from pkg_resources import load_entry_point File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 22, in <module> File "/usr/apps/python/lib/python2.7/zipfile.py", line 6, in <module> import io File "/usr/gapps/exmatex/firedrake/firedrake/firedrake/io.py", line 8, in <module> from pyop2.logger import warning, RED File "/usr/gapps/exmatex/firedrake/PyOP2/pyop2/__init__.py", line 9, in <module> from op2 import * File "/usr/gapps/exmatex/firedrake/PyOP2/pyop2/op2.py", line 39, in <module> import base File "/usr/gapps/exmatex/firedrake/PyOP2/pyop2/base.py", line 46, in <module> from caching import Cached, ObjectCached File "/usr/gapps/exmatex/firedrake/PyOP2/pyop2/caching.py", line 37, in <module> import gzip File "/usr/apps/python/lib/python2.7/gzip.py", line 36, in <module> class GzipFile(io.BufferedIOBase):
It might be the case that it's picking up some io.py file from my python path. This is a related issue: http://stackoverflow.com/questions/6315440/how-to-solve-attributeerror-when-...
Do you have any idea if this is the case?
Cheers,
--Doru
participants (1)
-
Florian Rathgeber