You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have failing Pylenium test for several projects. I get a stack trace like this:
ImportError: Failed to import test module: mini_adb.tests.tests_views
Traceback (most recent call last):
File "/usr/local/lib/python3.11/unittest/loader.py", line 419, in _find_test_path
module = self._get_module_from_name(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/unittest/loader.py", line 362, in _get_module_from_name
__import__(name)
File "/source/mini_adb/tests/tests_views.py", line 9, in <module>
from core import unittest
File "/source/core/unittest.py", line 26, in <module>
from pylenium.driver import Pylenium
File "/venv/lib/python3.11/site-packages/pylenium/driver.py", line 12, in <module>
from pylenium import webdriver_factory
File "/venv/lib/python3.11/site-packages/pylenium/webdriver_factory.py", line 15, in <module>
from seleniumwire import webdriver as wire_driver
File "/venv/lib/python3.11/site-packages/seleniumwire/webdriver.py", line 28, in <module>
from seleniumwire import backend, utils
File "/venv/lib/python3.11/site-packages/seleniumwire/backend.py", line 4, in <module>
from seleniumwire.server import MitmProxy
File "/venv/lib/python3.11/site-packages/seleniumwire/server.py", line 5, in <module>
from seleniumwire.handler import InterceptRequestHandler
File "/venv/lib/python3.11/site-packages/seleniumwire/handler.py", line 5, in <module>
from seleniumwire import har
File "/venv/lib/python3.11/site-packages/seleniumwire/har.py", line 11, in <module>
from seleniumwire.thirdparty.mitmproxy import connections
File "/venv/lib/python3.11/site-packages/seleniumwire/thirdparty/mitmproxy/connections.py", line 10, in <module>
from seleniumwire.thirdparty.mitmproxy.net import tls, tcp
File "/venv/lib/python3.11/site-packages/seleniumwire/thirdparty/mitmproxy/net/tls.py", line 15, in <module>
import seleniumwire.thirdparty.mitmproxy.options
File "/venv/lib/python3.11/site-packages/seleniumwire/thirdparty/mitmproxy/options.py", line 5, in <module>
from seleniumwire.thirdparty.mitmproxy import optmanager
File "/venv/lib/python3.11/site-packages/seleniumwire/thirdparty/mitmproxy/optmanager.py", line 9, in <module>
import blinker._saferef
ModuleNotFoundError: No module named 'blinker._saferef'
I first looked into selenium-wire project, which is unmaintained. So my first recommendation would be to work on a replacement of this third party module.
As a temporary solution the blinkerdependency:
blinker<1.8
Adding this to my requirements.txt fixes the failing tests.
The text was updated successfully, but these errors were encountered:
Hi,
I have failing Pylenium test for several projects. I get a stack trace like this:
I first looked into
selenium-wire
project, which is unmaintained. So my first recommendation would be to work on a replacement of this third party module.As a temporary solution the
blinker
dependency:Adding this to my
requirements.txt
fixes the failing tests.The text was updated successfully, but these errors were encountered: