Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Algorithm IDE Whitelist Issue

Hi,
Last week I was running a python notebook and now a library it does not work. The issue that appeared with this particular library is the following:

InputRejected:
Importing blas from cvxopt raised an ImportError Did you mean to import base from cvxopt? You tried to import a module that is not whitelisted on Quantopian. To see the list of allowed modules in the IDE, go to https://www.quantopian.com/docs/whitelists/ide-whitelist#algo-ide-whitelist. To see the list of additional modules allowed in Research, go to https://www.quantopian.com/docs/whitelists/research-whitelist#research-whitelist.

After I saw the documentation I realized that Importing blas from cvxopt is whitelisted. Can anyone help me?

pd: This library used to work on the weekend because I use it.

Thanks for the help.

1 response

I ran into the same issue. In my case, I was not able to import cvxopt.blas.dot function. As a workaround, I replaced it with the corresponding numpy function np.dot.

So for example, I replaced this line,

returns = [blas.dot(pbar, x) for x in portfolios]

with this one:

returns = [np.dot(np.array(pbar).T, np.array(x))[0,0] for x in portfolios]