Jupyter Notebook - Attribute Error: 'module' object has no attribute 'F_OK'










1















Whenever I type in the command "jupyter notebook" it is giving me the attribute error listed above. I am running it through the Anaconda Prompt.



What is in the prompt window:



(base) C:Usersjj891w>jupyter notebook
Traceback (most recent call last):
File "C:Usersjj891wAppDataLocalContinuumanaconda2Scriptsjupyter-notebo
ok-script.py", line 10, in <module>
sys.exit(main())
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesjupy
ter_coreapplication.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagestrai
tletsconfigapplication.py", line 657, in launch_instance
app.initialize(argv)
File "<decorator-gen-7>", line 2, in initialize
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagestrai
tletsconfigapplication.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesnote
booknotebookapp.py", line 1630, in initialize
self.init_terminals()
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesnote
booknotebookapp.py", line 1459, in init_terminals
from .terminal import initialize
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesnote
bookterminal__init__.py", line 3, in <module>
import terminado
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesterm
inado__init__.py", line 8, in <module>
from .management import (TermManagerBase, SingleTermManager,
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesterm
inadomanagement.py", line 25, in <module>
from winpty import PtyProcess as PtyProcessUnicode
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packageswinp
ty__init__.py", line 11, in <module>
from .ptyprocess import PtyProcess
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packageswinp
typtyprocess.py", line 17, in <module>
from backports.shutil_which import which
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesback
portsshutil_which.py", line 12, in <module>
def backport_which(cmd, mode=os.F_OK | os.X_OK, path=None):
AttributeError: 'module' object has no attribute 'F_OK'









share|improve this question






















  • See this issue

    – roganjosh
    Nov 15 '18 at 16:37











  • I tried following the directions on this post but it did not work for me. I'm still getting the same error after uninstalling/re-installing the prompt_toolkit.

    – Jake_Jimenez
    Nov 27 '18 at 15:36
















1















Whenever I type in the command "jupyter notebook" it is giving me the attribute error listed above. I am running it through the Anaconda Prompt.



What is in the prompt window:



(base) C:Usersjj891w>jupyter notebook
Traceback (most recent call last):
File "C:Usersjj891wAppDataLocalContinuumanaconda2Scriptsjupyter-notebo
ok-script.py", line 10, in <module>
sys.exit(main())
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesjupy
ter_coreapplication.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagestrai
tletsconfigapplication.py", line 657, in launch_instance
app.initialize(argv)
File "<decorator-gen-7>", line 2, in initialize
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagestrai
tletsconfigapplication.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesnote
booknotebookapp.py", line 1630, in initialize
self.init_terminals()
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesnote
booknotebookapp.py", line 1459, in init_terminals
from .terminal import initialize
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesnote
bookterminal__init__.py", line 3, in <module>
import terminado
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesterm
inado__init__.py", line 8, in <module>
from .management import (TermManagerBase, SingleTermManager,
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesterm
inadomanagement.py", line 25, in <module>
from winpty import PtyProcess as PtyProcessUnicode
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packageswinp
ty__init__.py", line 11, in <module>
from .ptyprocess import PtyProcess
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packageswinp
typtyprocess.py", line 17, in <module>
from backports.shutil_which import which
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesback
portsshutil_which.py", line 12, in <module>
def backport_which(cmd, mode=os.F_OK | os.X_OK, path=None):
AttributeError: 'module' object has no attribute 'F_OK'









share|improve this question






















  • See this issue

    – roganjosh
    Nov 15 '18 at 16:37











  • I tried following the directions on this post but it did not work for me. I'm still getting the same error after uninstalling/re-installing the prompt_toolkit.

    – Jake_Jimenez
    Nov 27 '18 at 15:36














1












1








1








Whenever I type in the command "jupyter notebook" it is giving me the attribute error listed above. I am running it through the Anaconda Prompt.



What is in the prompt window:



(base) C:Usersjj891w>jupyter notebook
Traceback (most recent call last):
File "C:Usersjj891wAppDataLocalContinuumanaconda2Scriptsjupyter-notebo
ok-script.py", line 10, in <module>
sys.exit(main())
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesjupy
ter_coreapplication.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagestrai
tletsconfigapplication.py", line 657, in launch_instance
app.initialize(argv)
File "<decorator-gen-7>", line 2, in initialize
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagestrai
tletsconfigapplication.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesnote
booknotebookapp.py", line 1630, in initialize
self.init_terminals()
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesnote
booknotebookapp.py", line 1459, in init_terminals
from .terminal import initialize
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesnote
bookterminal__init__.py", line 3, in <module>
import terminado
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesterm
inado__init__.py", line 8, in <module>
from .management import (TermManagerBase, SingleTermManager,
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesterm
inadomanagement.py", line 25, in <module>
from winpty import PtyProcess as PtyProcessUnicode
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packageswinp
ty__init__.py", line 11, in <module>
from .ptyprocess import PtyProcess
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packageswinp
typtyprocess.py", line 17, in <module>
from backports.shutil_which import which
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesback
portsshutil_which.py", line 12, in <module>
def backport_which(cmd, mode=os.F_OK | os.X_OK, path=None):
AttributeError: 'module' object has no attribute 'F_OK'









share|improve this question














Whenever I type in the command "jupyter notebook" it is giving me the attribute error listed above. I am running it through the Anaconda Prompt.



What is in the prompt window:



(base) C:Usersjj891w>jupyter notebook
Traceback (most recent call last):
File "C:Usersjj891wAppDataLocalContinuumanaconda2Scriptsjupyter-notebo
ok-script.py", line 10, in <module>
sys.exit(main())
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesjupy
ter_coreapplication.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagestrai
tletsconfigapplication.py", line 657, in launch_instance
app.initialize(argv)
File "<decorator-gen-7>", line 2, in initialize
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagestrai
tletsconfigapplication.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesnote
booknotebookapp.py", line 1630, in initialize
self.init_terminals()
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesnote
booknotebookapp.py", line 1459, in init_terminals
from .terminal import initialize
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesnote
bookterminal__init__.py", line 3, in <module>
import terminado
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesterm
inado__init__.py", line 8, in <module>
from .management import (TermManagerBase, SingleTermManager,
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesterm
inadomanagement.py", line 25, in <module>
from winpty import PtyProcess as PtyProcessUnicode
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packageswinp
ty__init__.py", line 11, in <module>
from .ptyprocess import PtyProcess
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packageswinp
typtyprocess.py", line 17, in <module>
from backports.shutil_which import which
File "C:Usersjj891wAppDataLocalContinuumanaconda2libsite-packagesback
portsshutil_which.py", line 12, in <module>
def backport_which(cmd, mode=os.F_OK | os.X_OK, path=None):
AttributeError: 'module' object has no attribute 'F_OK'






python anaconda jupyter-notebook jupyter






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 15 '18 at 16:30









Jake_JimenezJake_Jimenez

62




62












  • See this issue

    – roganjosh
    Nov 15 '18 at 16:37











  • I tried following the directions on this post but it did not work for me. I'm still getting the same error after uninstalling/re-installing the prompt_toolkit.

    – Jake_Jimenez
    Nov 27 '18 at 15:36


















  • See this issue

    – roganjosh
    Nov 15 '18 at 16:37











  • I tried following the directions on this post but it did not work for me. I'm still getting the same error after uninstalling/re-installing the prompt_toolkit.

    – Jake_Jimenez
    Nov 27 '18 at 15:36

















See this issue

– roganjosh
Nov 15 '18 at 16:37





See this issue

– roganjosh
Nov 15 '18 at 16:37













I tried following the directions on this post but it did not work for me. I'm still getting the same error after uninstalling/re-installing the prompt_toolkit.

– Jake_Jimenez
Nov 27 '18 at 15:36






I tried following the directions on this post but it did not work for me. I'm still getting the same error after uninstalling/re-installing the prompt_toolkit.

– Jake_Jimenez
Nov 27 '18 at 15:36













0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53323898%2fjupyter-notebook-attribute-error-module-object-has-no-attribute-f-ok%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53323898%2fjupyter-notebook-attribute-error-module-object-has-no-attribute-f-ok%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

Museum of Modern and Contemporary Art of Trento and Rovereto