Closed bertbesser closed 1 year ago
Thanks @bertbesser, I could reproduce this with pip
as well, so this is something that needs to be fixed
This is the diff in setup.py
between v0.10.x
and v0.11.x
diff --git a/setup.py b/setup.py
index 3fd519e2..5795034f 100644
--- a/setup.py
+++ b/setup.py
@@ -63,7 +63,9 @@ def get_version_and_cmdclass(version_file):
return globals_["__version__"], globals_["cmdclass"]()
-version, version_cmdclass = get_version_and_cmdclass("src/gluonts/_version.py")
+version, version_cmdclass = get_version_and_cmdclass(
+ "src/gluonts/meta/_version.py"
+)
class TypeCheckCommand(distutils.cmd.Command):
@@ -202,14 +204,11 @@ shell_require = find_requirements("requirements-extras-shell.txt")
mxnet_require = find_requirements("requirements-mxnet.txt")
torch_require = find_requirements("requirements-pytorch.txt")
-setup_requires = find_requirements("requirements-setup.txt")
-
dev_require = (
arrow_require
+ docs_require
+ tests_require
+ shell_require
- + setup_requires
+ sagemaker_api_require
)
@@ -235,7 +234,6 @@ setup_kwargs: dict = dict(
package_dir={"": "src"},
packages=find_namespace_packages(include=["gluonts*"], where=str(SRC)),
include_package_data=True,
- setup_requires=setup_requires,
install_requires=find_requirements("requirements.txt"),
tests_require=tests_require,
extras_require={
@@ -249,48 +247,16 @@ setup_kwargs: dict = dict(
"shell": shell_require,
"torch": torch_require,
},
- entry_points={
- "gluonts_forecasters": [
- "deepar=gluonts.model.deepar:DeepAREstimator",
- "DeepAR=gluonts.model.deepar:DeepAREstimator",
- "DeepFactor=gluonts.model.deep_factor:DeepFactorEstimator",
- "DeepState=gluonts.model.deepstate:DeepStateEstimator",
- "DeepVAR=gluonts.model.deepvar:DeepVAREstimator",
- "GaussianProcess=gluonts.model.gp_forecaster:GaussianProcessEstimator",
- "GPVAR=gluonts.model.gpvar:GPVAREstimator",
- "LSTNet=gluonts.model.lstnet:LSTNetEstimator",
- "NBEATS=gluonts.model.n_beats:NBEATSEstimator",
- "NBEATSEnsemble=gluonts.model.n_beats:NBEATSEnsembleEstimator",
- "NPTS=gluonts.model.npts:NPTSPredictor",
- "Rotbaum=gluonts.model.rotbaum:TreeEstimator",
- "SelfAttention=gluonts.model.san:SelfAttentionEstimator",
- "SeasonalNaive=gluonts.model.seasonal_naive:SeasonalNaivePredictor",
- "MQCNN=gluonts.model.seq2seq:MQCNNEstimator",
- "MQRNN=gluonts.model.seq2seq:MQRNNEstimator",
- "Seq2Seq=gluonts.model.seq2seq:Seq2SeqEstimator",
- "SimpleFeedForward=gluonts.model.simple_feedforward:SimpleFeedForwardEstimator",
- "TFT=gluonts.model.tft:TemporalFusionTransformerEstimator",
- "DeepTPP=gluonts.model.tpp:DeepTPPEstimator",
- "Transformer=gluonts.model.transformer:TransformerEstimator",
- "Constant=gluonts.model.trivial.constant:ConstantPredictor",
- "ConstantValue=gluonts.model.trivial.constant:ConstantValuePredictor",
- "Identity=gluonts.model.trivial.identity:IdentityPredictor",
- "Mean=gluonts.model.trivial.mean:MeanEstimator",
- "MeanPredictor=gluonts.model.trivial.mean:MeanPredictor",
- "MovingAverage=gluonts.model.trivial.mean:MovingAveragePredictor",
- "WaveNet=gluonts.model.wavenet:WaveNetEstimator",
- # "r=gluonts.model.r_forecast:RForecastPredictor [R]",
- # "prophet=gluonts.model.prophet:ProphetPredictor [Prophet]",
- ],
- "pygments.styles": [
- "gluonts-dark=gluonts.meta.style:Dark",
- ]
- },
cmdclass={
"type_check": TypeCheckCommand,
"style_check": StyleCheckCommand,
**version_cmdclass,
},
+ entry_points={
+ "pygments.styles": [
+ "gluonts-dark=gluonts.meta.style:Dark",
+ ]
+ },
)
if HAS_SPHINX:
I have also exactly the same issue. R folder is missing in 0.11 install via pip
This is extremely weird: if I do
python setup.py sdist bdist_wheel
at a5ba84a41a27def5a5108c8a31ee949c15430d63 (the v0.11.0
tag), the resulting archive doesn't have the R files; but if I do it at 8a8bed57eae93509afb646ccab7434ad2bb2f4fd (which is the commit immediately before) the R files are there. And the diff between the two commits is empty!
Package publishing workflow runs:
The latter does not create the R
sub-folder, and does not copy its content: does it have it the first place?
@jaheba I believe this may require the src/
prefix? See https://packaging.python.org/en/latest/guides/using-manifest-in/#manifest-in-commands
I was also just browsing this section of the code. It does not have the src/ prefix on the 0.9.x and 0.10.x branches/tags...
Unless there's other changes that change the source root. However, this section of the setup.py
is unchanged:
package_dir={"": "src"},
packages=find_namespace_packages(include=["gluonts*"], where=str(SRC)),
Hi I tested via poetry add "git+https://github.com/lostella/gluon-ts.git#5d08ce"
from your fork @lostella and the .R files were there. I see you have already merged it! 🙏
This was quick! Do you already have an idea when this will be available in the 0.11.x branch, or even published to pypi? (Asking to arrange our time/prios in the project.)
This was quick! Do you already have an idea when this will be available in the 0.11.x branch, or even published to pypi? (Asking to arrange our time/prios in the project.)
Nice! Thanks for trying it out; we're doing a 0.11.3 bugfix release today.
@bertbesser v0.11.3 was released, and R based models should now work again. Could I ask you to double-check?
Hi, sure. I'm not personally the one who can do the double check. But I will make sure that we'll report back asap.
This was quick! Do you already have an idea when this will be available in the 0.11.x branch, or even published to pypi? (Asking to arrange our time/prios in the project.)
Nice! Thanks for trying it out; we're doing a 0.11.3 bugfix release today.
Awesome, thanks
Hi @lostella. Reporting back: It works. => Solved for us.
Thank you for fixing this so promptly! Saves us a good amout of hassle 😄
Hi,
I have done a couple of checks for univariate models and hierarchical models, and now it seems to be in order.
Lets close this issue.
Thank you all!
Description
This is a follow-up bug report to #2414.
Problem: Some *.R files are missing when installing gluonts 0.11.x via poetry.
To Reproduce
I reproduced like this:
Result:
I provide two code blocks (of one shell sessions) how to reproduce.
So there are no *.R files for 0.11.x.
... continuing in the same shell session ...
So there is an *.R file for 0.9.x.
Error message or code output
I will ask my colleague to paste some error message in the following comments.
Environment