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 #2

Closed
RealAchive1 opened this issue Dec 5, 2021 · 7 comments
Closed

Error #2

RealAchive1 opened this issue Dec 5, 2021 · 7 comments

Comments

@RealAchive1
Copy link

File "./main.py", line 35, in
import undetected_chromedriver.v2 as webdriver
File "/usr/local/lib/python3.6/dist-packages/undetected_chromedriver/v2.py", line 34
from future import annotations

I get this when i try to run the script.

@Inplex-sys
Copy link
Owner

What is the version of your python env ?
try python -V

@RealAchive1
Copy link
Author

root@server14:~# python -v

installing zipimport hook

import zipimport # builtin

installed zipimport hook

/usr/lib/python2.7/site.pyc matches /usr/lib/python2.7/site.py

import site # precompiled from /usr/lib/python2.7/site.pyc

/usr/lib/python2.7/os.pyc matches /usr/lib/python2.7/os.py

import os # precompiled from /usr/lib/python2.7/os.pyc
import errno # builtin
import posix # builtin

/usr/lib/python2.7/posixpath.pyc matches /usr/lib/python2.7/posixpath.py

import posixpath # precompiled from /usr/lib/python2.7/posixpath.pyc

/usr/lib/python2.7/stat.pyc matches /usr/lib/python2.7/stat.py

import stat # precompiled from /usr/lib/python2.7/stat.pyc

/usr/lib/python2.7/genericpath.pyc matches /usr/lib/python2.7/genericpath.py

import genericpath # precompiled from /usr/lib/python2.7/genericpath.pyc

/usr/lib/python2.7/warnings.pyc matches /usr/lib/python2.7/warnings.py

import warnings # precompiled from /usr/lib/python2.7/warnings.pyc

/usr/lib/python2.7/linecache.pyc matches /usr/lib/python2.7/linecache.py

import linecache # precompiled from /usr/lib/python2.7/linecache.pyc

/usr/lib/python2.7/types.pyc matches /usr/lib/python2.7/types.py

import types # precompiled from /usr/lib/python2.7/types.pyc

/usr/lib/python2.7/UserDict.pyc matches /usr/lib/python2.7/UserDict.py

import UserDict # precompiled from /usr/lib/python2.7/UserDict.pyc

/usr/lib/python2.7/_abcoll.pyc matches /usr/lib/python2.7/_abcoll.py

import _abcoll # precompiled from /usr/lib/python2.7/_abcoll.pyc

/usr/lib/python2.7/abc.pyc matches /usr/lib/python2.7/abc.py

import abc # precompiled from /usr/lib/python2.7/abc.pyc

/usr/lib/python2.7/_weakrefset.pyc matches /usr/lib/python2.7/_weakrefset.py

import _weakrefset # precompiled from /usr/lib/python2.7/_weakrefset.pyc
import _weakref # builtin

/usr/lib/python2.7/copy_reg.pyc matches /usr/lib/python2.7/copy_reg.py

import copy_reg # precompiled from /usr/lib/python2.7/copy_reg.pyc

/usr/lib/python2.7/traceback.pyc matches /usr/lib/python2.7/traceback.py

import traceback # precompiled from /usr/lib/python2.7/traceback.pyc

/usr/lib/python2.7/sysconfig.pyc matches /usr/lib/python2.7/sysconfig.py

import sysconfig # precompiled from /usr/lib/python2.7/sysconfig.pyc

/usr/lib/python2.7/re.pyc matches /usr/lib/python2.7/re.py

import re # precompiled from /usr/lib/python2.7/re.pyc

/usr/lib/python2.7/sre_compile.pyc matches /usr/lib/python2.7/sre_compile.py

import sre_compile # precompiled from /usr/lib/python2.7/sre_compile.pyc
import _sre # builtin

/usr/lib/python2.7/sre_parse.pyc matches /usr/lib/python2.7/sre_parse.py

import sre_parse # precompiled from /usr/lib/python2.7/sre_parse.pyc

/usr/lib/python2.7/sre_constants.pyc matches /usr/lib/python2.7/sre_constants.py

import sre_constants # precompiled from /usr/lib/python2.7/sre_constants.pyc
import _locale # builtin

/usr/lib/python2.7/_sysconfigdata.pyc matches /usr/lib/python2.7/_sysconfigdata.py

import _sysconfigdata # precompiled from /usr/lib/python2.7/_sysconfigdata.pyc

/usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.pyc matches /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.py

import _sysconfigdata_nd # precompiled from /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.pyc

/usr/lib/python2.7/sitecustomize.pyc matches /usr/lib/python2.7/sitecustomize.py

import sitecustomize # precompiled from /usr/lib/python2.7/sitecustomize.pyc
import encodings # directory /usr/lib/python2.7/encodings

/usr/lib/python2.7/encodings/init.pyc matches /usr/lib/python2.7/encodings/init.py

import encodings # precompiled from /usr/lib/python2.7/encodings/init.pyc

/usr/lib/python2.7/codecs.pyc matches /usr/lib/python2.7/codecs.py

import codecs # precompiled from /usr/lib/python2.7/codecs.pyc
import _codecs # builtin

/usr/lib/python2.7/encodings/aliases.pyc matches /usr/lib/python2.7/encodings/aliases.py

import encodings.aliases # precompiled from /usr/lib/python2.7/encodings/aliases.pyc

/usr/lib/python2.7/encodings/utf_8.pyc matches /usr/lib/python2.7/encodings/utf_8.py

import encodings.utf_8 # precompiled from /usr/lib/python2.7/encodings/utf_8.pyc
Python 2.7.17 (default, Feb 27 2021, 15:10:58)
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so", 2);
import readline # dynamically loaded from /usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so

python -v
Traceback (most recent call last):
File "", line 1, in
NameError: name 'python' is not defined

@RealAchive1
Copy link
Author

RealAchive1 commented Dec 5, 2021

@RealAchive1
Copy link
Author

Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "./main.py", line 72, in Bypass
driver.get('https://google.com/')
File "/usr/local/lib/python3.6/dist-packages/undetected_chromedriver/init.py", line 83, in _get_wrapped
return instance._orig_get(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 333, in get
self.execute(Command.GET, {'url': url})
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot determine loading status
from disconnected: received Inspector.detached event
(Session info: chrome=96.0.4664.45)

@Inplex-sys
Copy link
Owner

With an upper case python -V

@RealAchive1
Copy link
Author

Python 2.7.17

@andress134 andress134 mentioned this issue Dec 6, 2021
Closed
@Inplex-sys
Copy link
Owner

Inplex-sys commented Dec 6, 2021

Use python3.8 apt install python3 python3-pip

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