Skip to content

Conversation

tlvu
Copy link
Collaborator

@tlvu tlvu commented May 22, 2020

This PR is part of issue bird-house/cookiecutter-birdhouse#61, rolling out cruft as a mechanism to easily update cookiecutter template changes to existing project.

Requires PR bird-house/cookiecutter-birdhouse#87 and bird-house/cookiecutter-birdhouse#88.

Other noticeable changes in this PR:

  • fix weird version format cb63d07
  • fix flakes8 failure E741 ambiguous variable name 'l' 76345b9 + 7a312f1

RtD build passed with list of processes https://readthedocs.org/projects/finch/builds/11131993/

tlvu added 7 commits May 22, 2020 12:33
Guessed previous cookiecutter commit 37c609bc4942227c2a64e6386cf38a9207da9534
used from previous cookiecutter update 6dec5ea
on Jan 21, 2020 by David Caron.

```
$ cruft link https://github.com/bird-house/cookiecutter-birdhouse
full_name [Full Name]: David Huard
email [your@email]: [email protected]
github_username [bird-house]:
project_name [Babybird]: Finch
project_slug [finch]:
project_repo_name [finch]:
project_readthedocs_name [finch]:
project_short_description [A Web Processing Service for Climate Data Analysis.]: A Web Processing Service for Climate Indicators.
version [0.1.0]: 0.5.3
Select open_source_license:
1 - Apache Software License 2.0
2 - MIT license
3 - BSD license
4 - ISC license
5 - GNU General Public License v3
Choose from 1, 2, 3, 4, 5 [1]:
http_port [5000]:

The latest commit to the template is 33ec025178001226b68223d55a097f26d9ac6303
Press enter to link against this commit or provide an alternative commit.

Link to template at commit [33ec025178001226b68223d55a097f26d9ac6303]: 37c609bc4942227c2a64e6386cf38a9207da9534

Project successfully linked to template!
```
The file .readthedocs.yml was created and readthedocs.yml was deleted.

I manually move .readthedocs.yml to readthedocs.yml and will perform a
git mv in the next commit to keep the rename history.
@tlvu tlvu requested a review from huard May 22, 2020 18:24
@huard
Copy link
Collaborator

huard commented May 22, 2020

@tlvu RtD: Done

@tlvu
Copy link
Collaborator Author

tlvu commented May 22, 2020

Oh just noticed Finch build is on travis-ci.org while Raven is on travis-ci.com ... why do we have the difference?

@matprov
Copy link
Collaborator

matprov commented May 22, 2020

@matprov are you replacing David Caron on CRIM side? Should I be including you in all future Finch changes? Thanks.

@tlvu Yes please include me in future changes. I want to stay informed of changes on Finch, even if I occasionally work on it. Thanks

$ flake8
./finch/processes/subset.py:40:36: E741 ambiguous variable name 'l'
./finch/processes/subset.py:46:35: E741 ambiguous variable name 'l'
./tests/locustfile.py:4:19: E741 ambiguous variable name 'l'
The command "flake8" exited with 1.

https://www.flake8rules.com/rules/E741.html

Do not use variables named 'I', 'O', or 'l' (E741)

Variables named I, O, and l can be very hard to read. This is because the letter I and the letter l are easily confused, and the letter O and the number 0 can be easily confused.

Change the names of these variables to something more descriptive.
@huard
Copy link
Collaborator

huard commented May 22, 2020

@tlvu No idea about Travis.

except AttributeError:
longitudes = [float(lon_value)]

lat_value = request_inputs[wpsio.lat.identifier][0].data
try:
latitudes = [float(l) for l in lat_value.split(",")]
latitudes = [float(lat) for at in lat_value.split(",")]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo, 'lat'

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, I introduced a typo when fixing flakes8. Fixed.

@tlvu
Copy link
Collaborator Author

tlvu commented May 22, 2020

Can I be admin on this Finch repo? Looks like only admin can re-trigger TravisCI builds (python 3.7 env failed while 3.8 passed !)

Also I fixed a weird version format in commit cb63d07 but the weird format has existed for a while, so I wonder if we actually wanted this weird format.

@tlvu
Copy link
Collaborator Author

tlvu commented May 22, 2020

@huard
Copy link
Collaborator

huard commented May 22, 2020

@tlvu Done
Version thing does not ring a bell.

@tlvu
Copy link
Collaborator Author

tlvu commented May 22, 2020

Oh crap the processes list is empty: https://pavics-sdi.readthedocs.io/projects/finch/en/refresh-cookiecutter-template-using-cruft/processes.html, will look at this next week.

