Requirements.txt versioning? Jupyter notebook errors

I want to say I am enjoying the course immensely, and appreciate the work the community provides.

I apologize for all the questions with error messages but I’ve installed and reinstalled python over 30 times now trying to get everything to work on a windows10 laptop with python 388
whether its Anaconda or python.org and a venv.

Here are my latest errors … which is extremely strange because I swear last week jupyter was working perfectly.

(mflix)
peter@XPS13 MINGW64 ~/Desktop/M220P/mflix-python/notebooks
$ jupyter notebook
Traceback (most recent call last):
  File "C:\Users\peter\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\peter\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\peter\Desktop\M220P\mflix-python\mflix\Scripts\jupyter-notebook.EXE\__main__.py", line 7, in <module>
  File "c:\users\peter\desktop\m220p\mflix-python\mflix\lib\site-packages\jupyter_core\application.py", line 266, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "c:\users\peter\desktop\m220p\mflix-python\mflix\lib\site-packages\traitlets\config\application.py", line 663, in launch_instance
    app.initialize(argv)
  File "<c:\users\peter\desktop\m220p\mflix-python\mflix\lib\site-packages\decorator.py:decorator-gen-7>", line 2, in initialize
  File "c:\users\peter\desktop\m220p\mflix-python\mflix\lib\site-packages\traitlets\config\application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "c:\users\peter\desktop\m220p\mflix-python\mflix\lib\site-packages\notebook\notebookapp.py", line 1679, in initialize
    self.init_webapp()
  File "c:\users\peter\desktop\m220p\mflix-python\mflix\lib\site-packages\notebook\notebookapp.py", line 1442, in init_webapp
    self.http_server.listen(port, self.ip)
  File "c:\users\peter\desktop\m220p\mflix-python\mflix\lib\site-packages\tornado\tcpserver.py", line 152, in listen
    self.add_sockets(sockets)
  File "c:\users\peter\desktop\m220p\mflix-python\mflix\lib\site-packages\tornado\tcpserver.py", line 165, in add_sockets
    self._handlers[sock.fileno()] = add_accept_handler(
  File "c:\users\peter\desktop\m220p\mflix-python\mflix\lib\site-packages\tornado\netutil.py", line 279, in add_accept_handler
    io_loop.add_handler(sock, accept_handler, IOLoop.READ)
  File "c:\users\peter\desktop\m220p\mflix-python\mflix\lib\site-packages\tornado\platform\asyncio.py", line 99, in add_handler
    self.asyncio_loop.add_reader(fd, self._handle_events, fd, IOLoop.READ)
  File "C:\Users\peter\Python38\lib\asyncio\events.py", line 501, in add_reader
    raise NotImplementedError
NotImplementedError
(mflix)

again any help is appreciated.
btw I did get everything to work perfectly inside a Manjaro virtual machine rolling my own Python3.8.8.

Troubleshooting Python on Windows10/x64 Python3.8.8 users – try using this “my” version of requiremnts.txt pasted below:

Working as of Sept 19, 2021, on a Ryzen 4 Laptop with Windows 10 x64 and a Dell XPS with 8th gen Intel also Windows10/x64

Files used:
mflix-python.zip (M220P/2021_August_31)
git-scm
Python 3.8.8 x64 for windows.

First upgrade pip from within virtual env:
(mflix)$ python -m pip install --upgrade pip

Then exit your terminal emulator and restart it. Go back into your virtual environment. In my case:
$ source mflix/Scripts/activate

Then:
(mflix) $ pip install -r new-requirements.txt (from below)

One more time exit the terminal emulator and re-enter the same environment.

Works to my satisfaction, hopefully, yours too.

appnope==0.1.0
asyncio==3.4.3
atomicwrites==1.4.0
attrs==21.2.0
backcall==0.1.0
bcrypt==3.1.7
bleach==3.1.0
cffi==1.13.1
Click==7.0
colorama==0.4.4
decorator==4.4.0
defusedxml==0.6.0
dnspython==1.15.0
entrypoints==0.3
Faker==0.8.13
flake8==3.7.8
Flask==0.12.4
Flask-Bcrypt==0.7.1
Flask-Cors==3.0.3
Flask-JWT-Extended==3.7.0
Flask-Login==0.4.0
importlib-metadata==0.23
iniconfig==1.1.1
ipykernel==5.1.3
ipython==7.8.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
itsdangerous==1.1.0
jedi==0.15.1
Jinja2==2.10.3
jsonschema==3.1.1
jupyter==1.0.0
jupyter-client==5.3.1
jupyter-console==6.0.0
jupyter-core==4.4.0
MarkupSafe==1.1.1
mccabe==0.6.1
mistune==0.8.4
more-itertools==7.2.0
nbconvert==5.6.0
nbformat==4.4.0
notebook==6.0.1
packaging==21.0
pandocfilters==1.4.2
parso==0.5.1
pexpect==4.7.0
pickleshare==0.7.5
pip==21.2.4
pluggy==1.0.0
prometheus-client==0.7.1
prompt-toolkit==2.0.10
ptyprocess==0.6.0
py==1.10.0
pycodestyle==2.5.0
pycparser==2.19
pyflakes==2.1.1
Pygments==2.4.2
PyJWT==1.7.1
pymongo==3.7.2
pyparsing==2.4.7
pyrsistent==0.15.4
pytest==6.2.5
pytest-flask==0.11.0
python-dateutil==2.8.0
pywinpty==1.1.4
pyzmq==18.1.1
qtconsole==4.5.5
Send2Trash==1.5.0
setuptools==49.2.1
six==1.12.0
terminado==0.8.2
testpath==0.4.2
text-unidecode==1.2
toml==0.10.2
tornado==6.1
traitlets==4.3.3
wcwidth==0.1.7
webencodings==0.5.1
Werkzeug==0.16.0
widgetsnbextension==3.5.1
zipp==0.6.0

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.