Closed pvilanova closed 8 years ago
I did the same and I am not seeing the same behavior.
Can you do the following?
sudo pip install --upgrade MySQL-python
and try plotting the results again?
I ran the command and I got: " Requirement already up-to-date: MySQL-python in /usr/local/lib/python2.7/dist-packages "
I have trouble plotting the results, we tried this with Pedro and apparently its the same bug for both of us.
Can you copy-paste the plotting command that you are trying?
In my case the plotting command is not giving any error. In Juho's case yes.
Pedro, can you please give me the exact plotting command that you use? Juho, can you please give me the exact error message that you get?
Without these info I cannot really help you. Everything is working on my machine.
I am not sure this is what you need, but the command I ran is:
mimclib/tests/plot_data.py -tag GBM -dbhost localhost -db_user pv
Sure thing, the command I use is ../plot_data.py -o ./testplot.pdf -db_tag GBM_test_v2
and
the error is
Traceback (most recent call last):
File "../plot_data.py", line 60, in
Pedro. That's what I thought. The command you are executing is wrong. It should be
./plot_data.py -db_tag GBM -db_host localhost -db_user pv
Note that the correct argument is db_tag
. I added warning messages in the recent version that I pushed.
Juho, did you execute the pip
upgrade command of MySQL-python
? There was a bug in MySQL-python
that got resolved recently.
Fixed. thanks.
the pip upgrade crashes too:
jhappola@shahino:~/mimclib/tests/gbm$ sudo pip install --upgrade MySQL-python
The directory '/home/jhappola/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/jhappola/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Collecting MySQL-python
Downloading MySQL-python-1.2.5.zip (108kB)
100% |████████████████████████████████| 112kB 244kB/s
Complete output from command python setup.py egg_info:
sh: 1: mysql_config: not found
Traceback (most recent call last):
File "
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cwGUWD/MySQL-python/ /usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning
and check that your pip is for python 2.7 not python 3.5
Ok, now I did the stackoverflow thing, and as a result I could pip update python-mysql.
However, the problem remains:
jhappola@shahino:~/mimclib/tests/gbm$ ../plot_data.py -o ./testplot.pdf -db_tag GBM_test_v2
Traceback (most recent call last):
File "../plot_data.py", line 60, in
This error is different from the one before.
Are you sure that the tag is correct? It seems to me that there are no runs with that tag. I added an extra check for that case in the version I just pushed.
Ok, now I feel like an idiot.
Apparently it only saves to database if i set -multi tag to true :E
Sorry for the hassle.
Yes, you can change your "echo" file to change that behaviour.
I've pulled out the last version.
Run the GBM example with tolerances
TOLs = 0.1*np.sqrt(2.)**-np.arange(0., 10.)
Plot the tag 'GBM' and obtained weird results (pdf file attached). Current version is broken or I am doing something wrong?
(I am using the compiled version of wcumsum)
mimc_results.pdf