Mlabwrap configuration request

I accidentally stumbled upon an answer posted by brentlance user regarding binding Matlab with Python, and wondered if I could ask the community to give some advice regarding the initial setup of the mlabwrap module.

I am on Windows 7 32 bit using Matlab R2012a and Python 2.7 (from the scientific computing package Python (x, y)). When I try to run:

python setup.py install 

in the malbwrap directory, the console returns a very large error, as shown:

 WINDOWS SPECIFIC ISSUE? Unable to remove c:\users\nathan\appdata\local\temp\tmpv tzipc; please delete it manually [Error 32] The process cannot access the file because it is being used by anothe r process: 'c:\\users\\nathan\\appdata\\local\\temp\\tmpvtzipc' running install running build running build_py running build_ext building 'mlabraw' extension Traceback (most recent call last): File "setup.py", line 189, in <module> extra_compile_args=EXTRA_COMPILE_ARGS, File "C:\Python27\lib\distutils\core.py", line 152, in setup dist.run_commands() File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands self.run_command(cmd) File "C:\Python27\lib\distutils\dist.py", line 972, in run_command cmd_obj.run() File "C:\Python27\lib\distutils\command\install.py", line 563, in run self.run_command('build') File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command self.distribution.run_command(command) File "C:\Python27\lib\distutils\dist.py", line 972, in run_command cmd_obj.run() File "C:\Python27\lib\distutils\command\build.py", line 127, in run self.run_command(cmd_name) File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command self.distribution.run_command(command) File "C:\Python27\lib\distutils\dist.py", line 972, in run_command cmd_obj.run() File "C:\Python27\lib\distutils\command\build_ext.py", line 340, in run self.build_extensions() File "C:\Python27\lib\distutils\command\build_ext.py", line 449, in build_exte nsions self.build_extension(ext) File "C:\Python27\lib\distutils\command\build_ext.py", line 499, in build_exte nsion depends=ext.depends) File "C:\Python27\lib\distutils\msvc9compiler.py", line 474, in compile self.initialize() File "C:\Python27\lib\distutils\msvc9compiler.py", line 384, in initialize vc_env = query_vcvarsall(VERSION, plat_spec) File "C:\Python27\lib\distutils\msvc9compiler.py", line 300, in query_vcvarsal l raise ValueError(str(list(result.keys()))) ValueError: [u'path'] 

In response to various other issues, I still tried the following:

  • I followed the installation guide posted here
  • Installed Microsoft VS Express 2010 and SDK version 7.1
  • Set default compiler for C ++ SDK in Matlab
  • Points to the msvc9compiler.py script (C: \ Python27 \ Lib \ distutils \ msvc9compiler.py) in the General Tools folder to install my VS Express to avoid the "inability to find the vcvarsall.bat error" as described here .

Any help you could provide would be greatly appreciated. Many thanks.

+8
python matlab
source share

No one has answered this question yet.

See similar questions:

eleven
Run MATLAB script from python + pass args

or similar:

57
How to use Python "easy_install" on Windows ... it's not that simple
5
The problem with installing Rpy2, window 7
3
Failed to install pycrypto
2
PyCharm pip installs fail, RuntimeError: Broken toolchain: unable to link a simple C program
one
Install mlabwrap Mac OS X
one
Python3.4 PIP Installation Error While Building
0
Installation tool installs pylint for py2.75
0
Py2exe tuple index pf range problem when creating exe file
0
Installing the POPPY Module (on Canopy)
0
Awsebcli installation error, I am using python 3.4, pip 8.1.2

All Articles