This was reported in http://www.cfd-online.com/Forums/openfoam/143016-pyfoam-library-import-error-post514482.html
from PyFoam.Basics import DataStructures
gives an import error
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/bgschaid/private_python/PyFoam/Basics/DataStructures.py", line 5, in <module> import PyFoam.Basics.FoamFileGenerator File "/Users/bgschaid/private_python/PyFoam/Basics/FoamFileGenerator.py", line 5, in <module> from PyFoam.Basics.DataStructures import Vector,Field,Dimension,TupleProxy,DictProxy,Tensor,SymmTensor,Unparsed,UnparsedList,Codestream,DictRedirection,BinaryList,BoolProxy ImportError: cannot import name 'Vector'
with
from PyFoam.Basics import FoamFileGenerator from PyFoam.Basics import DataStructures
everything works.
A general fix should be found
Seems that the general fix is to move the import of the FoamFileGenerator in DataStructures to the back of the file (this actually makes sense if you understand what Python does during importing)
Fix will be in the next release