[MacPorts] #63746: py39-nose @1.3.7_1 uses python2 style print statements

MacPorts noreply at macports.org
Sun Oct 31 20:56:04 UTC 2021


#63746: py39-nose @1.3.7_1 uses python2 style print statements
---------------------------+-----------------------
 Reporter:  josephsacco    |      Owner:  (none)
     Type:  defect         |     Status:  new
 Priority:  Normal         |  Milestone:
Component:  ports          |    Version:  2.7.1
 Keywords:  nose, python3  |       Port:  py39-nose
---------------------------+-----------------------
 py39-nose uses python2 print statements:

 {{{
 cavandish:~ jsacco$ python3.9
 Python 3.9.7 (default, Oct 31 2021, 13:10:35)
 [Clang 13.0.0 (clang-1300.0.29.3)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import nose
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/nose/__init__.py", line 1, in <module>
     from nose.core import collector, main, run, run_exit, runmodule
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/nose/core.py", line 153
     print "%s version %s" % (os.path.basename(sys.argv[0]), __version__)
           ^
 SyntaxError: invalid syntax
 }}}

 It would appear that the source was not converted to python3 format [See:
 core.py].

 FWIW... The "wheel" for the  python3 version on PYPI appears to have
 corrected this.

 -Joseph

-- 
Ticket URL: <https://trac.macports.org/ticket/63746>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list