@tlvu
Copy link
Collaborator Author

tlvu commented May 22, 2020

Humm a bunch of "WARNING: autodoc: failed to import process" but RtD build still passed ! That's bad ! Raven have the same problem (empty processes).

….yml

There is a bunch of "WARNING: autodoc: failed to import
process" but RtD build still passed !

Will have to setup mock import, it's a lenghthy process to discover and
list all the packages.

This is a quick fix while waiting for the lenghthy fix.
tlvu added 10 commits May 25, 2020 12:59
Mock list taken from Raven to avoid having to discover them one by one.

Previous fix reverting to use existing environment.yml did not work,
have the following errors:

https://readthedocs.org/projects/finch/builds/11114170/
```
 python /home/docs/checkouts/readthedocs.org/user_builds/finch/conda/refresh-cookiecutter-template-using-cruft/bin/sphinx-build -T -E -b readthedocs -d _build/doctrees-readthedocs -D language=en . _build/html
Running Sphinx v3.0.3
loading translations [en]... done
/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/refresh-cookiecutter-template-using-cruft/lib/python3.8/site-packages/sphinx/deprecation.py:52: RemovedInSphinx40Warning: sphinx.builders.html.DirectoryHTMLBuilder is deprecated. Check CHANGES for Sphinx API modifications.
  return getattr(self._module, name)
/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/refresh-cookiecutter-template-using-cruft/lib/python3.8/site-packages/readthedocs_ext/readthedocs.py:14: RemovedInSphinx40Warning: sphinx.builders.html.SingleFileHTMLBuilder is deprecated. Check CHANGES for Sphinx API modifications.
  from sphinx.builders.html import (DirectoryHTMLBuilder, SingleFileHTMLBuilder,

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/refresh-cookiecutter-template-using-cruft/lib/python3.8/site-packages/sphinx/registry.py", line 402, in load_extension
    mod = import_module(extname)
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/refresh-cookiecutter-template-using-cruft/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nbsphinx'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/refresh-cookiecutter-template-using-cruft/lib/python3.8/site-packages/sphinx/cmd/build.py", line 276, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/refresh-cookiecutter-template-using-cruft/lib/python3.8/site-packages/sphinx/application.py", line 244, in __init__
    self.setup_extension(extension)
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/refresh-cookiecutter-template-using-cruft/lib/python3.8/site-packages/sphinx/application.py", line 398, in setup_extension
    self.registry.load_extension(self, extname)
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/refresh-cookiecutter-template-using-cruft/lib/python3.8/site-packages/sphinx/registry.py", line 405, in load_extension
    raise ExtensionError(__('Could not import extension %s') % extname, err)
sphinx.errors.ExtensionError: Could not import extension nbsphinx (exception: No module named 'nbsphinx')

Extension error:
Could not import extension nbsphinx (exception: No module named 'nbsphinx')
```
https://readthedocs.org/api/v2/build/11114438.txt

