← Back to team overview

dolfin team mailing list archive

[Bug 661888] Re: generate.py import error

 

** Changed in: dolfin
       Status: New => Fix Committed

-- 
generate.py import error
https://bugs.launchpad.net/bugs/661888
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.

Status in DOLFIN: Fix Committed

Bug description:
I tried running 'generate.py' in dolfin/swig, but when I have DOLFIN installed (and PYTHONPATH set), I get the below error. If I do 'unset PYTHONPATH', then generate.py works as expected.



Traceback (most recent call last):
  File "generate.py", line 83, in <module>
    generate_docstrings()
  File "/home/garth/code/fenics/dolfin.d/dolfin-all/dolfin/swig/documentation.py", line 133, in generate_docstrings
    documentation, classnames = extract_doc_representation()
  File "/home/garth/local/lib/python2.6/site-packages/dolfin_utils/documentation/extractdocumentation.py", line 172, in extract_doc_representation
    f = open(os.path.join(dolfin_dir, "dolfin", "dolfin.h"))
IOError: [Errno 2] No such file or directory: '/home/garth/local/lib/python2.6/dolfin/dolfin.h'





References