error downloading cueing data during doc build
Traceback (most recent call last):
File "/Users/kylemathewson/eeg-notebooks/venv/lib/python3.7/site-packages/sphinx_gallery/gen_gallery.py", line 159, in call_memory
return 0., func()
File "/Users/kylemathewson/eeg-notebooks/venv/lib/python3.7/site-packages/sphinx_gallery/gen_rst.py", line 466, in call
exec(self.code, self.fake_main.dict)
File "/Users/kylemathewson/eeg-notebooks/examples/visual_cueing/02r__cueing_group_analysis.py", line 38, in
Let's try to debug this dataset fetcher thing outside of the doc build.
- Retry on command line
datasets.fetch_dataset(data_dir=sometestfolderpath, experiment='visual-cueing', site='kylemathlab_dev')
- Is the dataset fetcher working ok for the other datasets?
Is this okay to close with the PR merge?
I'm also getting this error now - seems the new dataset fetcher is not working with the cueing experiment dataset. Probably because of the zip file size.
Changed the dataset fetcher to use the gdown package, - https://github.com/NeuroTechX/eeg-notebooks/commit/f11fa0c86aead8122225295846d6f141cd707f22
this seems to have no problem with large file downloads. It's also about 1% the number of lines :) ...but an additional dependency :(
@kylemath - try the dataset fetcher commands above now.
Thats interesting, I tried it earlier and it worked fine.
one liner above didn't run, must need to import some things first, so I tried to remake the html docs
I pulled your change from upstream repo, merged into my branch, pip install gdown, I also added gdown to the requirements-docs.txt, then try to make the htmls and get:
Traceback (most recent call last):
File "/Users/kylemathewson/eeg-notebooks/venv/lib/python3.7/site-packages/sphinx_gallery/gen_gallery.py", line 159, in call_memory
return 0., func()
File "/Users/kylemathewson/eeg-notebooks/venv/lib/python3.7/site-packages/sphinx_gallery/gen_rst.py", line 466, in call
exec(self.code, self.fake_main.dict)
File "/Users/kylemathewson/eeg-notebooks/examples/visual_cueing/01r__cueing_singlesub_analysis.py", line 30, in
So what do you get on the command line with just
ipython
import gdown
?
import gdown works when I :
cd eeg-notebooks source venv/bin/activate python
import gdown
On Thu, Aug 27, 2020 at 1:09 AM John Griffiths [email protected] wrote:
So what do you get on the command line with just
ipython
import gdown
?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NeuroTechX/eeg-notebooks/issues/7#issuecomment-681659489, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA36GFOCUHUVUYWJTRXBVL3SCYBDDANCNFSM4QKGJAIA .
-- Kyle E. Mathewson, Ph.D. Assistant Professor - Department of Psychology, Faculty of Science Director - Attention Perception and Performance Lab Affiliate - Neuroscience and Mental Health Institute, Faculty of Medicine and Dentistry University of Alberta P455 - Biological Sciences Building 11455 Saskatchewan Dr. Edmonton, Alberta, Canada, T6G 2E9 Phone: 1-780-492-2662 Email: [email protected] Web: www.kylemathewson.com
So was it looking for a different python installation when you were building before?
Does this work now?
source venv/bin/activate
cd doc
make html
yeah it works, but that is what produces the error in the html that gdown was not available
On Thu, Aug 27, 2020 at 1:14 AM John Griffiths [email protected] wrote:
So was it looking for a different python installation when you were building before?
Does this work now?
source venv/bin/activatecd doc make html
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NeuroTechX/eeg-notebooks/issues/7#issuecomment-681666387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA36GFORF4RA5N3JESMOED3SCYBUTANCNFSM4QKGJAIA .
-- Kyle E. Mathewson, Ph.D. Assistant Professor - Department of Psychology, Faculty of Science Director - Attention Perception and Performance Lab Affiliate - Neuroscience and Mental Health Institute, Faculty of Medicine and Dentistry University of Alberta P455 - Biological Sciences Building 11455 Saskatchewan Dr. Edmonton, Alberta, Canada, T6G 2E9 Phone: 1-780-492-2662 Email: [email protected] Web: www.kylemathewson.com
Must be trying to use a different python installation then, if the import isn't working.
@kylemath - checking up on this. We have tried to iron out the dependencies in requirements.txt a bit more.
please try:
-
fresh git clone, or pull updates
-
create fresh conda or venv
-
pip install
pip install -e .
- build docs as above
make html
Are you still getting an error?
(venv) Kyles-MacBook-Pro:eeg-notebooks kylemathewson$ make html
make: *** No rule to make target `html'. Stop.
(venv) Kyles-MacBook-Pro:eeg-notebooks kylemathewson$ cd docs
-bash: cd: docs: No such file or directory
(venv) Kyles-MacBook-Pro:eeg-notebooks kylemathewson$ ls
LICENSE eegnb requirements_test.txt
README.rst examples run_notebooks.py
binder requirements-docs.txt setup.cfg
doc requirements-noeeg.txt setup.py
eeg_notebooks.egg-info requirements.txt venv
(venv) Kyles-MacBook-Pro:eeg-notebooks kylemathewson$ cd doc
(venv) Kyles-MacBook-Pro:doc kylemathewson$ ls
Makefile changelog.rst docs_notes.md getting_started index.rst
_static conf.py experiments img misc
(venv) Kyles-MacBook-Pro:doc kylemathewson$ make html
/bin/sh: sphinx-build: command not found
make: *** [html] Error 127
(venv) Kyles-MacBook-Pro:doc kylemathewson$
Apols.
Ok I've added the doc building dependencies into the requirements.txt. That's easier than maintaining multiple installation instructions.
Pls git pull master and try pip install -e . again.
Note that the env needs to be with Python 3.6.