```
WARNING: autodoc: failed to import process
'processes.xclim.cdd_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cold_spell_days_Indicator_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cold_spell_duration_index_Indicator_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.consecutive_frost_days_Indicator_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cooling_degree_days_Indicator_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cwd_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.dlyfrzthw_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.dtr_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.dtrvar_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.etr_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.freshet_start_Indicator_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.frost_days_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.growing_degree_days_Indicator_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_frequency_Indicator_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_index_Indicator_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_max_length_Indicator_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_total_length_Indicator_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heating_degree_days_Indicator_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.ice_days_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.liquidprcptot_Indicator_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.max_n_day_precipitation_amount_Indicator_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.prcptot_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.rain_frzgr_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.rx1day_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.sdii_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.solidprcptot_Indicator_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg10p_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg90p_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg_mean_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn10p_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn90p_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_days_below_Indicator_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_max_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_mean_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_min_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tropical_nights_Indicator_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx10p_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx90p_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_days_above_Indicator_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_max_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_mean_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_min_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_tn_days_above_Indicator_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.wetdays_Indicator_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cdd_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cdd_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cdd_Ensemble_Polygon_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cold_spell_days_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cold_spell_days_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cold_spell_days_Ensemble_Polygon_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cold_spell_duration_index_Ensemble_Bbox_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cold_spell_duration_index_Ensemble_GridPoint_Process'
from module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cold_spell_duration_index_Ensemble_Polygon_Process'
from module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.consecutive_frost_days_Ensemble_Bbox_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.consecutive_frost_days_Ensemble_GridPoint_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.consecutive_frost_days_Ensemble_Polygon_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cooling_degree_days_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cooling_degree_days_Ensemble_GridPoint_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cooling_degree_days_Ensemble_Polygon_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cwd_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cwd_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.cwd_Ensemble_Polygon_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.dlyfrzthw_Ensemble_Bbox_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.dlyfrzthw_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.dlyfrzthw_Ensemble_Polygon_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.dtr_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.dtr_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.dtr_Ensemble_Polygon_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.dtrvar_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.dtrvar_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.dtrvar_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.etr_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.etr_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.etr_Ensemble_Polygon_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.freshet_start_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.freshet_start_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.freshet_start_Ensemble_Polygon_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.frost_days_Ensemble_Bbox_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.frost_days_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.frost_days_Ensemble_Polygon_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.growing_degree_days_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.growing_degree_days_Ensemble_GridPoint_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.growing_degree_days_Ensemble_Polygon_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_frequency_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_frequency_Ensemble_GridPoint_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_frequency_Ensemble_Polygon_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_index_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_index_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_index_Ensemble_Polygon_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_max_length_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_max_length_Ensemble_GridPoint_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_max_length_Ensemble_Polygon_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_total_length_Ensemble_Bbox_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_total_length_Ensemble_GridPoint_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heat_wave_total_length_Ensemble_Polygon_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heating_degree_days_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heating_degree_days_Ensemble_GridPoint_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.heating_degree_days_Ensemble_Polygon_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.ice_days_Ensemble_Bbox_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.ice_days_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.ice_days_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.liquidprcptot_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.liquidprcptot_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.liquidprcptot_Ensemble_Polygon_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.max_n_day_precipitation_amount_Ensemble_Bbox_Process'
from module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.max_n_day_precipitation_amount_Ensemble_GridPoint_Process'
from module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.max_n_day_precipitation_amount_Ensemble_Polygon_Process'
from module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.prcptot_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.prcptot_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.prcptot_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.rain_frzgr_Ensemble_Bbox_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.rain_frzgr_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.rain_frzgr_Ensemble_Polygon_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.rx1day_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.rx1day_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.rx1day_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.sdii_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.sdii_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.sdii_Ensemble_Polygon_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.solidprcptot_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.solidprcptot_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.solidprcptot_Ensemble_Polygon_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg10p_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg10p_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg10p_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg90p_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg90p_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg90p_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg_Ensemble_GridPoint_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg_Ensemble_Polygon_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg_mean_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg_mean_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tg_mean_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn10p_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn10p_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn10p_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn90p_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn90p_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn90p_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_days_below_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_days_below_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_days_below_Ensemble_Polygon_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_max_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_max_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_max_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_mean_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_mean_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_mean_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_min_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_min_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tn_min_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tropical_nights_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tropical_nights_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tropical_nights_Ensemble_Polygon_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx10p_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx10p_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx10p_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx90p_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx90p_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx90p_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_days_above_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_days_above_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_days_above_Ensemble_Polygon_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_max_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_max_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_max_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_mean_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_mean_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_mean_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_min_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_min_Ensemble_GridPoint_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_min_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_tn_days_above_Ensemble_Bbox_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_tn_days_above_Ensemble_GridPoint_Process' from
module 'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.tx_tn_days_above_Ensemble_Polygon_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.wetdays_Ensemble_Bbox_Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.wetdays_Ensemble_GridPoint_Process' from module
'finch'; the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.wetdays_Ensemble_Polygon_Process' from module 'finch';
the following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.BCCAQV2HeatWave' from module 'finch'; the following
exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.SubsetBboxBCCAQV2Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.SubsetBboxDatasetProcess' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.SubsetBboxProcess' from module 'finch'; the following
exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.SubsetGridPointBCCAQV2Process' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.SubsetGridPointDatasetProcess' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.SubsetGridPointProcess' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
WARNING: autodoc: failed to import process
'processes.xclim.SubsetPolygonProcess' from module 'finch'; the
following exception was raised:
No module named 'sentry_sdk'
```
To fix the following autodoc error:

