-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ModuleNotFoundError in in_interactive_session #24714
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
ModuleNotFoundError in in_interactive_session #24714
Conversation
ModuleNotFoundError
in 'in_interactive_session' (:issue:
24690`)ModuleNotFoundError
in 'in_interactive_session' (:issue:24690
)
Codecov Report
@@ Coverage Diff @@
## master #24714 +/- ##
==========================================
- Coverage 92.38% 92.38% -0.01%
==========================================
Files 166 166
Lines 52311 52324 +13
==========================================
+ Hits 48328 48338 +10
- Misses 3983 3986 +3
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #24714 +/- ##
==========================================
- Coverage 92.38% 92.38% -0.01%
==========================================
Files 166 166
Lines 52321 52324 +3
==========================================
+ Hits 48338 48339 +1
- Misses 3983 3985 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still iffy on this. It's not clear to me what pylint is doing, and I'd prefer not to add workarounds if it's something that should be fixed upstream.
doc/source/whatsnew/v0.24.0.rst
Outdated
@@ -1748,6 +1748,7 @@ I/O | |||
- Bug in :meth:`DataFrame.to_stata`, :class:`pandas.io.stata.StataWriter` and :class:`pandas.io.stata.StataWriter117` where a exception would leave a partially written and invalid dta file (:issue:`23573`) | |||
- Bug in :meth:`DataFrame.to_stata` and :class:`pandas.io.stata.StataWriter117` that produced invalid files when using strLs with non-ASCII characters (:issue:`23573`) | |||
- Bug in :class:`HDFStore` that caused it to raise ``ValueError`` when reading a Dataframe in Python 3 from fixed format written in Python 2 (:issue:`24510`) | |||
- Bug in :func:`in_interactive_session` that caused it to raise ``ModuleNotFoundError`` (:issue:`24690`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think in_interactive_session
is part of the public API. This should be user-facing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I don't think we even need this note
ModuleNotFoundError
in 'in_interactive_session' (:issue:24690
)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just remove the note
doc/source/whatsnew/v0.24.0.rst
Outdated
@@ -1748,6 +1748,7 @@ I/O | |||
- Bug in :meth:`DataFrame.to_stata`, :class:`pandas.io.stata.StataWriter` and :class:`pandas.io.stata.StataWriter117` where a exception would leave a partially written and invalid dta file (:issue:`23573`) | |||
- Bug in :meth:`DataFrame.to_stata` and :class:`pandas.io.stata.StataWriter117` that produced invalid files when using strLs with non-ASCII characters (:issue:`23573`) | |||
- Bug in :class:`HDFStore` that caused it to raise ``ValueError`` when reading a Dataframe in Python 3 from fixed format written in Python 2 (:issue:`24510`) | |||
- Bug in :func:`in_interactive_session` that caused it to raise ``ModuleNotFoundError`` (:issue:`24690`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I don't think we even need this note
@REJack, remove the note |
thanks! |
Hmm I still wasn't sure we should merge this. Can we check with upstream to
see if their workaround can be applied for py2 only?
Or can we add a TODO to remove this when we drop Python2?
…On Sun, Jan 13, 2019 at 1:17 PM Jeff Reback ***@***.***> wrote:
thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#24714 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQHItXs_RGnK_SmfJFGyA1DImwWHaWrks5vC4ZWgaJpZM4Z6WTF>
.
|
Not sure I understand. The pylint issue is affecting both py2 and py3 I think. Or why do you think there’s a difference?
… On 13 Jan 2019, at 19:23, Tom Augspurger ***@***.***> wrote:
Hmm I still wasn't sure we should merge this. Can we check with upstream to
see if their workaround can be applied for py2 only?
Or can we add a TODO to remove this when we drop Python2?
On Sun, Jan 13, 2019 at 1:17 PM Jeff Reback ***@***.***>
wrote:
> thanks!
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#24714 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABQHItXs_RGnK_SmfJFGyA1DImwWHaWrks5vC4ZWgaJpZM4Z6WTF>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
From the linked bug report in
https://github.com/PyCQA/pylint/blob/master/pylint/lint.py#L153 to
https://bugs.python.org/issue10845,
it seems to be fixed in python 3.2. So it's possible that pylint could
apply that mock only for Python <=2.7
On Sun, Jan 13, 2019 at 1:30 PM Nicolas Dickreuter <[email protected]>
wrote:
… Not sure I understand. The pylint issue is affecting both py2 and py3 I
think. Or why do you think there’s a difference?
> On 13 Jan 2019, at 19:23, Tom Augspurger ***@***.***>
wrote:
>
> Hmm I still wasn't sure we should merge this. Can we check with upstream
to
> see if their workaround can be applied for py2 only?
>
> Or can we add a TODO to remove this when we drop Python2?
>
> On Sun, Jan 13, 2019 at 1:17 PM Jeff Reback ***@***.***>
> wrote:
>
> > thanks!
> >
> > —
> > You are receiving this because you commented.
> > Reply to this email directly, view it on GitHub
> > <
#24714 (comment)>,
> > or mute the thread
> > <
https://github.com/notifications/unsubscribe-auth/ABQHItXs_RGnK_SmfJFGyA1DImwWHaWrks5vC4ZWgaJpZM4Z6WTF
>
> > .
> >
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#24714 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQHIg2btBiGKv--kIUFnYfsh6Uie6Hxks5vC4lJgaJpZM4Z6WTF>
.
|
I see. I have submitted a PR for Pylint as well to remove the mock, but
their release cycle is very slow.
On Sun, 13 Jan 2019 at 19:44, Tom Augspurger <[email protected]>
wrote:
… From the linked bug report in
https://github.com/PyCQA/pylint/blob/master/pylint/lint.py#L153 to
https://bugs.python.org/issue10845,
it seems to be fixed in python 3.2. So it's possible that pylint could
apply that mock only for Python <=2.7
On Sun, Jan 13, 2019 at 1:30 PM Nicolas Dickreuter <
***@***.***>
wrote:
> Not sure I understand. The pylint issue is affecting both py2 and py3 I
> think. Or why do you think there’s a difference?
>
> > On 13 Jan 2019, at 19:23, Tom Augspurger ***@***.***>
> wrote:
> >
> > Hmm I still wasn't sure we should merge this. Can we check with
upstream
> to
> > see if their workaround can be applied for py2 only?
> >
> > Or can we add a TODO to remove this when we drop Python2?
> >
> > On Sun, Jan 13, 2019 at 1:17 PM Jeff Reback ***@***.***>
> > wrote:
> >
> > > thanks!
> > >
> > > —
> > > You are receiving this because you commented.
> > > Reply to this email directly, view it on GitHub
> > > <
> #24714 (comment)>,
> > > or mute the thread
> > > <
>
https://github.com/notifications/unsubscribe-auth/ABQHItXs_RGnK_SmfJFGyA1DImwWHaWrks5vC4ZWgaJpZM4Z6WTF
> >
> > > .
> > >
> > —
> > You are receiving this because you authored the thread.
> > Reply to this email directly, view it on GitHub, or mute the thread.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#24714 (comment)
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/ABQHIg2btBiGKv--kIUFnYfsh6Uie6Hxks5vC4lJgaJpZM4Z6WTF
>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24714 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABMrfjPrSFnwBJeIfI03VsFGSQp-tno4ks5vC4yOgaJpZM4Z6WTF>
.
|
git diff upstream/master -u -- "*.py" | flake8 --diff