Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a large number of hardcoded paths #1853

Closed
yarikoptic opened this issue Jul 29, 2014 · 4 comments

Comments

Projects
None yet
3 participants
@yarikoptic
Copy link
Contributor

commented Jul 29, 2014

echoing #1249 and my failure to build docs:

PYTHONPATH=`/bin/ls -d /home/yoh/deb/gits/pkg-exppsy/build-area/statsmodels-0.5.0+git1189-g48f7a21/debian/python-statsmodels/usr/lib/python2.7/*/`:/home/yoh/deb/gits/pkg-exppsy/build-area/statsmodels-0.5.0+git1189-g48f7a21 \
 /usr/bin/make -C docs html
make[1]: Entering directory '/home/yoh/deb/gits/pkg-exppsy/build-area/statsmodels-0.5.0+git1189-g48f7a21/docs'
# generate the examples rst files
Generating reST from examples folder
#../tools/examples_rst.py
Generating notebooks from examples/notebooks folder
../tools/nbgenerate.py
Traceback (most recent call last):
  File "../tools/nbgenerate.py", line 247, in <module>
    os.chdir(arg_ns.path) # so we execute in notebook dir
OSError: [Errno 2] No such file or directory: '/home/skipper/statsmodels/statsmodels/examples/notebooks'
Makefile:59: recipe for target 'html' failed

did

