Skip to content

Instantly share code, notes, and snippets.

@jenshnielsen
jenshnielsen / gist:9596583
Created March 17, 2014 09:46
GMP configure
==> ./configure --prefix=/usr/local/Cellar/gmp/5.1.3 --enable-cxx
checking build system type... coreisbr-apple-darwin13.1.0
checking host system type... coreisbr-apple-darwin13.1.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
/Users/jhn/ucl/bempp/bempp/build/external/src/Trilinos/packages/epetra/src/Epetra_Util.cpp:497:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
/Users/jhn/ucl/bempp/bempp/build/external/src/Trilinos/packages/epetra/src/Epetra_Util.cpp:543:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
/Users/jhn/ucl/bempp/bempp/build/external/src/Trilinos/packages/epetra/src/Epetra_Util.cpp:587:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
3 warnings generated.
@jenshnielsen
jenshnielsen / gist:dc1cf4f61917cc6c1ef4
Last active August 29, 2015 14:09
Matplotlib docs building warnings
reading sources... [ 29%] examples/images_contours_and_fields/streamplot_demo_masking
/home/travis/virtualenv/python2.7.8/lib/python2.7/site-packages/numpy/ma/core.py:783: RuntimeWarning: invalid value encountered in greater_equal
return umath.absolute(a) * self.tolerance >= umath.absolute(b)
reading sources... [ 83%] examples/units/units_scatter
/home/travis/virtualenv/python2.7.8/lib/python2.7/site-packages/numpy/ma/core.py:3855: UserWarning: Warning: converting a masked element to nan.
warnings.warn("Warning: converting a masked element to nan.")
/home/travis/build/matplotlib/matplotlib/doc/mpl_examples/units/basic_units.py:300: RuntimeWarning: divide by zero encountered in divide
secs.add_conversion_fn(hertz, lambda x: 1./x)
@jenshnielsen
jenshnielsen / gist:c5a6ea5f1484f2cddc67
Created November 19, 2014 13:55
Matplotlib python3 doc warnings
/Users/jhn/src/python/matplotlib/doc/api/colors_api.rst:12: WARNING: error while formatting arguments for matplotlib.colors.no_norm: 'function' object has no attribute '__mro__'
/Users/jhn/src/python/matplotlib/doc/api/colors_api.rst:12: WARNING: error while formatting arguments for matplotlib.colors.normalize: 'function' object has no attribute '__mro__'
/Users/jhn/src/python/matplotlib/doc/examples/api/date_demo.rst:8: WARNING: Exception occurred in plotting date_demo
from /Users/jhn/src/python/matplotlib/doc/mpl_examples/api/date_demo.py:
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.10-x86_64.egg/matplotlib/sphinxext/plot_directive.py", line 506, in run_code
six.exec_(code, ns)
File "<string>", line 29, in <module>
File "/usr/local/lib/python3.4/site-packages/numpy/lib/npyio.py", line 393, in load
return format.read_array(fid)
@jenshnielsen
jenshnielsen / gist:5292948d67038bb77bfb
Created November 26, 2014 13:15
Seaborn mpl log issue
2014-11-26 13:15:21.937 Python[42542:12147223] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/84/xxjck4hs7xb1nm36b23vch000000gn/T/org.python.python.savedState
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.10-x86_64.egg/matplotlib/artist.py", line 59, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.10-x86_64.egg/matplotlib/figure.py", line 1084, in draw
func(*args)
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib-1.5.x-py3.4-macosx-10.10-x86_64.egg/matplotlib/artist.py", line 59, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/P
Process: Python [72267]
Path: /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 2.7.9 (2.7.9)
Code Type: X86-64 (Native)
Parent Process: bash [63263]
Responsible: iTerm [714]
User ID: 501
Date/Time: 2015-05-24 10:14:08.225 +0100
@jenshnielsen
jenshnielsen / gist:7a63f06a06223d180fe7
Created May 26, 2015 14:29
Simple script to fake a framework build of python in a virtualenv on OSX.
#!/bin/bash
# what real Python executable to use
PYVER=2.7
PYTHON=/usr/local/bin/python$PYVER
# find the root of the virtualenv, it should be the parent of the dir this script is in
ENV=`$PYTHON -c "import os; print os.path.abspath(os.path.join(os.path.dirname(\"$0\"), '..'))"`
# now run Python with the virtualenv set as Python's HOME
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [ 0%] api/afm_api
writing output... [ 0%] api/animation_api
writing output... [ 0%] api/api_changes
(line 69) broken http://matplotlib.org/examples/pylab_examples/contour_corner_mask.py - HTTP Error 404: Not Found
(line 829) ok http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
(line 1080) ok http://www.voidspace.org.uk/python/configobj.html