Closed joanpavlidou closed 6 years ago
Hmm, did you modify anything in the code before running the tests? And which version of Python are you using?
Oh wait I see you included the Python version, but did you modify the code at all, or are you just using the default SnapVX?
No! I didn't modify anything, I just tried to follow the installation steps and nothing more. I have the system's 64 bit python version 2.7.15 . Any idea what's going on? Thanks!
Hmm, I just re-installed SnapVX on Python2.7 and ran the tests, and it seems to be working fine on my machine.
It seems like you're consistently getting the exact same error, in Line 564 of the code. That refers to how we extract CVXPY variables from the CVXPY objectives. I'm not 100% sure why that's happening but it might have to do with your CVXPY installation. Which CVXPY version are you using?
Probably the latest, as I installed CVXPY with pip(can't see right now as I did the installations in the uni computer-I ll check it out tomorrow). I also run the test for CVXPY(the test they have on their website) and it was working. Not sure though if the last version is compatible with SnapVX. Which one should I have? So I can try to install it manually tomorrow and come back to you.
Ah, yes, that might be the issue. The latest version of CVXPY (Version 1.0) changed a lot of the internals (http://www.cvxpy.org/updates/index.html#updates), and SnapVX has not yet been updated to support CVXPY 1.0.
If you download CVXPY version 0.4 (or any version before version 1), that should fix the issue and your code should work from there!
Thank you! Hopefully it will work. I will try it and let you know!
That was the problem! I removed CVXPY 1.0 and I installed the 0.4 version!
pip uninstall CVXPY pip install CVXPY==0.4
Thank you so much, haunted computer mystery solved ;) And thanks for the software, looking forward to experimenting with it!
Great, glad that fixed it!
Hi everyone. I tried to install SnapVX via the master file downloaded from here(previously I downloaded also the file from the snapvx website) and when running the tests, I get all the below. Feeling quite frustrated. Can anyone help please? Thank you
System: MacOS Python: system python 2.7.15 64 bit