$> git grep '/skipper/'
statsmodels/iolib/tests/gen_dates.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/iolib/tests/stata_dates.csv"
statsmodels/sandbox/examples/example_sysreg.py:        data3 = np.genfromtxt('/home/skipper/school/MetricsII/Greene \
statsmodels/sandbox/tests/GreeneEx15_1.s:dta <- read.table('/home/skipper/school/MetricsII/Greene\ TableF5-1.txt', header = TRUE)
statsmodels/stats/tests/results/anova.R:source('/home/skipper/statsmodels/statsmodels/tools/topy.R')
statsmodels/tsa/kalmanf/kalmanfilter.py:        dk = zipfile.ZipFile('/home/skipper/statsmodels/statsmodels-skipper/scikits/statsmodels/sandbox/tsa/DK-data.zip')
statsmodels/tsa/tests/arima.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv"
statsmodels/tsa/tests/arima.do:// mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima.do:mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params xb y resid yr mse stdp icstats, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima111_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv"
statsmodels/tsa/tests/arima.do:// mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima.do:mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params xb y resid yr mse stdp icstats, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima111nc_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv"
statsmodels/tsa/tests/arima.do:// mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima.do:mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params xb y resid yr mse stdp icstats, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima111_css_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv"
statsmodels/tsa/tests/arima.do:// mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima.do:mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params xb y resid yr mse stdp icstats, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima111nc_css_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima112.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv"
statsmodels/tsa/tests/arima112.do:// mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima112.do:mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params xb y resid yr mse stdp icstats, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima112_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima112.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv"
statsmodels/tsa/tests/arima112.do:// mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima112.do:mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params xb y resid yr mse icstats, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima112nc_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima112.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv"
statsmodels/tsa/tests/arima112.do:// mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima112.do:mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params xb y resid yr mse stdp icstats, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima112_css_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima112.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv"
statsmodels/tsa/tests/arima112.do:// mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima112.do:mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params xb y resid yr mse stdp icstats, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima112nc_css_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima211.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv"
statsmodels/tsa/tests/arima211.do:// mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima211.do:mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params xb y resid yr mse stdp icstats, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima211_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima211.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv"
statsmodels/tsa/tests/arima211.do:// mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima211.do:mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params xb y resid yr mse icstats, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima211nc_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima211.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv"
statsmodels/tsa/tests/arima211.do:// mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima211.do:mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params xb y resid yr mse stdp icstats, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima211_css_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima211.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv"
statsmodels/tsa/tests/arima211.do:// mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima_results.py") format("%16.0g") replace
statsmodels/tsa/tests/arima211.do:mat2nparray llf nobs k k_exog sigma chi2 df_model k_ar k_ma params cov_params xb y resid yr mse stdp icstats, saving("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/arima211nc_css_results.py") format("%16.0g") replace
statsmodels/tsa/tests/results/arima.R:dta <- read.csv("/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv")
statsmodels/tsa/tests/results/arima_forecast.inp:open /home/skipper/statsmodels/statsmodels/statsmodels/datasets/macrodata/macrodata.csv
statsmodels/tsa/tests/results/arima_forecast.inp:store '/home/skipper/statsmodels/statsmodels-skipper/statsmodels/tsa/tests/results/results_arima_forecasts.csv' fc111nc fc111ncdyn fc111c fc111cdyn fc211nc fc211ncdyn fc211c fc211cdyn --omit-obs
statsmodels/tsa/tests/results/arma_forecast.inp:  /home/skipper/statsmodels/statsmodels/statsmodels/tsa/tests/results/y_arma_data.csv
statsmodels/tsa/tests/results/arma_forecast.inp:#store '/home/skipper/statsmodels/statsmodels-git/scikits/statsmodels/tsa/tests/results/results_arma_forecasts.csv' fc11 fe11 fc41 fe41 fc50 fe50 fc11c fe11c fc41c fe41c fc50c fe50c --omit-obs
statsmodels/tsa/tests/results/corrgram.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/statsmodels/datasets/macrodata/macrodata.csv", double clear
statsmodels/tsa/tests/results/corrgram.do:outsheet acvar acvarfft Q1 PACOLS PACYW using "/home/skipper/statsmodels/statsmodels-skipper/scikits/statsmodels/sandbox/tsa/tests/results/results_corrgram.csv", comma replace
statsmodels/tsa/vector_ar/tests/svar.do:insheet using "/home/skipper/statsmodels/statsmodels-skipper/scikits/statsmodels/datasets/macrodata/macrodata.csv", double clear
statsmodels/tsa/vector_ar/tests/svartest.R:#data <- read.csv("/home/skipper/statsmodels/statsmodels-skipper/scikits/statsmodels/datasets/macrodata/macrodata.csv")
tools/generate_formula_api.py:generate_formula_api /home/skipper/statsmodels/statsmodels/
tools/nbgenerate.py:SOURCE_DIR = "/home/skipper/statsmodels/statsmodels/examples/notebooks"
tools/update_web.py:logging.basicConfig(filename='/home/skipper/statsmodels/statsmodels/tools/'
tools/update_web.py:sys.stdout = open('/home/skipper/statsmodels/statsmodels/tools/crontab.out',
tools/update_web.py:sys.stderr = open('/home/skipper/statsmodels/statsmodels/tools/crontab.err',
tools/update_web.py:env = {'MATPLOTLIBRC' : ('/home/skipper/statsmodels/statsmodels/tools/'),
tools/update_web.py:       'PATH' : ':'.join((os.getenv('PATH', ''), '/home/skipper/.local/bin')),
tools/update_web.py:with open('/home/skipper/statsmodels/gmail.txt') as f:
tools/update_web.py:        retcode = subprocess.call(['/home/skipper/.local/bin/virtualenv',
@jseabold

This comment has been minimized.

Copy link
Member

commented Jul 29, 2014

These are hard-coded but don't actually affect anything. Stata scripts that produced test results for completeness sake and the update_web.py only runs on my local build box.

@jseabold

This comment has been minimized.

Copy link
Member

commented Jul 29, 2014

The nbgenerate one is the only real failure and is an easy fix.

@jseabold jseabold closed this Jul 29, 2014

@yarikoptic

This comment has been minimized.

Copy link
Contributor Author

commented Jul 29, 2014

I have tried to fix it by providing it a relative path to nbgenerate.py in doc/Makefile but then it also pukes differently... provided a full path -- seemed work out

@josef-pkt

This comment has been minimized.

Copy link
Member

commented Jul 30, 2014

link to PR #1249
@yarikoptic can you try 1249 for the doc build?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.