-
-
Save beckermr/9862deb8b1069e2543c318577c15739f to your computer and use it in GitHub Desktop.
| #!/usr/bin/env bash | |
| git clone https://github.com/regro/cf-scripts.git | |
| pushd cf-scripts | |
| pip install --no-deps -e . | |
| popd | |
| git clone --depth=1 https://github.com/regro/cf-graph-countyfair.git | |
| cd cf-graph-countyfair | |
| # run the python script here or start your interpreter | |
| ipython |
| # type this code in at the interpreter | |
| from conda_forge_tick.utils import load_graph | |
| gx = load_graph() | |
| # from here you can inspect the graph object | |
| print("# of nodes:", len(gx.nodes)) | |
| with gx.nodes['python']['payload'] as attrs: | |
| print('python node data:', attrs.data) |
i've finished the downloads using conda, but the same error occurred, i will try launch the load_graph.py externally and see what happens. Sorry for all the work.
there is a problem that happens every time i clone the cf-graph-countyfair:
error: invalid path 'node_attrs/conda-forge::git.json' fatal: unable to checkout working tree warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry with 'git restore --source=HEAD :/'
Can you rm node_attrs/conda-forge::git.json?
C:\Users\viniv\cf-graph-countyfair>rm node_attrs/conda-forge::git.json rm: cannot remove 'node_attrs/conda-forge::git.json': No such file or directory
Well IDK. Maybe reclone everything and try again? I don't have a windows machine to test with. Do you have a linux box you can use?
@ocefpaf Any help here? I am stumped.
Well IDK. Maybe reclone everything and try again? I don't have a windows machine to test with. Do you have a linux box you can use?
i can make one, but it will take a while
I'm not on a Windows machine either. Let me see if I can get my hands on one to debug this.
Ok, some news
It happened again, but this time i could load the script.
python load_graph.py /home/drakar/miniconda3/lib/python3.7/site-packages/github3/session.py:3: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working from collections import Callable /home/drakar/miniconda3/lib/python3.7/site-packages/github3/structs.py:11: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working class GitHubIterator(models.GitHubCore, collections.Iterator): /home/drakar/miniconda3/lib/python3.7/site-packages/botocore/vendored/requests/packages/urllib3/_collections.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working from collections import Mapping, MutableMapping
this was the expected answer ?
# of nodes: 9474 python node data: None
yup LGTM!
now you can start digging into the version harvesting code I sent!
Heee, finaly. Probably it was something with windows. by "harvesting code I sent", it's this regro/cf-scripts#842 right ?
yup! let's move this discussion to that issue as well
there is a list IIRC. You can use the
--fileargument to conda