https://readthedocs.org/api/v2/build/11114567.txt

  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/fix-rtd-build/lib/python3.8/site-packages/xclim/indices/fwi.py", line 95, in <module>
    from dask.array import Array as dskarray
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/fix-rtd-build/lib/python3.8/site-packages/dask/array/__init__.py", line 3, in <module>
    from .core import (
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/fix-rtd-build/lib/python3.8/site-packages/dask/array/core.py", line 22, in <module>
    from . import chunk
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/fix-rtd-build/lib/python3.8/site-packages/dask/array/chunk.py", line 7, in <module>
    from . import numpy_compat as npcompat
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/fix-rtd-build/lib/python3.8/site-packages/dask/array/numpy_compat.py", line 8, in <module>
    _numpy_115 = LooseVersion(np.__version__) >= "1.15.0"
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/fix-rtd-build/lib/python3.8/distutils/version.py", line 70, in __ge__
    c = self._cmp(other)
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/fix-rtd-build/lib/python3.8/distutils/version.py", line 335, in _cmp
    if self.version == other.version:
AttributeError: 'LooseVersion' object has no attribute 'version'
https://readthedocs.org/api/v2/build/11123466.txt

  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/fix-rtd-build/lib/python3.8/site-packages/xclim/indices/fwi.py", line 96, in <module>
    from numba import jit
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/fix-rtd-build/lib/python3.8/site-packages/numba/__init__.py", line 15, in <module>
    from . import config, errors, _runtests as runtests, types
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/fix-rtd-build/lib/python3.8/site-packages/numba/types/__init__.py", line 102, in <module>
    char = _make_signed(np.byte)
  File "/home/docs/checkouts/readthedocs.org/user_builds/finch/conda/fix-rtd-build/lib/python3.8/site-packages/numba/types/__init__.py", line 99, in <lambda>
    _make_signed = lambda x: globals()["int%d" % (np.dtype(x).itemsize * 8)]
TypeError: unsupported operand type(s) for *: 'itemsize' and 'int'
https://readthedocs.org/api/v2/build/11123729.txt

WARNING: autodoc: failed to import process 'processes.xclim.cdd_Indicator_Process' from module 'finch'; the following exception was raised:
No module named 'parse'
WARNING: autodoc: failed to import process 'processes.xclim.cold_spell_days_Indicator_Process' from module 'finch'; the following exception was raised:
No module named 'parse'
WARNING: autodoc: failed to import process 'processes.xclim.cold_spell_duration_index_Indicator_Process' from module 'finch'; the following exception was raised:
No module named 'parse'
WARNING: autodoc: failed to import process 'processes.xclim.SubsetGridPointProcess' from module 'finch'; the following exception was raised:
No module named 'siphon'
WARNING: autodoc: failed to import process 'processes.xclim.SubsetPolygonProcess' from module 'finch'; the following exception was raised:
No module named 'siphon'
  File "/home/lvu/.conda/envs/finch-docs/lib/python3.8/site-packages/xclim/ensembles.py", line 13, in <module>
    from sklearn.cluster import KMeans
  File "/home/lvu/.conda/envs/finch-docs/lib/python3.8/site-packages/sklearn/__init__.py", line 80, in <module>
    from .base import clone
  File "/home/lvu/.conda/envs/finch-docs/lib/python3.8/site-packages/sklearn/base.py", line 21, in <module>
    from .utils import _IS_32BIT
  File "/home/lvu/.conda/envs/finch-docs/lib/python3.8/site-packages/sklearn/utils/__init__.py", line 22, in <module>
    from .murmurhash import murmurhash3_32
  File "sklearn/utils/murmurhash.pyx", line 1, in init sklearn.utils.murmurhash
TypeError: numpy.dtype is not a type object
  File "/zstore/repos/finch/finch/processes/utils.py", line 19, in <module>
    import cftime
  File "/home/lvu/.conda/envs/finch-docs/lib/python3.8/site-packages/cftime/__init__.py", line 1, in <module>
    from ._cftime import utime, JulianDayFromDate, DateFromJulianDay
  File "__init__.pxd", line 206, in init cftime._cftime
TypeError: numpy.dtype is not a type object
  File "/zstore/repos/finch/finch/processes/utils.py", line 20, in <module>
    import netCDF4
  File "/home/lvu/.conda/envs/finch-docs/lib/python3.8/site-packages/netCDF4/__init__.py", line 3, in <module>
    from ._netCDF4 import *
  File "include/netCDF4.pxi", line 727, in init netCDF4._netCDF4
TypeError: numpy.ndarray is not a type object
@tlvu
Copy link
Collaborator Author

tlvu commented May 27, 2020

Finally RtD build passed with list of processes https://readthedocs.org/projects/finch/builds/11131993/

tlvu added a commit to bird-house/cookiecutter-birdhouse that referenced this pull request May 27, 2020
Backport RtD fixes from Raven and Finch.

Backport from this Raven PR Ouranosinc/raven#277 and this Finch PR bird-house/finch#128.

Also add `cruft link` example from Finch.
@tlvu tlvu merged commit aab64c5 into master May 27, 2020
@tlvu tlvu deleted the refresh-cookiecutter-template-using-cruft branch May 27, 2020 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants