Ask Your Question

debian_economist's profile - activity

2021-12-02 02:34:56 +0200 received badge  Popular Question (source)
2020-11-09 15:06:46 +0200 received badge  Notable Question (source)
2020-11-09 15:06:46 +0200 received badge  Popular Question (source)
2016-10-23 21:50:28 +0200 asked a question brial and cython failed to build while building Sage

I followed the documentation to build Sage with Debian packages.

I run the command "debian/rules prune build" and I got the following ouput:

make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/alien/sagemath/sage/build/make'

real    10m4.412s
user    18m13.656s
sys 0m20.556s
Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all'):

* package: brial-0.8.5
  log file: /home/alien/sagemath/sage/logs/pkgs/brial-0.8.5.log
  build directory: /home/alien/sagemath/debian/build/usr/var/tmp/sage/build/brial-0.8.5

* package: cython-0.24.1.p0
  log file: /home/alien/sagemath/sage/logs/pkgs/cython-0.24.1.p0.log
  build directory: /home/alien/sagemath/debian/build/usr/var/tmp/sage/build/cython-0.24.1.p0

    The build directory may contain configuration files and other potentially
    helpful information. WARNING: if you now run 'make' again, the build
    directory will, by default, be deleted. Set the environment variable
    SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

    Makefile:16: recipe for 

target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/alien/sagemath/sage'

debian/rules:51: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/home/alien/sagemath'
debian/rules:35: recipe for target 'build' failed
make: *** [build] Error 2

Cython is already installed (Cython version 0.23.2) and I can't install brial because it depends of libstdc++6 (>= 5.2) but 4.9.2-10 will be installed.

2016-08-25 17:46:29 +0200 commented answer linear regression with R in sagemath

Thank you for the hint. Now, I have an other issue: name "LLCCS00" is not defined.It seems to be a Python error. EDIT: The equivalent command works in R studio.

2016-08-25 17:44:43 +0200 commented question linear regression with R in sagemath

File "<ipython-input-4-8b7ce4bd7df2>", line 2 a = r.lm(LLCCS00 ~ OILBRNP, data = reader) ^ SyntaxError: invalid syntax

2016-08-24 17:55:25 +0200 received badge  Editor (source)
2016-08-24 17:49:37 +0200 asked a question linear regression with R in sagemath


I know it is possible to do a linear regression directly inside sage. However, I was wondering if it was possible to call the lm function from R to do it as well. I tried the following code:

reader = r.read_csv('"databrent2.csv"', header=true, sep='";"')    
a =  r.lm(LLCCS00 ~ OILBRNP, data = reader)

LLCCS00 and OILBRNP are my two variables. They are in row. It is time series so for each variable, there is a value at each date (dates are columns). The issue I have is that I have a syntax error. I don't understand why.

2016-08-24 17:49:36 +0200 commented answer inter-mixing Sage and R

When I type "r.read_table?" or "r.read_csv?" I have an attribute error.