Created
March 9, 2012 22:21
-
-
Save smly/2009026 to your computer and use it in GitHub Desktop.
Miscellaneous routines (scipy.misc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| λ smly@moss:/opt/mnt/hotgraph|master⚡ → python 7:08:02 | |
| Python 2.7.2 (default, Mar 7 2012, 15:34:56) | |
| [GCC 4.2.1 (Apple Inc. build 5664)] on darwin | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> import pymf | |
| Traceback (most recent call last): | |
| File "<stdin>", line 1, in <module> | |
| File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pymf/__init__.py", line 41, in <module> | |
| from .sivm_sgreedy import * | |
| File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pymf/sivm_sgreedy.py", line 25, in <module> | |
| from vol import * | |
| File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pymf/vol.py", line 20, in <module> | |
| from scipy import factorial | |
| ImportError: cannot import name factorial | |
| >>> | |
| λ smly@moss:/opt/mnt/hotgraph|master⚡ → cp /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pymf/vol.py{,.bk} | |
| λ smly@moss:/opt/mnt/hotgraph|master⚡ → vi /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pymf/vol.py | |
| λ smly@moss:/opt/mnt/hotgraph|master⚡ → diff /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pymf/vol.py{.bk,} 7:22:18 | |
| 20c20 | |
| < from scipy import factorial | |
| --- | |
| > from scipy.misc import factorial | |
| λ smly@moss:/opt/mnt/hotgraph|master⚡ → python 1 7:19:03 | |
| Python 2.7.2 (default, Mar 7 2012, 15:34:56) | |
| [GCC 4.2.1 (Apple Inc. build 5664)] on darwin | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> import pymf | |
| >>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment