pyNastran with Python 3.x

84 views
Skip to first unread message

STY SE

unread,
May 23, 2012, 4:38:09 PM5/23/12
to pynastra...@googlegroups.com
I tried to install pyNastran-v0.4 using Python 3.2.2. No problems with scipy & numpy, which are compatible with Python 3.x now.
However, the installation requires setuptools, which is compatible up to Python 2.7 only.
Does anyone has experience with installing/running pyNastran on Python 3.x?

mesheb82

unread,
May 24, 2012, 12:01:38 AM5/24/12
to pynastra...@googlegroups.com
I hadn't tested Python 3.1+ and hoped setuptools would be taken care of everything.  I've figured out the setuptools issue.  You'll need to download distribute_setup.py from http://pypi.python.org/pypi/distribute

This replaces setuptools with no script modifications.  Run distribute_setup.py and afterwards run setup.py. 

The harder question which is what I'm working through now is why the python 2to3 changes that were supposed to be applied weren't applied.  I'm going through the code and fixing it, so I'll release an update for Python 3.2.3 (numpy=1.6.2, scipy=0.10.1) when I'm done.  Similar versions should be fine.

STY SE

unread,
May 25, 2012, 3:44:58 AM5/25/12
to pynastra...@googlegroups.com
I have installed distribute sucessfully and run the pyNastran installation again. It was OK up to the following error:

File "setup.py", line 147, in setup_package
ImportError: No module named numpy.distutils.core

numpy-V1.6.2 and scipy-V0.10.1 are installed on my machine.
Is this error related to Python 3.2.x not being supported at the predent time by pyNastran?

mesheb82

unread,
May 25, 2012, 3:58:58 AM5/25/12
to pynastra...@googlegroups.com
No.  I did not get that error when I first installed the Python 3.2.3 version of pyNastran.  I'm using numpy 1.6.2 and scipy 0.10.1, so you might try those.  The initial setup script worked perfectly for me once I ran distribute_setup.py, but I'm on Windows, so that might be the difference.

The Python 3 version should be out by early next week.  I've gotten a few initial runs through the code for the BDF and OP2, but there's more to fix up b/c of the differences between Python 2 and 3.  It's in the 0.4.0_py32 branch if you want to try it on your problem.


On Wednesday, May 23, 2012 1:38:09 PM UTC-7, STY SE wrote:

STY SE

unread,
Jul 9, 2012, 7:30:20 AM7/9/12
to pynastra...@googlegroups.com
Installation went fine and all checks are OK now.
Thanks!
Reply all
Reply to author
Forward
0 new messages