alsterane / pylibnidaqmx

Automatically exported from code.google.com/p/pylibnidaqmx
Other
0 stars 0 forks source link

msvccompiler in numpy.distutils #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
While installing nidaqmx the following error occurred at the end of the 
installation:

"No module names msvccompiler in numpy.distutils; trying from distutils 
customize MSVCCompiler"

The list of modules in Python shows that "nidaqmx_h_9_6" and "nidaqmx_h_9_7" 
are available. However, trying to execute "from nidaqmx import System" gave the 
following error:

File "<pyshell#11>", line 1, in <module>
    from nidaqmx_h_9_7 import System
ImportError: cannot import name System

I am working on Windows 7 64-bit.

Original issue reported on code.google.com by yeghishe...@gmail.com on 25 Nov 2013 at 10:04

GoogleCodeExporter commented 9 years ago
The message "No module names msvccompiler in num..." is not an error message.

You should use:

  from nidaqmx import System

Original comment by pearu.peterson on 26 Nov 2013 at 7:33

GoogleCodeExporter commented 9 years ago
The command "from nidaqmx import System" gives the following message in Python:

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    from nidaqmx import System
ImportError: No module named nidaqmx

while "from nidaqmx_h_9_7 import System" gives the error message:

Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    from nidaqmx_h_9_7 import System
ImportError: cannot import name System

Original comment by yeghishe...@gmail.com on 26 Nov 2013 at 5:16

GoogleCodeExporter commented 9 years ago
I suspect that you are trying to import inside nidaqmx directory.
Make sure that nidaqmx package is installed in the location listed in sys.path 
and try importing nidaqmx from different directory.

Original comment by pearu.peterson on 26 Nov 2013 at 5:49