[MacPorts] #49942: Problem using IPython3 notebook
MacPorts
noreply at macports.org
Wed Dec 9 06:30:03 PST 2015
#49942: Problem using IPython3 notebook
--------------------------------+--------------------------------
Reporter: jianguohsiang82@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords:
Port: |
--------------------------------+--------------------------------
Comment (by stromnov@…):
{{{
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4
/site-packages/tornado/ioloop.py", line 57, in <module>
import thread # py2
File "/Users/MYNAME/thread.py", line 10
print old, new
}}}
It's a "name clash" - for some reason your python interpreter imports
thread.py from local dir (/Users/MYNAME/thread.py), instead of system one.
You can try to run ipython notebook from another directory or adapt import
paths.
http://python-
notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html
#the-name-shadowing-trap
PS. Yes, you can remove this file entirely, but it can break your local
scripts.
--
Ticket URL: <https://trac.macports.org/ticket/49942#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list