Replies: 3 comments
-
Data stuff went to submodule (so you need to add So for now (until the PR is merged) just do (remember to change to your fork)
|
Beta Was this translation helpful? Give feedback.
-
Thanks @ahartikainen I can confirm that adding the |
Beta Was this translation helpful? Give feedback.
-
We have already merged the subtree instead of submodule PR which should simplify things regarding cloning. Re running tests, I think we should add a "How to run the test suite" page in https://python.arviz.org/en/latest/contributing/index.html that covers things like
We can then link there from the PR checklist and PR step-by-step pages. Re failing tests, all test should pass, and all have passed in the latest PRs I merged today: https://dev.azure.com/ArviZ/ArviZ/_build/results?buildId=5981&view=results . Do the versions you have installed differ significantly from those or from those other ones? (both of these run on python 3.9) |
Beta Was this translation helpful? Give feedback.
-
I'm installing a development copy of ArviZ in order to make future contributions, and have run into a few issues I need help with. I will narrate what I've done below with questions and observations at the end.
Fork/Clone and testing
Following along with the contributor documentation, I've forked ArviZ, and cloned my fork locally. I've updated the remote of my local-cloned repo as shown in the documentation with
I then created a virtual environment with
mamba
(https://mamba.readthedocs.io/en/latest/installation.html) using Python 3.8, since the ArviZ tests indicate that Python 3.8 is the minimum install.arviz/.azure-pipelines/azure-pipelines-base.yml
Line 25 in 5ca7643
After the environment has been created, I activate it with
I then installed the requirements defined in both the
requirements
andrequirements-dev.txt
files usingThe installation works just fine up to this point. I typically run tests next before I work on a contribution so I ran them using
This leads to my first error.
When I look in the
arviz/arviz/data/example_data/
folder I see that there are no data and no JSON files in it. So I assumed that I needed to download the data using the ArviZ package in an interactive session, which meant I started up Python in my terminal and attempted to importarviz
. Doing this gives the sameFileNotFoundError
I didn't fully understand this since the
data_local.json
anddata_remote.json
files do not exist in a normalpip
installed version of ArviZ. There is, however, another repo in thearviz-devs
org calledarviz_example_data
found at https://github.com/arviz-devs/arviz_example_data. Inside this repo both the data JSON files exist. So I cloned and copied those files to my forked repo.I started a new Python session in my terminal and imported ArviZ with no errors. With no more errors due to files not being found, I ran the tests again.
The tests run, with a few creating matplotlib images. Once the tests completed I ended up with
Inspecting the errors shows a few
FileNotFoundError
associated with the *.nc files found in thearviz_example_data
repo. So I copied those files over to my dev cloned ArviZ repo and reran the tests. This time I gotwith the failures coming from not having
bokeh
orzarr
installed. I saw thatrequirements-optional.txt
have bothbokeh
andzarr
listed, so Ipip
install that requirements file next,and reran the tests. This then leads to the following results
with the failed tests coming from
I didn't really look into the above errors closely, before I reran the tests using the
--save
flag in pytests, as stated in the documentation; https://python.arviz.org/en/latest/contributing/pr_checklist.html#pull-request-checklist. Doing so did not fix any of the errors.So this is where I've stopped. I do not know if these tests are supposed to pass or not, but there is a lot of failed jobs from the open PRs that I've seen. My questions are as follows:
With the above issues I'm facing, I would like to hear about how other devs create a working ArviZ environment.
At this point I also tried to install the packages from
requirements-docs.txt
and ran into a different issueSimilarly, when I try to install packages from
requirements-external.txt
I get the following warning and error.Obviously I'm missing something, but I just don't know what it is, and any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions