After coding to set up virtual environment by typing, per instruction included in curriculum, 'cd dsc-1-01-05-setting-up-environment', the output lists several scripts that are installed in a different directory which in not on PATH. The output suggests considering adding the various directories to PATH. Instruction for this is not included in the curriculum.
It is this output that leads me to believe that this is causing the PYTEST not to run and produce the output and error included in the curriculum; however, another possible reason (which is only a guess) is that the current version of the Python download on Anaconda is no longer 3.6 and is now 3.7.
=================================== ERRORS ====================================
_ ERROR collecting pytests/test_index.py __
ImportError while importing test module 'C:\Users\lizak\dsc-1-01-05-setting-up-environment\pytests\test_index.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
..\Anaconda3\envs\learn-env\lib\site-packages\ipynb\fs\full__init__.py:29: in get_code
nb = json.load(f)
..\Anaconda3\envs\learn-env\lib\json__init__.py:296: in load
return loads(fp.read(),
..\Anaconda3\envs\learn-env\lib\encodings\cp1252.py:23: in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
E UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 324: character maps to
During handling of the above exception, another exception occurred:
pytests\test_index.py:2: in
from ipynb.fs.full.index import x
..\Anaconda3\envs\learn-env\lib\site-packages\ipynb\fs\full__init__.py:34: in get_code
fn=fullname
E ImportError: Could not import C:\Users\lizak\dsc-1-01-05-setting-up-environment\index.ipynb for ipynb.fs.full.index: not a valid ipynb file
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!
=========================== 1 error in 2.12 seconds ===========================
(learn-env)
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master)
$ pip install ipynb
Requirement already satisfied: ipynb in c:\users\lizak\anaconda3\envs\learn-env\lib\site-packages (0.5.1)
pexpect 4.6.0 requires ptyprocess>=0.5, which is not installed.
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
(learn-env)
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master)
$ python -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
pexpect 4.6.0 requires ptyprocess>=0.5, which is not installed.
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Successfully uninstalled pip-10.0.1
Successfully installed pip-18.1
(learn-env)
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master)
$ python -m pytest -x
============================= test session starts =============================
platform win32 -- Python 3.6.6, pytest-3.7.0, py-1.7.0, pluggy-0.8.0
rootdir: C:\Users\lizak\dsc-1-01-05-setting-up-environment, inifile:
collected 0 items / 1 errors
=================================== ERRORS ====================================
_ ERROR collecting pytests/test_index.py __
ImportError while importing test module 'C:\Users\lizak\dsc-1-01-05-setting-up-environment\pytests\test_index.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
..\Anaconda3\envs\learn-env\lib\site-packages\ipynb\fs\full__init__.py:29: in get_code
nb = json.load(f)
..\Anaconda3\envs\learn-env\lib\json__init__.py:296: in load
return loads(fp.read(),
..\Anaconda3\envs\learn-env\lib\encodings\cp1252.py:23: in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
E UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 324: character maps to
During handling of the above exception, another exception occurred:
pytests\test_index.py:2: in
from ipynb.fs.full.index import x
..\Anaconda3\envs\learn-env\lib\site-packages\ipynb\fs\full__init__.py:34: in get_code
fn=fullname
E ImportError: Could not import C:\Users\lizak\dsc-1-01-05-setting-up-environment\index.ipynb for ipynb.fs.full.index: not a valid ipynb file
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.42 seconds ===========================
(learn-env)
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master)
$ pip install obscure
Requirement already satisfied: obscure in c:\users\lizak\anaconda3\envs\learn-env\lib\site-packages (1.0.1)
(learn-env)
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master)
$ ^C
(learn-env)
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master)
$ git config --global user.name
After coding to set up virtual environment by typing, per instruction included in curriculum, 'cd dsc-1-01-05-setting-up-environment', the output lists several scripts that are installed in a different directory which in not on PATH. The output suggests considering adding the various directories to PATH. Instruction for this is not included in the curriculum.
It is this output that leads me to believe that this is causing the PYTEST not to run and produce the output and error included in the curriculum; however, another possible reason (which is only a guess) is that the current version of the Python download on Anaconda is no longer 3.6 and is now 3.7.
I have pasted my output below. Please advise.
lizak@LAPTOP-Q3QO8CRP MINGW64 ~ $ pwd /c/Users/lizak
lizak@LAPTOP-Q3QO8CRP MINGW64 ~ $
git clone https://github.com/learn-co-curriculum/dsc-1-01-05-setting-up-environment
fatal: destination path 'dsc-1-01-05-setting-up-environment' already exists andis not an empty directory.lizak@LAPTOP-Q3QO8CRP MINGW64 ~ $ 'cd dsc-1-01-05-setting-up-environment' bash: cd dsc-1-01-05-setting-up-environment: command not found
lizak@LAPTOP-Q3QO8CRP MINGW64 ~ $ cd dsc-1-05-setting-up-environment bash: cd: dsc-1-05-setting-up-environment: No such file or directory
lizak@LAPTOP-Q3QO8CRP MINGW64 ~ $ cd dsc-1-01-05-setting-up-environment
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master) $ conda env create -f windows.yml Solving environment: ...working... done
Downloading and Extracting Packages wincertstore-0.2 | 13 KB | ########## | 100% wcwidth-0.1.7 | 25 KB | ########## | 100% pip-10.0.1 | 1.8 MB | ########## | 100% chardet-3.0.4 | 210 KB | ########## | 100% jsonschema-2.6.0 | 104 KB | ########## | 100% tk-8.6.7 | 3.5 MB | ########## | 100% scikit-learn-0.20.0 | 5.2 MB | ########## | 100% pytz-2018.5 | 232 KB | ########## | 100% cython-0.28.5 | 2.7 MB | ########## | 100% asn1crypto-0.24.0 | 155 KB | ########## | 100% numpy-1.15.0 | 36 KB | ########## | 100% mkl_fft-1.0.4 | 120 KB | ########## | 100% scipy-1.1.0 | 13.5 MB | ########## | 100% mkl-2018.0.3 | 178.1 MB | ########## | 100% certifi-2018.8.13 | 139 KB | ########## | 100% backcall-0.1.0 | 20 KB | ########## | 100% requests-2.19.1 | 96 KB | ########## | 100% idna-2.7 | 132 KB | ########## | 100% py-xgboost-0.72 | 61 KB | ########## | 100% retrying-1.3.3 | 15 KB | ########## | 100% libxgboost-0.72 | 3.7 MB | ########## | 100% nbformat-4.4.0 | 157 KB | ########## | 100% setuptools-40.0.0 | 571 KB | ########## | 100% traitlets-4.3.2 | 131 KB | ########## | 100% decorator-4.3.0 | 16 KB | ########## | 100% wheel-0.31.1 | 81 KB | ########## | 100% simplegeneric-0.8.1 | 10 KB | ########## | 100% pexpect-4.6.0 | 77 KB | ########## | 100% ipython_genutils-0.2 | 39 KB | ########## | 100% pickleshare-0.7.4 | 12 KB | ########## | 100% cryptography-vectors | 30.4 MB | ########## | 100% numpy-base-1.15.0 | 3.9 MB | ########## | 100% six-1.11.0 | 21 KB | ########## | 100% jedi-0.12.1 | 225 KB | ########## | 100% _py-xgboost-mutex-2. | 9 KB | ########## | 100% pysocks-1.6.8 | 23 KB | ########## | 100% jupyter_core-4.4.0 | 85 KB | ########## | 100% win_inet_pton-1.0.1 | 6 KB | ########## | 100% prompt_toolkit-1.0.1 | 338 KB | ########## | 100% pyopenssl-18.0.0 | 83 KB | ########## | 100% colorama-0.4.0 | 24 KB | ########## | 100% urllib3-1.23 | 152 KB | ########## | 100% pygments-2.2.0 | 1.4 MB | ########## | 100% cryptography-2.3.1 | 509 KB | ########## | 100% python-3.6.6 | 21.6 MB | ########## | 100% cffi-1.11.5 | 213 KB | ########## | 100% python-dateutil-2.7. | 276 KB | ########## | 100% parso-0.3.1 | 115 KB | ########## | 100% ipython-6.5.0 | 1.1 MB | ########## | 100% mkl_random-1.0.1 | 268 KB | ########## | 100% intel-openmp-2018.0. | 1.7 MB | ########## | 100% pandas-0.23.4 | 8.6 MB | ########## | 100% plotly-3.1.0 | 27.4 MB | ########## | 100% xlrd-1.1.0 | 194 KB | ########## | 100% pycparser-2.18 | 169 KB | ########## | 100% xz-5.2.4 | 812 KB | ########## | 100% Preparing transaction: ...working... done Verifying transaction: ...working... done Executing transaction: ...working... done Collecting ipynb==0.5.1 (from -r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 1)) Using cached https://files.pythonhosted.org/packages/31/42/4c0bbb66390e3a68e04ebf134c8d074a00c18b5882293f8ace5f7497fbf0/ipynb-0.5.1-py3-none-any.whl Collecting pytest==3.7 (from -r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/9e/a1/8166a56ce9d89fdd9efcae5601e71758029d90e5644e0b7b6eda07e67c35/pytest-3.7.0-py2.py3-none-any.whl Collecting tensorflow==1.6 (from -r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/56/7d/a0e3ae33e8034be8e7d6b99a7f512c6e71b2180603fc3e0cfb6047b7374f/tensorflow-1.6.0-cp36-cp36m-win_amd64.whl Collecting keras==2.2.1 (from -r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 4)) Using cached https://files.pythonhosted.org/packages/62/51/0192489a2614e8c6a22de860e43221e566f4bbd44a047ff48c2fdbc59373/Keras-2.2.1-py2.py3-none-any.whl Collecting obscure==1.0.1 (from -r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 5)) Using cached https://files.pythonhosted.org/packages/92/97/517442fc79453b409e5c1f145f84bf29d96af6b0551812a8027419de1336/obscure-1.0.1-py3-none-any.whl Requirement already satisfied: six>=1.10.0 in c:\users\lizak\anaconda3\envs\learn-env\lib\site-packages (from pytest==3.7->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 2)) (1.11.0) Collecting more-itertools>=4.0.0 (from pytest==3.7->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/79/b1/eace304ef66bd7d3d8b2f78cc374b73ca03bc53664d78151e9df3b3996cc/more_itertools-4.3.0-py3-none-any.whl Requirement already satisfied: setuptools in c:\users\lizak\anaconda3\envs\learn-env\lib\site-packages (from pytest==3.7->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 2)) (40.0.0) Requirement already satisfied: colorama; sys_platform == "win32" in c:\users\lizak\anaconda3\envs\learn-env\lib\site-packages (from pytest==3.7->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 2)) (0.4.0) Collecting py>=1.5.0 (from pytest==3.7->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/3e/c7/3da685ef117d42ac8d71af525208759742dd235f8094221fdaafcd3dba8f/py-1.7.0-py2.py3-none-any.whl Collecting pluggy>=0.7 (from pytest==3.7->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/1c/e7/017c262070af41fe251401cb0d0e1b7c38f656da634cd0c15604f1f30864/pluggy-0.8.0-py2.py3-none-any.whl Collecting atomicwrites>=1.0 (from pytest==3.7->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/3a/9a/9d878f8d885706e2530402de6417141129a943802c084238914fa6798d97/atomicwrites-1.2.1-py2.py3-none-any.whl Collecting attrs>=17.4.0 (from pytest==3.7->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/3a/e1/5f9023cc983f1a628a8c2fd051ad19e76ff7b142a0faf329336f9a62a514/attrs-18.2.0-py2.py3-none-any.whl Collecting absl-py>=0.1.6 (from tensorflow==1.6->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) Requirement already satisfied: numpy>=1.13.3 in c:\users\lizak\anaconda3\envs\learn-env\lib\site-packages (from tensorflow==1.6->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) (1.15.0) Collecting astor>=0.6.0 (from tensorflow==1.6->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/35/6b/11530768cac581a12952a2aad00e1526b89d242d0b9f59534ef6e6a1752f/astor-0.7.1-py2.py3-none-any.whl Collecting grpcio>=1.8.6 (from tensorflow==1.6->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/f0/90/520757ccafb14f03e8e46a54bacd45f5f9cca6b96b58b83b66a272f059df/grpcio-1.16.0-cp36-cp36m-win_amd64.whl Collecting termcolor>=1.1.0 (from tensorflow==1.6->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) Collecting tensorboard<1.7.0,>=1.6.0 (from tensorflow==1.6->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/b0/67/a8c91665987d359211dcdca5c8b2a7c1e0876eb0702a4383c1e4ff76228d/tensorboard-1.6.0-py3-none-any.whl Requirement already satisfied: wheel>=0.26 in c:\users\lizak\anaconda3\envs\learn-env\lib\site-packages (from tensorflow==1.6->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) (0.31.1) Collecting protobuf>=3.4.0 (from tensorflow==1.6->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/e8/df/d606d07cff0fc8d22abcc54006c0247002d11a7f2d218eb008d48e76851d/protobuf-3.6.1-cp36-cp36m-win_amd64.whl Collecting gast>=0.2.0 (from tensorflow==1.6->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) Collecting h5py (from keras==2.2.1->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 4)) Using cached https://files.pythonhosted.org/packages/12/6c/00c38c5ce9322f1cc421d93217c44739646a106c61859622eccc297a5c05/h5py-2.8.0-cp36-cp36m-win_amd64.whl Collecting keras-preprocessing==1.0.2 (from keras==2.2.1->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 4)) Using cached https://files.pythonhosted.org/packages/71/26/1e778ebd737032749824d5cba7dbd3b0cf9234b87ab5ec79f5f0403ca7e9/Keras_Preprocessing-1.0.2-py2.py3-none-any.whl Requirement already satisfied: scipy>=0.14 in c:\users\lizak\anaconda3\envs\learn-env\lib\site-packages (from keras==2.2.1->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 4)) (1.1.0) Collecting keras-applications==1.0.4 (from keras==2.2.1->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 4)) Using cached https://files.pythonhosted.org/packages/54/90/8f327deaa37a71caddb59b7b4aaa9d4b3e90c0e76f8c2d1572005278ddc5/Keras_Applications-1.0.4-py2.py3-none-any.whl Collecting pyyaml (from keras==2.2.1->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 4)) Using cached https://files.pythonhosted.org/packages/4f/ca/5fad249c5032270540c24d2189b0ddf1396aac49b0bdc548162edcf14131/PyYAML-3.13-cp36-cp36m-win_amd64.whl Collecting werkzeug>=0.11.10 (from tensorboard<1.7.0,>=1.6.0->tensorflow==1.6->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl Collecting html5lib==0.9999999 (from tensorboard<1.7.0,>=1.6.0->tensorflow==1.6->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) Collecting bleach==1.5.0 (from tensorboard<1.7.0,>=1.6.0->tensorflow==1.6->-r C:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/33/70/86c5fec937ea4964184d4d6c4f0b9551564f821e1c3575907639036d9b90/bleach-1.5.0-py2.py3-none-any.whl Collecting markdown>=2.6.8 (from tensorboard<1.7.0,>=1.6.0->tensorflow==1.6->-rC:\Users\lizak\dsc-1-01-05-setting-up-environment\condaenv.66d6wr1p.requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/7a/6b/5600647404ba15545ec37d2f7f58844d690baf2f81f3a60b862e48f29287/Markdown-3.0.1-py2.py3-none-any.whl pexpect 4.6.0 requires ptyprocess>=0.5, which is not installed. Installing collected packages: ipynb, more-itertools, py, pluggy, atomicwrites,attrs, pytest, absl-py, astor, grpcio, termcolor, werkzeug, html5lib, bleach, markdown, protobuf, tensorboard, gast, tensorflow, h5py, keras-preprocessing, keras-applications, pyyaml, keras, obscure The scripts py.test.exe and pytest.exe are installed in 'C:\Users\lizak\Anaconda3\envs\learn-env\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. The script markdown_py.exe is installed in 'C:\Users\lizak\Anaconda3\envs\learn-env\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. The script tensorboard.exe is installed in 'C:\Users\lizak\Anaconda3\envs\learn-env\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. The scripts freeze_graph.exe, saved_model_cli.exe, tensorboard.exe, toco.exe and toco_from_protos.exe are installed in 'C:\Users\lizak\Anaconda3\envs\learn-env\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed absl-py-0.6.1 astor-0.7.1 atomicwrites-1.2.1 attrs-18.2.0 bleach-1.5.0 gast-0.2.0 grpcio-1.16.0 h5py-2.8.0 html5lib-0.9999999 ipynb-0.5.1 keras-2.2.1 keras-applications-1.0.4 keras-preprocessing-1.0.2 markdown-3.0.1 more-itertools-4.3.0 obscure-1.0.1 pluggy-0.8.0 protobuf-3.6.1 py-1.7.0 pytest-3.7.0 pyyaml-3.13 tensorboard-1.6.0 tensorflow-1.6.0 termcolor-1.1.0 werkzeug-0.14.1 #
To activate this environment, use:
> activate learn-env
#
To deactivate an active environment, use:
> deactivate
#
* for power-users using bash, you must source
#
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master) $ source activate learn-env (learn-env) lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master) $ conda info --envs
conda environments:
# base C:\Users\lizak\Anaconda3 learn-env * C:\Users\lizak\Anaconda3\envs\learn-env
(learn-env) lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master) $ python -m pytest -x ============================= test session starts ============================= platform win32 -- Python 3.6.6, pytest-3.7.0, py-1.7.0, pluggy-0.8.0 rootdir: C:\Users\lizak\dsc-1-01-05-setting-up-environment, inifile: collected 0 items / 1 errors
=================================== ERRORS ==================================== _ ERROR collecting pytests/test_index.py __ ImportError while importing test module 'C:\Users\lizak\dsc-1-01-05-setting-up-environment\pytests\test_index.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: ..\Anaconda3\envs\learn-env\lib\site-packages\ipynb\fs\full__init__.py:29: in get_code nb = json.load(f) ..\Anaconda3\envs\learn-env\lib\json__init__.py:296: in load return loads(fp.read(), ..\Anaconda3\envs\learn-env\lib\encodings\cp1252.py:23: in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] E UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 324: character maps to
During handling of the above exception, another exception occurred: pytests\test_index.py:2: in
from ipynb.fs.full.index import x
..\Anaconda3\envs\learn-env\lib\site-packages\ipynb\fs\full__init__.py:34: in get_code
fn=fullname
E ImportError: Could not import C:\Users\lizak\dsc-1-01-05-setting-up-environment\index.ipynb for ipynb.fs.full.index: not a valid ipynb file
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!
=========================== 1 error in 2.12 seconds ===========================
(learn-env)
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master)
$ pip install ipynb
Requirement already satisfied: ipynb in c:\users\lizak\anaconda3\envs\learn-env\lib\site-packages (0.5.1)
pexpect 4.6.0 requires ptyprocess>=0.5, which is not installed.
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
(learn-env)
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master)
$ python -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
pexpect 4.6.0 requires ptyprocess>=0.5, which is not installed.
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Successfully uninstalled pip-10.0.1
Successfully installed pip-18.1
(learn-env)
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master)
$ python -m pytest -x
============================= test session starts =============================
platform win32 -- Python 3.6.6, pytest-3.7.0, py-1.7.0, pluggy-0.8.0
rootdir: C:\Users\lizak\dsc-1-01-05-setting-up-environment, inifile:
collected 0 items / 1 errors
=================================== ERRORS ==================================== _ ERROR collecting pytests/test_index.py __ ImportError while importing test module 'C:\Users\lizak\dsc-1-01-05-setting-up-environment\pytests\test_index.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: ..\Anaconda3\envs\learn-env\lib\site-packages\ipynb\fs\full__init__.py:29: in get_code nb = json.load(f) ..\Anaconda3\envs\learn-env\lib\json__init__.py:296: in load return loads(fp.read(), ..\Anaconda3\envs\learn-env\lib\encodings\cp1252.py:23: in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] E UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 324: character maps to
During handling of the above exception, another exception occurred: pytests\test_index.py:2: in
from ipynb.fs.full.index import x
..\Anaconda3\envs\learn-env\lib\site-packages\ipynb\fs\full__init__.py:34: in get_code
fn=fullname
E ImportError: Could not import C:\Users\lizak\dsc-1-01-05-setting-up-environment\index.ipynb for ipynb.fs.full.index: not a valid ipynb file
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.42 seconds ===========================
(learn-env)
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master)
$ pip install obscure
Requirement already satisfied: obscure in c:\users\lizak\anaconda3\envs\learn-env\lib\site-packages (1.0.1)
(learn-env)
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master)
$ ^C
(learn-env)
lizak@LAPTOP-Q3QO8CRP MINGW64 ~/dsc-1-01-05-setting-up-environment (master)
$ git config --global user.name