python-seo-analyzer icon indicating copy to clipboard operation
python-seo-analyzer copied to clipboard

'PoolManager' not found !!!!!

Open manik987 opened this issue 4 years ago • 6 comments

Describe the bug After writing the command "python analyzer.py https://www.sethserver.com/ -f html > results.html" it got the error of pool manager not found. how can i run this project

Expected behavior to run the website and show answer in result.html

Screenshots whole error


Traceback (most recent call last): File "analyzer.py", line 5, in from seoanalyzer.website import Website File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\seoanalyzer_init_.py", line 3, in from .analyzer import analyze File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\seoanalyzer\analyzer.py", line 5, in from seoanalyzer.website import Website File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\seoanalyzer\website.py", line 8, in from seoanalyzer.http import http File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\seoanalyzer\http.py", line 2, in import urllib3 File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3_init_.py", line 8, in from .connectionpool import ( File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 11, in from .exceptions import ( File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\exceptions.py", line 2, in from .packages.six.moves.http_client import ( File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 668, in _load_unlocked File "", line 638, in _load_backward_compatible File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\packages\six.py", line 203, in load_module mod = mod._resolve() File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\packages\six.py", line 115, in _resolve return _import_module(self.mod) File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\packages\six.py", line 82, in _import_module import(name) File "F:\python-seo-analyzer-master (2)\python-seo-analyzer-master\seoanalyzer\http.py", line 18, in http = Http() File "F:\python-seo-analyzer-master (2)\python-seo-analyzer-master\seoanalyzer\http.py", line 8, in init self.http = urllib3.PoolManager( AttributeError: module 'urllib3' has no attribute 'PoolManager'

Desktop (please complete the following information):*

  • OS: [Windows]
  • Browser [microsoft edge, chrome]
  • Version [4.0.2]

Additional context Add any other context about the problem here.

manik987 avatar Apr 10 '21 19:04 manik987

Roger that. Looks like on Windows we can't grab PoolManager from the urllib3 it needs to be imported.

sethblack avatar Apr 10 '21 20:04 sethblack

how can i do that please help

manik987 avatar Apr 10 '21 20:04 manik987

still showing this error ?

python analyzer.py https://www.sethserver.com/ -f html > results.html Traceback (most recent call last): File "analyzer.py", line 5, in from seoanalyzer.website import Website File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\seoanalyzer_init_.py", line 3, in from .analyzer import analyze File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\seoanalyzer\analyzer.py", line 5, in from seoanalyzer.website import Website File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\seoanalyzer\website.py", line 8, in from seoanalyzer.http import http File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\seoanalyzer\http.py", line 2, in import urllib3 File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3_init_.py", line 8, in from .connectionpool import ( File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 11, in from .exceptions import ( File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\exceptions.py", line 2, in from .packages.six.moves.http_client import ( File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\packages\six.py", line 203, in load_module mod = mod._resolve() File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\packages\six.py", line 115, in _resolve return _import_module(self.mod) File "C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\packages\six.py", line 82, in import_module import(name) File "C:\Users\Manik Malhotra\Downloads\python-seo-analyzer-master (5)\python-seo-analyzer-master\seoanalyzer\http.py", line 2, in from urllib3 import PoolManager ImportError: cannot import name 'PoolManager' from 'urllib3' (C:\Users\Manik Malhotra\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3_init.py)

manik987 avatar Apr 10 '21 21:04 manik987

Is it fixed with https://github.com/sethblack/python-seo-analyzer/pull/68 ?

henri9813 avatar May 16 '21 12:05 henri9813

@henri9813 nope, was still broken on my comp (August 21, 2021). Anaconda installation of python 3.9, Big Sur 11.4.

@manik987 I solved this error by just using a virtual env though. https://docs.python.org/3/tutorial/venv.html .

FlyingSpringrol avatar Aug 21 '21 20:08 FlyingSpringrol

Oki, you can use docker image if you want ( i don't know if it's has been released or not, but i provide one for this in https://github.com/sethblack/python-seo-analyzer/pull/71 )

henri9813 avatar Aug 25 '21 08:08 henri9813