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

Error calling roadtx: ModuleNotFoundError: No module named 'pkg_resources' #110

Open
rgmz opened this issue Jan 17, 2025 · 0 comments
Open

Comments

@rgmz
Copy link

rgmz commented Jan 17, 2025

Newer versions of Python don't seem to include setuptools, leading to the following error (https://stackoverflow.com/a/10538412):

$ roadtx
Traceback (most recent call last):
  File "/Users/me/code/github.com/roadtools/venv/bin/roadtx", line 5, in <module>
    from roadtools.roadtx.main import main
  File "/Users/me/code/github.com/roadtools/roadtx/roadtools/roadtx/main.py", line 14, in <module>
    from roadtools.roadtx.selenium import SeleniumAuthentication
  File "/Users/me/code/github.com/roadtools/roadtx/roadtools/roadtx/selenium.py", line 8, in <module>
    from seleniumwire.webdriver import FirefoxOptions
  File "/Users/me/code/github.com/roadtools/venv/lib/python3.13/site-packages/seleniumwire/webdriver.py", line 28, in <module>
    from seleniumwire import backend, utils
  File "/Users/me/code/github.com/roadtools/venv/lib/python3.13/site-packages/seleniumwire/backend.py", line 4, in <module>
    from seleniumwire.server import MitmProxy
  File "/Users/me/code/github.com/roadtools/venv/lib/python3.13/site-packages/seleniumwire/server.py", line 5, in <module>
    from seleniumwire.handler import InterceptRequestHandler
  File "/Users/me/code/github.com/roadtools/venv/lib/python3.13/site-packages/seleniumwire/handler.py", line 5, in <module>
    from seleniumwire import har
  File "/Users/me/code/github.com/roadtools/venv/lib/python3.13/site-packages/seleniumwire/har.py", line 11, in <module>
    from seleniumwire.thirdparty.mitmproxy import connections
  File "/Users/me/code/github.com/roadtools/venv/lib/python3.13/site-packages/seleniumwire/thirdparty/mitmproxy/connections.py", line 10, in <module>
    from seleniumwire.thirdparty.mitmproxy.net import tls, tcp
  File "/Users/me/code/github.com/roadtools/venv/lib/python3.13/site-packages/seleniumwire/thirdparty/mitmproxy/net/tls.py", line 17, in <module>
    from seleniumwire.thirdparty.mitmproxy.contrib.kaitaistruct import tls_client_hello
  File "/Users/me/code/github.com/roadtools/venv/lib/python3.13/site-packages/seleniumwire/thirdparty/mitmproxy/contrib/kaitaistruct/tls_client_hello.py", line 10, in <module>
    from pkg_resources import parse_version
ModuleNotFoundError: No module named 'pkg_resources'

The solution is to install setuptools manually, or for it to be included in the install_requires section in setup.py.

install_requires=[

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

No branches or pull requests

1 participant