Importing PyVISA via Py2exe
Question: My script file test.py is:

    
    
    try:
        from visa import *
    except Exception as ex:
        print ex
        raw_input()
    

My setup.py file is:

    
    
    from distutils.core import setup
    import py2exe
    
    setup(console=['test.py'])
    

I then run:

> python setup.py py2exe

If I then launch test.exe on my pc I see no issues but if I copy it to a new
pc with no prior python installs I get:

> [Error 126] The specified module could not be found

I don't know how to get the full traceback to print. Has anyone else seen this
issue? Running Python 2.7, PyVisa 1.4. Both machines are Win7.


Answer: Turns out the problem was that the visa libraries that pyvisa relies on
weren't installed on the test pc. These libraries don't come included with
pyvisa.

