Installation Problem: ImportError: No module named setuptools

2,075 views
Skip to first unread message

FMicchetti

unread,
Aug 1, 2013, 9:04:15 AM8/1/13
to pynastra...@googlegroups.com

Hi,

I just tried to install pynastran and I get the following error: ImportError: No module named setuptools

What could I be doing wrong?

Thank you,
Francesco.

kay

unread,
Aug 1, 2013, 9:14:47 AM8/1/13
to pynastra...@googlegroups.com
Hi Francesco,

you need the python module 'setuptools' on your system.
Depending on your operating system there are different ways to install the module. Instructions are found here:

For Ubuntu or similar Linux derivatives you can just type the following in your console:
sudo apt-get install python-setuptools

regards,
Kay

FMicchetti

unread,
Aug 1, 2013, 9:38:40 AM8/1/13
to pynastra...@googlegroups.com

Thank you Kay,

I got a new error now: No local packages or download links found for numpy>=1.3.0

but I think I did install numpy.

kay

unread,
Aug 1, 2013, 9:42:10 AM8/1/13
to pynastra...@googlegroups.com
What system are you using? 

FMicchetti

unread,
Aug 1, 2013, 9:48:37 AM8/1/13
to pynastra...@googlegroups.com


WinXP 64. Trying to install in a Python 2.7.

My final target is to actually use pynastran from IronPython; is that possible at all?

kay

unread,
Aug 1, 2013, 9:56:09 AM8/1/13
to pynastra...@googlegroups.com
You can check your numpy version with 

import numpy as np
print np.__version__

You did not precisely tell me where the error with numpy occured. during installation of setuptools? during installation of pyNastran?

FMicchetti

unread,
Aug 1, 2013, 10:01:29 AM8/1/13
to pynastra...@googlegroups.com

sorry for not being precise.

I get the error while installing pynastran.

But I actually think I had an issue with numpy installation.... Python does not find numpy module.

In order to install numpy I downloaded the numpy-1.7.0.zip package, installed the g77 compiler and run: python setup.py build --fcompiler=gnu as specified in the INSTALL.txt file.

Maybe there's something wrong with this procedure on my PC.


kay

unread,
Aug 1, 2013, 10:20:46 AM8/1/13
to pynastra...@googlegroups.com
Why don't you use a precompiled installer? https://pypi.python.org/pypi/numpy
Then there are also many precompiled binaries for windows here: http://www.lfd.uci.edu/~gohlke/pythonlibs/

You could also try installing a complete package like python(x,y). This includes lots of modules.

FMicchetti

unread,
Aug 1, 2013, 10:25:53 AM8/1/13
to pynastra...@googlegroups.com


OK done now. I did not see the precompiled installers =/

Installed the 1.7.1 numpy and pynastran seems to have been installed correctly.

I run setup.py test also and the result is: Ran 49 tests OK (skipped=1).

Should be ok right?


kay

unread,
Aug 1, 2013, 10:27:09 AM8/1/13
to pynastra...@googlegroups.com
Yep, its installed now.

FMicchetti

unread,
Aug 1, 2013, 11:27:23 AM8/1/13
to pynastra...@googlegroups.com
Thanks for your support Kay!


Going back to my question some posts ago, do you think pynastran could run on IronPython?

kay

unread,
Aug 1, 2013, 11:29:20 AM8/1/13
to pynastra...@googlegroups.com
Sorry, I can't answer your question as I have no experience with IronPython.

FMicchetti

unread,
Aug 1, 2013, 11:35:49 AM8/1/13
to pynastra...@googlegroups.com


Ok, thanks again Kay.

Best regards,
Francesco.
Reply all
Reply to author
Forward
0 new messages