Package Details: python2-portend 2.1.2-3

Git Clone URL: https://aur.archlinux.org/python-portend.git (read-only)
Package Base: python-portend
Description: Use portend to monitor TCP ports for bound or unbound states.
Upstream URL: https://github.com/jaraco/portend
Licenses: MIT
Submitter: boerde
Maintainer: boerde
Last Packager: boerde
Votes: 11
Popularity: 4.712493
First Submitted: 2017-08-01 17:01
Last Updated: 2017-08-15 07:27

Latest Comments

Lone_Wolf commented on 2017-09-20 11:08

@ tilx

python-tempora & python2-tempora are a split package.
Verify if the aur helper you use does support split packages.

If it does, the problems may arise because of the missing pkgbase field in python-tempora .

edit: it seems python-portend also misses that field.

tilx commented on 2017-09-16 18:42

I had to add 'python-tempora' to the PKGBUILD makedepends in order to get the package to install.

The package builds just fine, but without the makedepend, I couldn't install because of the following error:

| resolving dependencies...
| warning: cannot resolve "python2-tempora", a dependency of "python2-portend"
| warning: cannot resolve "python-tempora", a dependency of "python-portend"
| :: The following packages cannot be upgraded due to unresolvable dependencies:
| python2-portend python-portend
|
| :: Do you want to skip the above packages for this upgrade? [y/N]

highway commented on 2017-09-14 11:11

@sknd: you are making it father than me, mine still might be related to IPv6. Do you happen to know how you enabled IPv6? That might be part of my problem.

portend.py ✓✓✓✓✓ 56% █████▋
test_portend.py ✓ 67% ██████▋

―――――――――――――――――――――――――――― TestChecker.test_check_port_listening[AddressFamily.AF_INET6] ――――――――――――――――――――――――――――

self = <test_portend.TestChecker object at 0x7f3081ce1358>, listening_addr = ('::', xxxxx, 0, 0)

def test_check_port_listening(self, listening_addr):
with pytest.raises(portend.PortNotFree):
> portend.Checker().assert_free(listening_addr)
E Failed: DID NOT RAISE <class 'portend.PortNotFree'>

test_portend.py:51: Failed

test_portend.py ⨯✓✓ 100% ██████████

Results (0.22s):
8 passed
1 failed
- test_portend.py:49 TestChecker.test_check_port_listening[AddressFamily.AF_INET6]
ERROR: InvocationError: '/home/asdf/.cache/pacaur/python-portend/src/portend-2.1.2/.tox/python/bin/py.test'
_______________________________________________________ summary _______________________________________________________
ERROR: python: commands failed
==> ERROR: A failure occurred in check().
Aborting...

sknd commented on 2017-09-11 17:46

enabling IPv6 didn't make it for me:

