umvarma / pynastran

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

ValueError: invalid literal for int() with base 10: 'd' #133

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Make sure you attach a *small* sample file if you have it.  Otherwise, it's
almost impossible to debug a problem.

What is the expected output? What do you see instead?
pyNastranGUI
Traceback (most recent call last):
  File "/home/nils/local/bin/pyNastranGUI", line 9, in <module>
    load_entry_point('pyNastran==0.6.2', 'console_scripts', 'pyNastranGUI')()
  File "/home/nils/local/lib/python2.7/site-packages/pyNastran-0.6.2-py2.7.egg/pyNastran/gui/gui.py", line 23, in main
    from pyNastran.gui.gui_qt import main as main2
  File "/home/nils/local/lib/python2.7/site-packages/pyNastran-0.6.2-py2.7.egg/pyNastran/gui/gui_qt.py", line 35, in <module>
    from pyNastran.gui.formats import (NastranIO, Cart3dIO, PanairIO, LaWGS_IO, STL_IO, TetgenIO, Usm3dIO, Plot3d_io,
  File "/home/nils/local/lib/python2.7/site-packages/pyNastran-0.6.2-py2.7.egg/pyNastran/gui/formats.py", line 2, in <module>
    from pyNastran.converters.nastran.nastranIO import NastranIO
  File "/home/nils/local/lib/python2.7/site-packages/pyNastran-0.6.2-py2.7.egg/pyNastran/converters/nastran/nastranIO.py", line 26, in <module>
    from pyNastran.bdf.bdf import (BDF, CAERO1, CAERO2, CAERO3, CAERO4, CAERO5,
  File "/home/nils/local/lib/python2.7/site-packages/pyNastran-0.6.2-py2.7.egg/pyNastran/bdf/bdf.py", line 29, in <module>
    from .cards.elements.solid import (CTETRA4, CTETRA10, CPENTA6, CPENTA15,
  File "/home/nils/local/lib/python2.7/site-packages/pyNastran-0.6.2-py2.7.egg/pyNastran/bdf/cards/elements/solid.py", line 20, in <module>
    from pyNastran.utils.mathematics import Area, gauss
  File "/home/nils/local/lib/python2.7/site-packages/pyNastran-0.6.2-py2.7.egg/pyNastran/utils/mathematics.py", line 34, in <module>
    numpy_version = tuple([int(i) for i in numpy.__version__ if i != '.'])
ValueError: invalid literal for int() with base 10: 'd'

What steps will reproduce the problem?
1. Install latest pyNastran
2. Run pyNastranGUI
3.

I think it's better to use

numpy_version = tuple([i for i in numpy.__version__.split('.') if i.isdigit()])

r1724
on openSUSE 12.3
Linux linux-5fmr.site 3.7.10-1.11-desktop #1 SMP PREEMPT Thu May 16 20:27:27 
UTC 2013 (adf31bb) x86_64 x86_64 x86_64 GNU/Linux

Original issue reported on code.google.com by nils...@googlemail.com on 12 Jan 2014 at 3:30

GoogleCodeExporter commented 9 years ago
Thanks.  That's a better solution.

Original comment by mesheb82 on 12 Jan 2014 at 9:19