umvarma / pynastran

Automatically exported from code.google.com/p/pynastran
1 stars 0 forks source link

AttributeError: 'OP4' object has no attribute 'write_op4' #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

nils@linux-5fmr:~/svn/pynastran-read-only/pyNastran/op4/test> python 
op4_test.py 
.....E
======================================================================
ERROR: test_square_matrices_1 (__main__.TestOP4)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "op4_test.py", line 166, in test_square_matrices_1
    op4.write_op4(op4_filename, matrices, name_order=None, precision='defauldt',
AttributeError: 'OP4' object has no attribute 'write_op4'

----------------------------------------------------------------------
Ran 6 tests in 0.149s

FAILED (errors=1)

Moreover, it should be default instead of defauldt

Original issue reported on code.google.com by nils...@googlemail.com on 20 Jun 2014 at 9:41

GoogleCodeExporter commented 9 years ago
The defauldt part is fixed.

In regards to the actual error, I know that function exists because Jeff has 
been submitting patches for it recently.  I think you don't have the package 
installed properly.  You may be pointing to another version of the software.

Can you check?

import pyNastran
print pyNastran.__file__

and verify the base path matches the base path of op4_test.py

Original comment by mesheb82 on 20 Jun 2014 at 4:18

GoogleCodeExporter commented 9 years ago
works for me !
I have reinstalled everything from scratch.

Original comment by nils...@googlemail.com on 29 Jun 2014 at 5:18

GoogleCodeExporter commented 9 years ago
Great!

Original comment by mesheb82 on 29 Jun 2014 at 9:53