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
Scrapy and Great Expectations: Error - __provides__ #6307
Comments
Well, at least importing |
I was able to reproduce this issue by importing
|
Importing
So it must be related to |
I kept digging in Twisted code and the culprit seems to be the For some reason, the
|
@VMRuiz Thank you for looking into this! Do you think I should create an issue with zope? |
To be honest, I don't know if this is it a problem with Zope or a bad implementation by Twisted lib. @wRAR What do you think? As a workaround for Scrapy, maybe could import |
My first thought was also "I don't know if this is it a problem with Zope or a bad implementation by Twisted lib", as I'm not familiar with the zope.interface internals. |
If this works. What prevent You to just use this import order in Your task? |
Counthing great-expectations/great_expectations#9698 (comment) I think that this issue is not related to scrapy and it's root-cause is 100% in GreatExpectations codebase (it can be solved by adding simple try except block around line tha gave |
This comment was marked as duplicate.
This comment was marked as duplicate.
This was determined to be a great expectations - issue. |
the real question is why is the import modifying a dependency instead of making a duplicate |
Description
I am trying to use Scrapy and Great Expectations in the same virtual environment but there is an issue depending on the order I import the packages in.
I created an issue for Great Expectations with additional details.
They were mentioning it might be something with abc being monkey-patched.
Steps to Reproduce
This does work:
This does not work:
Error:
Expected behavior: Be able to use the packages together in the same virtual environment
Actual behavior: Cannot import the packages together
Reproduces how often: 100%
Versions
Scrapy 2.11.1
great-expectations 0.18.12
Additional context
Looking for a possible solution on what could be done. Thank you!
The text was updated successfully, but these errors were encountered: