Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot go past Part 2 for AWS #30

Open
ssmostagh opened this issue Aug 14, 2018 · 0 comments
Open

Cannot go past Part 2 for AWS #30

ssmostagh opened this issue Aug 14, 2018 · 0 comments

Comments

@ssmostagh
Copy link

Trying to follow instructions here:

I can get through part 2, but when I try to use the command jupyter notebook --generate-config I get the following error:

Traceback (most recent call last):
  File "/home/ubuntu/src/anaconda3/envs/fastai/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 10, in <module>
    import sqlite3
  File "/home/ubuntu/src/anaconda3/envs/fastai/lib/python3.6/sqlite3/__init__.py", line 23, in <module>
    from sqlite3.dbapi2 import *
  File "/home/ubuntu/src/anaconda3/envs/fastai/lib/python3.6/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: libncurses.so.6: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/src/anaconda3/envs/fastai/bin/jupyter-notebook", line 7, in <module>
    from notebook.notebookapp import main
  File "/home/ubuntu/src/anaconda3/envs/fastai/lib/python3.6/site-packages/notebook/notebookapp.py", line 85, in <module>
    from .services.sessions.sessionmanager import SessionManager
  File "/home/ubuntu/src/anaconda3/envs/fastai/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 13, in <module>
    from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'

After this I tried to instal pysqlite2 but it isn't available to install with the following output:

PackageNotFoundError: Packages missing in current channels:
            
  - pysqlite2

We have searched for the packages in the following channels:
            
  - https://conda.anaconda.org/soumith/linux-64
  - https://conda.anaconda.org/soumith/noarch
  - https://repo.continuum.io/pkgs/main/linux-64
  - https://repo.continuum.io/pkgs/main/noarch
  - https://repo.continuum.io/pkgs/free/linux-64
  - https://repo.continuum.io/pkgs/free/noarch
  - https://repo.continuum.io/pkgs/r/linux-64
  - https://repo.continuum.io/pkgs/r/noarch
  - https://repo.continuum.io/pkgs/pro/linux-64
  - https://repo.continuum.io/pkgs/pro/noarch

From here I tried to install sqlite3 and got the same error.

I decided to test the environment as well. However, I wasn't able to get all the tests to pass when I ran pytest tests and received the result of 49 tests passing, 1 failing, and 1 being skipped. The following message was displayed for the one I think failed:

_________________________________________________________ test_T __________________________________________________________

HalfTensorMock = <MagicMock name='HalfTensor' id='139635496833544'>

    @mock.patch("fastai.core.torch.cuda.HalfTensor")
    def test_T(HalfTensorMock):
      tensor = torch.ones([1, 2])
>     assert core.T(tensor) is tensor
E     assert \n 1  1\n[torch.cuda.FloatTensor of size 1x2 (GPU 0)]\n is \n 1  1\n[torch.FloatTensor of size 1x2]\n
E      +  where \n 1  1\n[torch.cuda.FloatTensor of size 1x2 (GPU 0)]\n = <function T at 0x7eff810ad1e0>(\n 1  1\n[torch.FloatTensor of size 1x2]\n)
E      +    where <function T at 0x7eff810ad1e0> = core.T
tests/test_core.py:38: AssertionError
==================================================== warnings summary =====================================================
tests/test_core.py::test_T
  /home/ubuntu/anaconda3/envs/fastai/lib/python3.6/site-packages/torch/cuda/__init__.py:97: UserWarning:
      Found GPU0 GRID K520 which is of cuda capability 3.0.
      PyTorch no longer supports this GPU because it is too old.

    warnings.warn(old_gpu_warn % (d, name, major, capability[1]))

-- Docs: http://doc.pytest.org/en/latest/warnings.html
=============================== 1 failed, 49 passed, 1 skipped, 1 warnings in 5.39 seconds ================================

I'm not sure how to proceed, this probably isn't a fast.ai error but it might need to be addressed in your code or instructions.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant