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

ModuleNotFoundError: No module named 'pool' #12

Open
homuraLan opened this issue Jul 21, 2022 · 0 comments
Open

ModuleNotFoundError: No module named 'pool' #12

homuraLan opened this issue Jul 21, 2022 · 0 comments

Comments

@homuraLan
Copy link

Can it connect locally?

I use it like this:

class MyPool(ConnectionPool):
    def _new_connection(self):
        s = socket.create_connection(('192.168.0.92', 8090))
        s._sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
        return s

pools = MyPool(2)
with pools.get() as c:
    while True:
        print(c.recv(94).hex())

Prompt when I use:
Python3.8.10x64\lib\site-packages\geventconnpool_init_.py", line 5, in
from pool import ConnectionPool, retry
ModuleNotFoundError: No module named 'pool'


When I execute “pip install pool”:  

File "D:\Python3.8.10x64\lib\site-packages\geventconnpool_init_.py", line 5, in
from pool import ConnectionPool, retry
ImportError: cannot import name 'ConnectionPool' from 'pool' (D:\Python3.8.10x64\lib\site-packages\pool_init_.py)

Looking forward to your answer,thank
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