alnurali / cvxstoc

Disciplined convex stochastic programming. For the cvxstoc home page, please see:
http://alnurali.github.io/cvxstoc/
31 stars 11 forks source link

cvxstoc import error #2

Open kavasseri opened 7 years ago

kavasseri commented 7 years ago

Hello, Al packages and dependencies installed correctly. However, running the demo example at: http://alnurali.github.io/cvxstoc/ throws the following error:


Traceback (most recent call last): File "dis4.py", line 11, in from cvxstoc import NormalRandomVariable, expectation, prob File "/Users/kg/anaconda/lib/python3.5/site-packages/cvxstoc/init.py", line 1, in from .expectation import expectation File "/Users/kg/anaconda/lib/python3.5/site-packages/cvxstoc/expectation.py", line 4, in import cvxpy.expressions.types ImportError: No module named ‘cvxpy.expressions.types' ———————

Thanks much! || Rajesh

sschnug commented 7 years ago

I can confirm this and it seems that cvxpy got some changes which are not reflected within cvxstoc.

Using an older version of cvxpy (setup.py in this project links to 0.3.5) should work (even if that's not the perfect approach).

kavasseri commented 7 years ago

Thanks Sascha - _ I will give it a try. ||

kavasseri commented 7 years ago

@sschnug, The suggestion works!. Thank you. Some version control required perhaps. ||

alnurali commented 7 years ago

Thanks a lot for the suggestions, everyone! Glad to hear it all works now.

On Fri, Sep 23, 2016 at 11:59 AM, kavasseri notifications@github.com wrote:

@sschnug https://github.com/sschnug, The suggestion works!. Thank you. Some version control required perhaps. ||

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alnurali/cvxstoc/issues/2#issuecomment-249232079, or mute the thread https://github.com/notifications/unsubscribe-auth/AFm_TSQFVSfyvFkJUA7BoYn1DGn0zmqGks5qs_d9gaJpZM4KEhLD .

alnur

twiecki commented 7 years ago

@alnurali Ran into this too, what are the chances cvxstoc is made compatible with recent versions of cvxpy?