==> Rozpoczynanie build()...
running build
running build_py
running egg_info
writing portend.egg-info/PKG-INFO
writing dependency_links to portend.egg-info/dependency_links.txt
writing requirements to portend.egg-info/requires.txt
writing top-level names to portend.egg-info/top_level.txt
reading manifest file 'portend.egg-info/SOURCES.txt'
writing manifest file 'portend.egg-info/SOURCES.txt'
running build
running build_py
running egg_info
writing requirements to portend.egg-info/requires.txt
writing portend.egg-info/PKG-INFO
writing top-level names to portend.egg-info/top_level.txt
writing dependency_links to portend.egg-info/dependency_links.txt
reading manifest file 'portend.egg-info/SOURCES.txt'
writing manifest file 'portend.egg-info/SOURCES.txt'
==> Rozpoczynanie check()...
python recreate: /home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2/.tox/python
python develop-inst: /home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2
python installed: portend==2.1.2,py==1.4.34,pytest==3.2.2,pytest-sugar==0.9.0,pytest-warnings==0.3.0,pytz==2017.2,six==1.10.0,tempora==1.9,termcolor==1.1.0
python runtests: PYTHONHASHSEED='1110368400'
python runtests: commands[0] | py.test
/home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2/.tox/python/lib/python3.6/site-packages/pytest_warnings/__init__.py:44: UserWarning: pytest-warnings plugin was introduced in core pytest on 3.1, please uninstall pytest-warnings
warnings.warn('pytest-warnings plugin was introduced in core pytest on 3.1, please '
Test session starts (platform: linux, Python 3.6.2, pytest 3.2.2, pytest-sugar 0.9.0)
rootdir: /home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2, inifile: pytest.ini
plugins: warnings-0.3.0, sugar-0.9.0

portend.py ✓✓✓✓✓ 56% █████▋
test_portend.py ✓✓✓✓ 100% ██████████

Results (0.30s):
9 passed
____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________
python: commands succeeded
congratulations :)
python recreate: /home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2/.tox/python
python develop-inst: /home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2
python installed: portend==2.1.2,py==1.4.34,pytest==3.2.2,pytest-sugar==0.9.0,pytest-warnings==0.3.0,pytz==2017.2,six==1.10.0,tempora==1.9,termcolor==1.1.0
python runtests: PYTHONHASHSEED='1396874918'
python runtests: commands[0] | py.test
/home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2/.tox/python/lib/python2.7/site-packages/pytest_warnings/__init__.py:44: UserWarning: pytest-warnings plugin was introduced in core pytest on 3.1, please uninstall pytest-warnings
warnings.warn('pytest-warnings plugin was introduced in core pytest on 3.1, please '
Test session starts (platform: linux2, Python 2.7.13, pytest 3.2.2, pytest-sugar 0.9.0)
rootdir: /home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2, inifile: pytest.ini
plugins: warnings-0.3.0, sugar-0.9.0

――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting portend-2.1.2/portend.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
.tox/python/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('portend', '/home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2/portend.py', local('/home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2/portend-2.1.2/portend.py'))

―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting portend-2.1.2/setup.py ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
.tox/python/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('setup', '/home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2/setup.py', local('/home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2/portend-2.1.2/setup.py'))

――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting portend-2.1.2/test_portend.py ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
.tox/python/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('test_portend', '/home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2/test_portend.py', local('/home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2/portend-2.1.2/test_portend.py'))

――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting portend-2.1.2/test_portend.py ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
import file mismatch:
imported module 'test_portend' has this __file__ attribute:
/home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2/test_portend.py
which is not the same as the test file we want to collect:
/home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2/portend-2.1.2/test_portend.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules

―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting portend-2.1.2/docs/conf.py ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
.tox/python/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('conf', '/home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2/docs/conf.py', local('/home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2/portend-2.1.2/docs/conf.py'))

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 5 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Results (0.41s):
ERROR: InvocationError: '/home/tmp/packerbuild-1000/python-portend/python-portend/src/portend-2.1.2-py2/.tox/python/bin/py.test'
____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________
ERROR: python: commands failed
==> BŁĄD: Wystąpił błąd w check().
Przerywam...
The build failed.

highway commented on 2017-08-29 21:51

@mokkurkalve, thanks i gave it a shot and couldn't get it to work. i will keep trying!

mokkurkalve commented on 2017-08-19 13:35

@highway: I found the problem; I have IPv6 disabled on all interfaces. Re-enabling IPv6 with sysctl on the interfaces for the duration of install make all the tests pass.

highway commented on 2017-08-17 23:04

I seem to have the same issue as mokkurkalve.

mokkurkalve commented on 2017-08-15 06:43

Build fail in test:

Test session starts (platform: linux, Python 3.6.2, pytest 3.2.1, pytest-sugar 0.8.0)
rootdir: /tmp/byggeplass/python-portend/src/portend-2.1.2, inifile: pytest.ini
plugins: warnings-0.3.0, sugar-0.8.0

portend.py ✓✓✓✓✓ 56% █████▋
test_portend.py ✓ 67% ██████▋

―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― TestChecker.test_check_port_listening[AddressFamily.AF_INET6] ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

self = <test_portend.TestChecker object at 0x7fe181a1c320>, listening_addr = ('::', 56073, 0, 0)

def test_check_port_listening(self, listening_addr):
with pytest.raises(portend.PortNotFree):
> portend.Checker().assert_free(listening_addr)
E Failed: DID NOT RAISE <class 'portend.PortNotFree'>

test_portend.py:51: Failed
test_portend.py ✓⨯✓✓ 100% ██████████

Results (0.23s):
8 passed
1 failed
- test_portend.py:49 TestChecker.test_check_port_listening[AddressFamily.AF_INET6]
ERROR: InvocationError: '/tmp/byggeplass/python-portend/src/portend-2.1.2/.tox/python/bin/py.test'
_____________________________________________________________________________________________________ summary ______________________________________________________________________________________________________
ERROR: python: commands failed

boerde commented on 2017-08-14 19:47

But the package "python-tempora" is also in the aur. I was not able to reproduce the error.
https://aur.archlinux.org/packages/python-tempora/

newkular commented on 2017-08-14 12:33

I was able to build this by removing the reference to the non-existent package "python-tempora" from the depends:

Change:
depends=('python-tempora' 'python2-tempora')

To:
depends=('python2-tempora')

All comments