question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: cannot import name 'RequestMixin'

See original GitHub issue

Hi 😄 Thanks for writing this library! It’s a neat solution, and it made doing some cookie based auth a breeze.

Recently (yesterday? I just noticed it today, but I see there was a release yesterday) I started running into the following error in an automated test pipeline that utilizes selenium & selenium-requests.

from seleniumrequests.request import RequestMixin
ImportError: cannot import name 'RequestMixin' from 'seleniumrequests.request'

The project being run in the pipeline was using selenium-requests = "^1.3" to ensure compatibility, but I’ve since had to lock it to selenium-requests = "1.3" to resolve the import problem.

I’d love to be able to rely on the minor version again, but having breaking changes come in a PATCH version makes me nervous.

Going forward, would it be possible to bump the major version if there is going to be a significant change like dropping support for a version of Python / something incompatible?

Thank you!! 🙇

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gavrielrhcommented, Aug 30, 2021

No worries! I really appreciate what you’ve been working on. I know how difficult it can be to manage these sort of things 😃 Thank you for the quick response!

1reaction
cryzedcommented, Aug 30, 2021

I just made a 1.3.3 release which added some code to add backwards-compatibility to the previous point release. Again, sorry for breaking this, despite many years of writing code I actually only rarely publish any.

(For what it’s worth, the Python 2 compatibility I deprecated in addition, couldn’t have been working for a while now).

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: cannot import name 'webdriver' - Stack Overflow
It says that webdriver cant be import.So I assume you have Selenium installed. So I can only assume ...
Read more >
cannot import name 'FirefoxOptions' from 'selenium.webdriver ...
When I try to run check_and_gen.py I get this error. ... ImportError: cannot import name 'FirefoxOptions' from 'selenium.webdriver' #275.
Read more >
selenium-requests - PyPI
Extends Selenium WebDriver classes to include the request function from the Requests library, while doing all the needed cookie and request headers handling....
Read more >
[selenium-users] Import error
i have met with error in python selenium scripts on running time. Traceback (most recent call last): ... ImportError: cannot import name 'keys'...
Read more >
'from selenium import webdriver' -> error message ...
Use Selenium Webdriver: 'from selenium import webdriver' -> error message = ModuleNotFoundError: No module named 'selenium'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found