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

AttributeError: type object 'GreenSocket' has no attribute 'sendmsg' #509

Open
EvilLizard666 opened this issue Feb 18, 2025 · 1 comment

Comments

@EvilLizard666
Copy link

─# faraday-server --debug
/usr/lib/python3/dist-packages/flask_limiter/extension.py:333: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.
warnings.warn(
Traceback (most recent call last):
File "/usr/bin/faraday-server", line 33, in
sys.exit(load_entry_point('faradaysec==5.11.0', 'console_scripts', 'faraday-server')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/faraday-server", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/metadata/init.py", line 205, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/faraday/start_server.py", line 40, in
app = get_app(remove_sids=True, start_scheduler=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/faraday/server/app.py", line 563, in get_app
FARADAY_APP = create_app(db_connection_string=db_connection_string,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/faraday/server/app.py", line 547, in create_app
if register_extensions_flag and not register_extensions(app):
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/faraday/server/app.py", line 580, in register_extensions
socketio.init_app(app, ping_interval=faraday_server.socketio_ping_interval,
File "/usr/lib/python3/dist-packages/flask_socketio/init.py", line 243, in init_app
self.server = socketio.Server(**self.server_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/socketio/base_server.py", line 31, in init
self.eio = self._engineio_server_class()(**engineio_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/engineio/base_server.py", line 83, in init
self._async = importlib.import_module(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/engineio/async_drivers/eventlet.py", line 1, in
from eventlet.green.threading import Event
File "/usr/lib/python3/dist-packages/eventlet/init.py", line 6, in
from eventlet import convenience
File "/usr/lib/python3/dist-packages/eventlet/convenience.py", line 7, in
from eventlet.green import socket
File "/usr/lib/python3/dist-packages/eventlet/green/socket.py", line 21, in
from eventlet.support import greendns
File "/usr/lib/python3/dist-packages/eventlet/support/greendns.py", line 78, in
setattr(dns, pkg, import_patched('dns.' + pkg))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/eventlet/support/greendns.py", line 60, in import_patched
return patcher.import_patched(module_name, **modules)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/eventlet/patcher.py", line 132, in import_patched
return inject(
^^^^^^^
File "/usr/lib/python3/dist-packages/eventlet/patcher.py", line 109, in inject
module = import(module_name, {}, {}, module_name.split('.')[:-1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/dns/asyncquery.py", line 32, in
import dns.quic
File "/usr/lib/python3/dist-packages/dns/quic/init.py", line 37, in
import trio
File "/usr/lib/python3/dist-packages/trio/init.py", line 26, in
from . import abc, from_thread, lowlevel, socket, to_thread
File "/usr/lib/python3/dist-packages/trio/socket.py", line 16, in
from . import _socket
File "/usr/lib/python3/dist-packages/trio/_socket.py", line 545, in
class SocketType:
File "/usr/lib/python3/dist-packages/trio/_socket.py", line 757, in SocketType
@_wraps(_stdlib_socket.socket.sendmsg, assigned=(), updated=())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'GreenSocket' has no attribute 'sendmsg'
Exception ignored in: <function _removeHandlerRef at 0x7fcd41d4e700>
Traceback (most recent call last):
File "/usr/lib/python3.12/logging/init.py", line 884, in _removeHandlerRef
File "/usr/lib/python3.12/logging/init.py", line 241, in _acquireLock
File "/usr/lib/python3.12/threading.py", line 198, in acquire
TypeError: 'NoneType' object is not callable

This is a fresh Kali linux (kali-linux-2024.4-installer-everything-amd64)

@ezk06eer
Copy link

Hello @EvilLizard666, please remove every faraday package prior to the install. Use this issue as a guide:
Kali Install

Guide us through the steps you did to install fararaday, as i think you have some unmet/broken/incompatible dependencies.

If you are installing using pip / clone the repository, do it in a separate virtualenv.

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

2 participants