[MacPorts] #40227: error in tempfile of python 2.7.5

MacPorts noreply at macports.org
Thu Aug 22 18:21:44 PDT 2013


#40227: error in tempfile of python 2.7.5
-----------------------+-------------------
  Reporter:  renz@…    |      Owner:  jwa@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.2.0
Resolution:            |   Keywords:
      Port:  python27  |
-----------------------+-------------------

Comment (by renz@…):

 It seems that tempfile.py imports io, but it somehow loads one of my file
 io.py in my PYTHONPATH.  However, this didn't happen in python2.7.2.  Do I
 have to keep out from a construction zone?  How would I know?

 {{{
 % python -c 'import tempfile; print tempfile.mktemp(".dat")'
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tempfile.py",
 line 32, in <module>
     import io as _io
   File "/Users/renz/code/cpl/io.py", line 217, in <module>
     ...
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/40227#comment:3>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list