14686

ipython notebook can import a pyd module but the python interpreter can't

Question:

I downloaded the cvxopt package and tried to run some of the examples from the documentation here

<a href="http://cvxopt.org/examples/index.html" rel="nofollow">http://cvxopt.org/examples/index.html</a>

Everything runs fine when I execute the code from ipython notebook.

However, when I try to run the interpreter I get the following :

import cvxopt:

File "C:\Python27\lib\site-packages\cvxopt__init__.py", line 32, in import cvxopt.base ImportError: DLL load failed: The specified module could not be found.

The command import cvxopt runs fine in ipython notebook. The module which can't be downloaded (cvxopt.base) is a .pyd file and is on the system path.

I am thoroughly confused.

Answer1:

Get <a href="http://www.dependencywalker.com/" rel="nofollow">Dependency Walker</a>, run it on the .pyd, figure out which DLL it needs, and put the DLL where it belongs.

Recommend

  • Change x-axis (xlim) on holoviews histogram
  • Button commands in Tkinter
  • Adding custom gesture to iCarousel items
  • pandas series can't get index
  • Create a JSON file from a Flask view to be used with D3
  • Can't install scipy
  • Integrating in Python using Sympy
  • installing Scrapy under Windows7
  • iPython Notebook not printing Dataframe as table
  • True privateness in Python
  • Reflection / C# typing errors when publishing an F# class implementing an interface
  • Google App Engine - SSL InsecurePlatformWarning
  • How to set a thread specific environment variable in Python?
  • Python adding lots of things to PATH. How do I stop?
  • Creating a C++ function that calls other Lua function
  • How to get latest version of a artifact on Bintray using JSONP
  • How to synchronize jQuery dialog box to act like alert() of Javascript
  • During installation of Django, why do I keep getting ImportError: No module named django?
  • Security issues with PHP's Readfile method
  • error importing numpy
  • onBackPressed() not being executed
  • Very simple C++ DLL that can be called from .net
  • Sony Xperia Z Tablet not found by adb
  • How to recover from a Spring Social ExpiredAuthorizationException
  • How can I estimate amount of memory left with calling System.gc()?
  • Delete MySQLi record without showing the id in the URL
  • Why winpcap requires both .lib and .dll to run?
  • Return words with double consecutive letters
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Python: how to group similar lists together in a list of lists?
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • Acquiring multiple attributes from .xml file in c#
  • Hits per day in Google Big Query
  • coudnt use logback because of log4j
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • How can I remove ASP.NET Designer.cs files?
  • Programmatically clearing map cache
  • Busy indicator not showing up in wpf window [duplicate]
  • java string with new operator and a literal