Python Tools for Visual Studio

Play Python Tools for Visual Studio

The Discussion

  • User profile image
    soandos

    Firstly, good show, and great tools. I've been using PTVS for about a month (2.1) and the only thing thats been bothering me is the silent install fails for the virtual environments with some packages.

    For example, if I try and install librabbitmq in a virtual environment, it says it was successful, and it does get the ampq dependency, but when I try to run 

    import librabbitmq
    it fails (also I do get the nice squigglies to know that it will fail in advance).

    Any idea what is going on?

  • User profile image
    SteveDower

    @soandos: It looks like librabbitmq has a C module but doesn't include a pre-built version for Windows (or any other platform). The silent error is a surprise - there should be errors appearing in the Output Window when a package fails to install.

    According to the bug at https://github.com/celery/librabbitmq/issues/26, librabbitmq doesn't actually support Windows, and the listing on PyPI is an error. You may want to try using one of the other Python libraries for RabbitMQ.

  • User profile image
    SteveDower

    You can find other libraries at http://www.rabbitmq.com/devtools.html#python-dev

    (Apparently two links marks you as a spammer, so I had to put it in a separate post...)

  • User profile image
    soandos

    @SteveDower: Firstly, thanks for the input. For what its worth, I was able to compile the C module with little difficulty (just had to change unistd to winsock2, and use cmake to build the appropriate sln file for windows), just when I actually wanted to link the underlying module (_librabbitmq) it wanted to link against Python.lib

    For what its worth, I don't think the silent error is your fault, attempting to install using pip also silently fails, and to even get a hint that there is an issue, you have to try using the setup file and then realize that warnings (not errors) are thrown about an empty build dir.

    Much appreciated, and thanks for the great tools.

  • User profile image
    LyalinDotCom

    Great video! Also, FYI, the Python team has more videos on their YouTube channel

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.