Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use select.epoll() on non-linux, need #87 #89

Open
schuettc opened this issue Feb 18, 2023 · 3 comments
Open

Can't use select.epoll() on non-linux, need #87 #89

schuettc opened this issue Feb 18, 2023 · 3 comments

Comments

@schuettc
Copy link

(sip-load-tester-py3.9) xxxxxxx/sip-load-tester  python3 sip_load_tester/index.py
Traceback (most recent call last):
File "/Users/xxxxxxx/Documents/GitHub/xxxxxxx/sip-load-tester/sip_load_tester/index.py", line 1, in
import pysipp
File "/Users/xxxxxxx/Library/Caches/pypoetry/virtualenvs/sip-load-tester-hHnEooQS-py3.9/lib/python3.9/site-packages/pysipp/init.py", line 24, in
from . import launch
File "/Users/xxxxxxx/Library/Caches/pypoetry/virtualenvs/sip-load-tester-hHnEooQS-py3.9/lib/python3.9/site-packages/pysipp/launch.py", line 26, in
class PopenRunner(object):
File "/Users/xxxxxxx/Library/Caches/pypoetry/virtualenvs/sip-load-tester-hHnEooQS-py3.9/lib/python3.9/site-packages/pysipp/launch.py", line 38, in PopenRunner
poller=select.epoll,
AttributeError: module 'select' has no attribute 'epoll'

pyproject.toml:

[tool.poetry]
name = "sip-load-tester"
version = "0.1.0"
description = ""
readme = "README.md"
packages = [{include = "sip_load_tester"}]

[tool.poetry.dependencies]
python = "^3.9"
pysipp = {git = "https://github.com/SIPp/pysipp.git"}


[tool.poetry.group.dev.dependencies]
pylint = "^2.16.2"
pycodestyle = "^2.10.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

index.py

import pysipp
pysipp.client(destaddr=('10.10.8.88', 5060))()

uas = pysipp.server(srcaddr=('10.10.8.88', 5060))
uac = pysipp.client(destaddr=uas.srcaddr)
# run server async
uas(block=False)  # returns a `pysipp.launch.PopenRunner` instance by default
uac()  # run client synchronously
@goodboy
Copy link
Member

goodboy commented Mar 23, 2023

@schuettc looks like a OS stdlib mis-compat:
https://docs.python.org/3/library/select.html#select.epoll

Given ur masked filepaths, looks like you're not on linux.
Also, in this case this is exactly the motivation to land #87.

Not sure it has anything to do with "poetry" 😉

@goodboy goodboy changed the title Unable to run with Poetry ~Unable to run with Poetry~ Can't use on windows Mar 23, 2023
@goodboy goodboy changed the title ~Unable to run with Poetry~ Can't use on windows Can't use on windows, need #87 Mar 23, 2023
@schuettc
Copy link
Author

This was done on a Mac, not Windows.

@goodboy goodboy changed the title Can't use on windows, need #87 Can't use select.epoll() on non-linux, need #87 Mar 24, 2023
@goodboy
Copy link
Member

goodboy commented Mar 24, 2023

@schuettc lol ma bad.

in that case you could try to use the now somewhat defunct #17, but ideally if you can prove #87 works on OS X that would be pretty great 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants