Open maartenmarx opened 6 years ago
Bestaat de questions.json wel? Ik gok van niet. Daar moet ik eigenlijk een nette error voor maken!
On 21 Feb 2018, at 15:11, maartenmarx notifications@github.com<mailto:notifications@github.com> wrote:
Ik heb de questions module geinstalleerd in Python 3.6 , maar krijg toch deze foutmelding na import questions
De installatie van de questions module leek foutloos te gaan. Zie onder voor de feedback.
TypeError Traceback (most recent call last) in () ----> 1 import questions 2 questions.load()
~/anaconda/envs/python3.6/lib/python3.6/site-packages/questions/init.py in () 446 role = 'teacher' 447 else: --> 448 questions = json.load(open(questions_file)) 449 450 role = 'student'
TypeError: expected str, bytes or os.PathLike object, not NoneType
feedback na pip install questions
Collecting https://github.com/jessesar/uva-questions/archive/master.zip Downloading https://github.com/jessesar/uva-questions/archive/master.zip \ 20kB 230kB/s Collecting ipywidgets==7.0.5 (from questions==1.0) Using cached ipywidgets-7.0.5-py2.py3-none-any.whl Requirement already satisfied: jupyter==1.0.0 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from questions==1.0) Collecting ipython==5.1.0 (from questions==1.0) Using cached ipython-5.1.0-py3-none-any.whl Requirement already satisfied: requests in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from questions==1.0) Requirement already satisfied: nbformat>=4.2.0 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: traitlets>=4.3.1 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: widgetsnbextension~=3.0.0 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: ipykernel>=4.5.1 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: notebook in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jupyter==1.0.0->questions==1.0) Requirement already satisfied: qtconsole in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jupyter==1.0.0->questions==1.0) Requirement already satisfied: jupyter-console in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jupyter==1.0.0->questions==1.0) Requirement already satisfied: nbconvert in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jupyter==1.0.0->questions==1.0) Requirement already satisfied: pickleshare in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: decorator in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: simplegeneric>0.8 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: setuptools>=18.5 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: pexpect; sys_platform != "win32" in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: prompt-toolkit<2.0.0,>=1.0.3 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: pygments in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: appnope; sys_platform == "darwin" in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from requests->questions==1.0) Requirement already satisfied: idna<2.7,>=2.5 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from requests->questions==1.0) Requirement already satisfied: urllib3<1.23,>=1.21.1 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from requests->questions==1.0) Requirement already satisfied: certifi>=2017.4.17 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from requests->questions==1.0) Requirement already satisfied: ipython_genutils in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbformat>=4.2.0->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbformat>=4.2.0->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: jupyter_core in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbformat>=4.2.0->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: six in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from traitlets>=4.3.1->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: jupyter_client in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipykernel>=4.5.1->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: tornado>=4.0 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipykernel>=4.5.1->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: mistune>=0.7.4 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: jinja2 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: entrypoints>=0.2.2 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: bleach in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: pandocfilters>=1.4.1 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: testpath in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: wcwidth in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from prompt-toolkit<2.0.0,>=1.0.3->ipython==5.1.0->questions==1.0) Requirement already satisfied: pyzmq>=13 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jupyter_client->ipykernel>=4.5.1->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: python-dateutil>=2.1 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jupyter_client->ipykernel>=4.5.1->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: MarkupSafe>=0.23 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jinja2->nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: html5lib>=0.99999999 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from bleach->nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: webencodings in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from html5lib>=0.99999999->bleach->nbconvert->jupyter==1.0.0->questions==1.0) Installing collected packages: ipython, ipywidgets, questions Found existing installation: ipython 6.1.0 Uninstalling ipython-6.1.0: Successfully uninstalled ipython-6.1.0 Found existing installation: ipywidgets 7.0.0 Uninstalling ipywidgets-7.0.0: Successfully uninstalled ipywidgets-7.0.0 Running setup.py install for questions ... done Successfully installed ipython-5.1.0 ipywidgets-7.0.5 questions-1.0
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/jessesar/notebook-exam-cli/issues/1, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAGgOB6yT7QYkse3K4LWyJK6v1OaYDanks5tXCQkgaJpZM4SNstk.
That solved it! Cheers.
Maar als we dat in de metadata hebben zijn we er natuurlijk vanaf…..
Met vriendelijke groeten,
Maarten Marx
Maarten Marx maartenmarx@uva.nl www.maartenmarx.nl ILPS, Informatics Institute, Universiteit van Amsterdam Tel: +31 06 40016120
On Feb 21, 2018, at 15:13 PM, Jesse van der Sar notifications@github.com wrote:
Bestaat de questions.json wel? Ik gok van niet. Daar moet ik eigenlijk een nette error voor maken!
On 21 Feb 2018, at 15:11, maartenmarx notifications@github.com<mailto:notifications@github.com> wrote:
Ik heb de questions module geinstalleerd in Python 3.6 , maar krijg toch deze foutmelding na import questions
De installatie van de questions module leek foutloos te gaan. Zie onder voor de feedback.
TypeError Traceback (most recent call last) in () ----> 1 import questions 2 questions.load()
~/anaconda/envs/python3.6/lib/python3.6/site-packages/questions/init.py in () 446 role = 'teacher' 447 else: --> 448 questions = json.load(open(questions_file)) 449 450 role = 'student'
TypeError: expected str, bytes or os.PathLike object, not NoneType
feedback na pip install questions
Collecting https://github.com/jessesar/uva-questions/archive/master.zip Downloading https://github.com/jessesar/uva-questions/archive/master.zip \ 20kB 230kB/s Collecting ipywidgets==7.0.5 (from questions==1.0) Using cached ipywidgets-7.0.5-py2.py3-none-any.whl Requirement already satisfied: jupyter==1.0.0 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from questions==1.0) Collecting ipython==5.1.0 (from questions==1.0) Using cached ipython-5.1.0-py3-none-any.whl Requirement already satisfied: requests in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from questions==1.0) Requirement already satisfied: nbformat>=4.2.0 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: traitlets>=4.3.1 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: widgetsnbextension~=3.0.0 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: ipykernel>=4.5.1 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: notebook in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jupyter==1.0.0->questions==1.0) Requirement already satisfied: qtconsole in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jupyter==1.0.0->questions==1.0) Requirement already satisfied: jupyter-console in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jupyter==1.0.0->questions==1.0) Requirement already satisfied: nbconvert in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jupyter==1.0.0->questions==1.0) Requirement already satisfied: pickleshare in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: decorator in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: simplegeneric>0.8 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: setuptools>=18.5 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: pexpect; sys_platform != "win32" in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: prompt-toolkit<2.0.0,>=1.0.3 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: pygments in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: appnope; sys_platform == "darwin" in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipython==5.1.0->questions==1.0) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from requests->questions==1.0) Requirement already satisfied: idna<2.7,>=2.5 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from requests->questions==1.0) Requirement already satisfied: urllib3<1.23,>=1.21.1 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from requests->questions==1.0) Requirement already satisfied: certifi>=2017.4.17 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from requests->questions==1.0) Requirement already satisfied: ipython_genutils in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbformat>=4.2.0->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbformat>=4.2.0->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: jupyter_core in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbformat>=4.2.0->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: six in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from traitlets>=4.3.1->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: jupyter_client in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipykernel>=4.5.1->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: tornado>=4.0 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from ipykernel>=4.5.1->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: mistune>=0.7.4 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: jinja2 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: entrypoints>=0.2.2 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: bleach in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: pandocfilters>=1.4.1 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: testpath in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: wcwidth in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from prompt-toolkit<2.0.0,>=1.0.3->ipython==5.1.0->questions==1.0) Requirement already satisfied: pyzmq>=13 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jupyter_client->ipykernel>=4.5.1->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: python-dateutil>=2.1 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jupyter_client->ipykernel>=4.5.1->ipywidgets==7.0.5->questions==1.0) Requirement already satisfied: MarkupSafe>=0.23 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from jinja2->nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: html5lib>=0.99999999 in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from bleach->nbconvert->jupyter==1.0.0->questions==1.0) Requirement already satisfied: webencodings in /Users/admin/anaconda/envs/python3.6/lib/python3.6/site-packages (from html5lib>=0.99999999->bleach->nbconvert->jupyter==1.0.0->questions==1.0) Installing collected packages: ipython, ipywidgets, questions Found existing installation: ipython 6.1.0 Uninstalling ipython-6.1.0: Successfully uninstalled ipython-6.1.0 Found existing installation: ipywidgets 7.0.0 Uninstalling ipywidgets-7.0.0: Successfully uninstalled ipywidgets-7.0.0 Running setup.py install for questions ... done Successfully installed ipython-5.1.0 ipywidgets-7.0.5 questions-1.0
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/jessesar/notebook-exam-cli/issues/1, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAGgOB6yT7QYkse3K4LWyJK6v1OaYDanks5tXCQkgaJpZM4SNstk. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jessesar/notebook-exam-cli/issues/1#issuecomment-367338803, or mute the thread https://github.com/notifications/unsubscribe-auth/ADmVcNOfasHoZuWQxFboxp-ygc_VlTUaks5tXCShgaJpZM4SNstk.
Ik heb de questions module geinstalleerd in Python 3.6 , maar krijg toch deze foutmelding na import questions
De installatie van de questions module leek foutloos te gaan. Zie onder voor de feedback.
TypeError Traceback (most recent call last)