Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530992 - net-analyzer/ospd doesn't work with python 3.4
Summary: net-analyzer/ospd doesn't work with python 3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-3.4
  Show dependency tree
 
Reported: 2014-11-28 13:17 UTC by Pacho Ramos
Modified: 2015-03-31 11:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2014-11-28 13:17:07 UTC
tests look to pass but they are really failing and, later, it fails to run:
creating /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image/_python3.4
creating /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image/_python3.4/usr
creating /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image/_python3.4/usr/lib64
creating /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image/_python3.4/usr/lib64/python3.4
creating /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image/_python3.4/usr/lib64/python3.4/site-packages
creating /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image/_python3.4/usr/lib64/python3.4/site-packages/ospd
copying /var/tmp/portage/net-analyzer/ospd-1.0_beta3/work/ospd-1.0-beta3-python3_4/lib/ospd/__init__.py -> /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image//_python3.4/usr/lib64/python3.4/site-packages/ospd
copying /var/tmp/portage/net-analyzer/ospd-1.0_beta3/work/ospd-1.0-beta3-python3_4/lib/ospd/misc.py -> /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image//_python3.4/usr/lib64/python3.4/site-packages/ospd
copying /var/tmp/portage/net-analyzer/ospd-1.0_beta3/work/ospd-1.0-beta3-python3_4/lib/ospd/ospd.py -> /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image//_python3.4/usr/lib64/python3.4/site-packages/ospd
byte-compiling /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image//_python3.4/usr/lib64/python3.4/site-packages/ospd/__init__.py to __init__.cpython-34.pyc
byte-compiling /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image//_python3.4/usr/lib64/python3.4/site-packages/ospd/misc.py to misc.cpython-34.pyc
byte-compiling /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image//_python3.4/usr/lib64/python3.4/site-packages/ospd/ospd.py to ospd.cpython-34.pyc
writing byte-compilation script '/var/tmp/portage/net-analyzer/ospd-1.0_beta3/temp/python3.4/tmpdday2zl7.py'
/usr/bin/python3.4 -OO /var/tmp/portage/net-analyzer/ospd-1.0_beta3/temp/python3.4/tmpdday2zl7.py
  File "/usr/lib64/python3.4/site-packages/ospd/misc.py", line 71
    print message
                ^
SyntaxError: invalid syntax

  File "/usr/lib64/python3.4/site-packages/ospd/ospd.py", line 265
    except socket.error, msg:
                       ^
SyntaxError: invalid syntax

removing /var/tmp/portage/net-analyzer/ospd-1.0_beta3/temp/python3.4/tmpdday2zl7.py
running install_egg_info
Copying /var/tmp/portage/net-analyzer/ospd-1.0_beta3/work/ospd-1.0-beta3-python3_4/ospd.egg-info to /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image//_python3.4/usr/lib64/python3.4/site-packages/ospd-1.0_beta3-py3.4.egg-info
running install_scripts
creating /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image/_python3.4/usr/lib
creating /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image/_python3.4/usr/lib/python-exec
creating /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image/_python3.4/usr/lib/python-exec/python3.4
copying /var/tmp/portage/net-analyzer/ospd-1.0_beta3/work/ospd-1.0-beta3-python3_4/scripts/ospd-w3af.py -> /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image//_python3.4/usr/lib/python-exec/python3.4
copying /var/tmp/portage/net-analyzer/ospd-1.0_beta3/work/ospd-1.0-beta3-python3_4/scripts/ospd-ovaldi.py -> /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image//_python3.4/usr/lib/python-exec/python3.4
changing mode of /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image//_python3.4/usr/lib/python-exec/python3.4/ospd-w3af.py to 755
changing mode of /var/tmp/portage/net-analyzer/ospd-1.0_beta3/image//_python3.4/usr/lib/python-exec/python3.4/ospd-ovaldi.py to 755
  File "/usr/lib64/python3.4/site-packages/ospd/misc.py", line 71
    print message
                ^
SyntaxError: invalid syntax

  File "/usr/lib64/python3.4/site-packages/ospd/ospd.py", line 265
    except socket.error, msg:
                       ^
SyntaxError: invalid syntax
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2015-03-31 08:53:43 UTC
PYTHON_COMPAT=( python{2_7,3_3,3_4} )

>>> Completed installing ospd-1.0_beta3 into /mnt/gen2/TmpDir/portage/net-analyzer/ospd-1.0_beta3/image/

ecompressdir: bzip2 -9 /usr/share/doc

While these 
    print message
                ^
SyntaxError: invalid syntax
errors do appear, they are not fatal.

--------------------------------------------------------------------------
/usr/bin/python3.3 -OO /mnt/gen2/TmpDir/portage/net-analyzer/ospd-1.0_beta3/temp/tmpppub51.py
  File "/usr/lib64/python3.3/site-packages/ospd/misc.py", line 71
    print message
                ^
SyntaxError: invalid syntax

  File "/usr/lib64/python3.3/site-packages/ospd/ospd.py", line 265
    except socket.error, msg:
                       ^
SyntaxError: invalid syntax

--------------------------------------------------------------------------

File "/usr/lib64/python3.3/site-packages/ospd/misc.py", line 71
is a nonsense.  net-analyzer/ospd is not installed yet this reads as if it is.
I am guessing it is a result of sloppy code since this doesn't happen with other routine pythonic packages.  I am guessing it is treating the 
/usr/lib64/python3.3/site-packages/ospd/misc.py as system installed when it is actually only in /image.  tmpdday2zl7.py appears a transitory temporary file that plays no part in the final installed state.

Also; ospd-ovaldi.py  ospd-w3af.py are scripts and appear in 
ospd-1.0_beta3/image/usr/bin/

Their byte compiling in the install phase is totally spurious.
All this is repeated with py3.4  The significant event is that it reaches

>>> Completed installing ospd-1.0_beta3 into /mnt/gen2/TmpDir/portage/net-analyzer/ospd-1.0_beta3/image/

These SyntaxError: invalid syntax errors are spurious and imo can be safely ignored.  py3.4 support can be safely added however I leave that to jlec to conform and commit.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2015-03-31 08:56:15 UTC
Oh also

       # Specify the Python versions you support here. In particular, ensure
        # that you indicate whether you support Python 2, Python 3 or both.
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2015-03-31 11:10:57 UTC
+*ospd-1.0.0 (31 Mar 2015)
+
+  31 Mar 2015; Justin Lecher <jlec@gentoo.org> +ospd-1.0.0.ebuild,
+  -ospd-1.0_beta3.ebuild:
+  Version BUmp; Drop py3 support, bug #530992
+