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

ImportError: sys.meta_path is None, Python is likely shutting down #11598

Open
olivergene opened this issue Feb 7, 2019 · 0 comments
Open

ImportError: sys.meta_path is None, Python is likely shutting down #11598

olivergene opened this issue Feb 7, 2019 · 0 comments

Comments

@olivergene
Copy link

I am using windows 10, Python 3 with selenium web-driver. I am not able to execute my script. Following is error message.

Please let me know if anyone can solve this.

[85280:85276:0207/152602.287:ERROR:install_util.cc(687)] Failed to read HKLM\SOFTWARE\Policies\Google\Chrome\MachineLevelUserCloudPolicyEnrollmentToken: The system cannot find the file specified. (0x2)
[85280:85276:0207/152602.287:ERROR:configuration_policy_handler_list.cc(91)] Unknown policy: DnsPrefetchingEnabled
[85280:85276:0207/152602.373:ERROR:configuration_policy_handler_list.cc(91)] Unknown policy: DnsPrefetchingEnabled

DevTools listening on ws://127.0.0.1:12642/devtools/browser/0ae1e49e-77c4-42a4-8486-98c3656a9a68
[85856:85836:0207/152607.093:ERROR:install_util.cc(687)] Failed to read HKLM\SOFTWARE\Policies\Google\Chrome\MachineLevelUserCloudPolicyEnrollmentToken: The system cannot find the file specified. (0x2)
[85856:85836:0207/152607.093:ERROR:configuration_policy_handler_list.cc(91)] Unknown policy: DnsPrefetchingEnabled
[85856:85836:0207/152607.209:ERROR:configuration_policy_handler_list.cc(91)] Unknown policy: DnsPrefetchingEnabled

DevTools listening on ws://127.0.0.1:12341/devtools/browser/e02f00aa-a831-4604-9717-7179881842a7
Traceback (most recent call last):
File "login_test_case.py", line 11, in
browser.maximize_window()
File "C:\Users\vkankhar\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 551, in maximize_window
self.execute(command, {"windowHandle": "current"})
File "C:\Users\vkankhar\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 236, in execute
self.error_handler.check_response(response)
File "C:\Users\vkankhar\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 192, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot get automation extension
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
(Session info: chrome=71.0.3578.98)
(Driver info: chromedriver=2.25.426923 (0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT 10.0.16299 x86_64)

If you suspect this is an IPython bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@python.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
%config Application.verbose_crash=True

Exception ignored in: <function Service.del at 0x000001A67A404950>
Traceback (most recent call last):
File "C:\Users\vkankhar\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\common\service.py", line 163, in del
File "C:\Users\vkankhar\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\common\service.py", line 139, in stop
File "C:\Users\vkankhar\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\common\service.py", line 110, in send_remote_shutdown_command
ImportError: sys.meta_path is None, Python is likely shutting down
Exception ignored in: <function Service.del at 0x000001A67A404950>
Traceback (most recent call last):
File "C:\Users\vkankhar\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\common\service.py", line 163, in del
File "C:\Users\vkankhar\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\common\service.py", line 139, in stop
File "C:\Users\vkankhar\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\common\service.py", line 110, in send_remote_shutdown_command
ImportError: sys.meta_path is None, Python is likely shutting down

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