MSVCR90.DLL python module dependency issue

Compiling pyspotify for spotify channel on windows
Hi I'm new to Plex and I've been trying to compile a third party library ([pyspotify](http://www.google.com.au/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CFEQFjAA&url=http%3A%2F%2Fpyspotify.mopidy.com%2F&ei=FncCULWaBcWSiAfKvKmVCA&usg=AFQjCNGPYtvIckPsaY7WGoRKPYSguFBD7A)) with windows 7 so that I can get the spotify channel running on my window server.

I've compiled the 3rd party package using python2.7 on Windows 7 using mingw and it has a dependency on MSVCR90.DLL which is causing me a major headache.
I am using the latest Plex Media Server.

Copying the dll and VC9.0 manifest into either the local directory or the windows/system32 folder throws this error:
PlexScriptHost.exe Runtime Error R6034 An Application has made an attempt to load the C runtime library incorrectly

I have the Visual Studio C++ 2008 re-distributable package installed.


I've tried to compile it using Python2.5 so it wouldn't be a dependency and found out that my version of Plex doesn't support 2.5.
I've tried to set mingw to use a different msvcr*.dll but python2.7 is compiled with msvcr90.dll so this is impossible.

I've looked into re-compiling Python2.7 to use msvcr100.dll though I'm not sure how on windows
I've tried using python3.2 but there is a handful of changes that I would need to make to update the pyspotify library and with my poor python/c skills this would take time.


Before I go any further with one of the above 2 solutions, does anyone know an easier way? Why can the compiled python module (pyd) not find the msvcr90.dll, is there something that I'm missing/not understanding?

To be honest, I’m a little confused about your need to compile a python library. I’m, by far, no expert but, I thought one of the benefits of python is that it is platform independent. I’d like to help but, I don’t have any experience with the Spotify plugin and I do all my plugin development on OSX. I hope someone else can provide you with some insight.

This module uses alot of cython as well which needs a c compiler which causes the dependency problem.



I managed to build python2.7.3 with visual studio 2010 so the modules built with python.exe would be dependent on vsvcr100.dll instead. Now I need to update the modules C files to work with the stricter syntax of 2010 sigh, I give up for now. Might come back to this one day

This module uses alot of cython as well which needs a c compiler which causes the dependency problem.

I managed to build python2.7.3 with visual studio 2010 so the modules built with python.exe would be dependent on vsvcr100.dll instead. Now I need to update the modules C files to work with the stricter syntax of 2010 sigh, I give up for now. Might come back to this one day

Did you sort it out  I just got the same issues as you I guess...

https://forums.plex.tv/topic/30363-new-spotify-plugin-release/page-12#entry570039

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.