Forums » Bugs & Problems Search

Windows setup.py doesn't work with a non-standard Python install directory New Reply

Author Post
Posts: 5
Registered: Jun 23, 2009

My Python26 folder is in C:_coder, where I install all my dev things.

There seem to be a problem when building SoundTouch :

building 'soundtouch' extension
C:\_Coder\Visual Studio C++\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\_Coder\Python26\include -IC:\_Coder\
Python26\PC /Tpexternal/pysoundtouch14/soundtouchmodule.cpp /Fobuild\temp.win32-2.6\Release\external/pysoundtouch14/soun
dtouchmodule.obj -IC:\Python26\Lib\site-packages\numpy\numarray -IC:\Python26\Lib\site-packages\numpy\core\include
soundtouchmodule.cpp
external/pysoundtouch14/soundtouchmodule.cpp(26) : fatal error C1083: Cannot open include file: 'numpy/arrayobject.h': N
o such file or directory
error: command '"C:\_Coder\Visual Studio C++\VC\BIN\cl.exe"' failed with exit status 2

I tried adding the right directory in the extra_compile_args of setup.py (handwritten or with numpy.get_numpy_include() - although I hear it's deprecated, but I guess numpy.get_include() would have done the same?). I copied my Python26 directory to C:, and it worked...

Posts: 5
Registered: Jun 23, 2009

By "right directory", I mean "C:_CoderPython26Libsite-packagesnumpycoreinclude". I didn't try "C:_CoderPython26Libsite-packagesnumpynumarray".

Posts: 105
Registered: Sep 05, 2008

Hi yhancik, the best place for this stuff is the Echo Nest Remix API site - http://code.google.com/p/echo-nest-remix -- you can file a issue report or join the mailing list.

But quickly: to install remix you should use the installer .exe on Windows. If you want to compile pysoundtouch yourself, yes, you'll have to change around some dirs in setup.py.. that's just the way it is. We are attempting to make it as easy as possible for non-developers to get going, so we really only test out the installers and do all the compiling/packaging ourselves here.

Posts: 5
Registered: Jun 23, 2009

Well I needed to test something with the latest revision actually ;) http://code.google.com/p/echo-nest-remix/issues/detail?id=30#c1

I wasn't sure if it fitted the gCode issues page, but alright, I'll file an issue report there.

Reply to this Thread

You must log in to post a reply.