Ask Your Question

Javidlg's profile - activity

2021-03-01 18:36:47 +0100 received badge  Famous Question (source)
2020-11-28 07:03:06 +0100 received badge  Notable Question (source)
2020-06-13 00:14:54 +0100 commented question sage 9.1 installation problem

Thank you very much @eric_g for your response! indeed, It worked! Do I have to update my post??

2020-06-10 13:53:25 +0100 asked a question sage 9.1 installation problem

I have downloaded sage-9.1-Ubuntu_18.04-x86_64.tar.bz2 binary into a folder named Sage 9.1. Then from that location on terminal I typed:

./sage

A patching sequence started with the final mesagge:

Error: The path to the Sage directory ($SAGE_ROOT) MUST NOT contain spaces.
It is currently "/home/javi/Sage 9.1/SageMath".
Please correct this by moving Sage (or renaming one or more directories) first.
Exiting now...
Error setting environment variables by sourcing '/home/javi/Sage 9.1/SageMath/src/bin/sage-env';
possibly contact sage-devel (see http://groups.google.com/group/sage-devel).

Then I thought "this must be fixed by changing the directory name"...wroooong. I changed the path to /home/javi/sage/sage-9.1 (changed "Sage 9.1" for "sage" and "SageMath" for "sage-9.1"). Then run again

./sage

and gave me:

It seems that you are attempting to run Sage from an unpacked source
tarball, but you have not compiled it yet (or maybe the build has not
finished). You should run `make` in the Sage root directory first.
If you did not intend to build Sage from source, you should download
a binary tarball instead. Read README.txt for more information.

Aditionally I have:

$python --version
Python 3.7.7

Would anybody help me? Thank you in advance.

2019-08-28 00:51:12 +0100 received badge  Popular Question (source)
2019-03-04 16:33:22 +0100 asked a question Updating Sage

I tried the following for passing from 8.2 to 8.6.

sage-upgrade

And I got the following:

Error building Sage.

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

* package: python2-2.7.15.p0
  log file: /home/javi/SageMath/logs/pkgs/python2-2.7.15.p0.log
  build directory: /home/javi/SageMath/local/var/tmp/sage/build/python2-2.7.15.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:31: recipe for target 'all-start' failed
make[1]: *** [all-start] Error 1
make[1]: Leaving directory '/home/javi/SageMath'
Makefile:13: recipe for target 'all' failed
make: *** [all] Error 2
javi@javi-ThinkPad-E480 11:42:47 ~ > sage
Forcing sage-location, probably because a new package was installed.
Cleaning up, do not interrupt this.
Done cleaning.

If I type

sage

I note no upgrade was performed

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.2, Release Date: 2018-05-05                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.

any Idea?

2019-03-04 16:22:25 +0100 commented answer Updating Sage

continues: Makefile:31: recipe for target 'all-start' failed make[1]: * [all-start] Error 1 make[1]: Leaving directory '/home/javi/SageMath' Makefile:13: recipe for target 'all' failed make: * [all] Error 2 javi@javi-ThinkPad-E480 11:42:47 ~ > sage Forcing sage-location, probably because a new package was installed. Cleaning up, do not interrupt this. Done cleaning.

2019-03-04 16:20:59 +0100 commented answer Updating Sage

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

  • package: python2-2.7.15.p0 log file: /home/javi/SageMath/logs/pkgs/python2-2.7.15.p0.log build directory: /home/javi/SageMath/local/var/tmp/sage/build/python2-2.7.15.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.

2019-03-04 16:15:38 +0100 commented answer Using sagemath on windows 10 : impossible to attach file

I decided to move back to linux, so my comment doesnt have sense anymore. Thanks for the feedback!

2019-03-04 16:15:25 +0100 commented question Using sagemath on windows 10 : impossible to attach file

I decided to move back to linux, so my comment doesnt have sense anymore. Thanks for the feedback!

2019-03-04 16:13:09 +0100 commented answer i doesn't belong to QQbar ? Why ?

@Emmanuel Charpentier thanks for 1), my mistake. I decided to move back to linux, so my comment doesnt have sense anymore. Thanks for the feedback!

2019-03-04 16:08:10 +0100 commented answer Updating Sage

Not working for me for passing from 8.2 to 8.6. Typing

sage-upgrade

I got the following:

Error building Sage.
2019-03-04 16:04:45 +0100 received badge  Editor (source)
2019-03-04 16:03:21 +0100 answered a question Updating Sage

Not working for me for passing from 8.2 to 8.6. Typing

sage-upgrade

I got the following:

Error building Sage.

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

* package: python2-2.7.15.p0   log file: /home/user/SageMath/logs/pkgs/python2-2.7.15.p0.log build directory: /home/user/SageMath/local/var/tmp/sage/build/python2-2.7.15.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:31: recipe for target 'all-start' failed make[1]: *** [all-start] Error 1 make[1]: Leaving directory '/home/user/SageMath' Makefile:13: recipe for target 'all' failed make: *** [all] Error 2 user@user-PC 11:42:47 ~ > sage Forcing sage-location, probably because a new package was installed. Cleaning up, do not interrupt this. Done cleaning.

Then if I type "sage" on the terminal, I got:

   ┌────────────────────────────────────────────────────────────────────┐
    │ SageMath version 8.2, Release Date: 2018-05-05                     │
    │ Type "notebook()" for the browser-based notebook interface.        │
    │ Type "help()" for help.

Can anybody help ?

2019-03-04 15:25:11 +0100 received badge  Supporter (source)
2018-08-03 14:46:47 +0100 answered a question i doesn't belong to QQbar ? Why ?

Still the same bug on SageMath version 8.2, Release Date: 2018-05-05 . Nobody fix this? 0.0

2018-07-10 18:28:03 +0100 received badge  Student (source)
2018-07-09 17:43:32 +0100 asked a question Using sagemath on windows 10 : impossible to attach file

Hi! I've installed sagemath on windows 10 and I'm going crazy. The problem it seems to be that all the program is runing in some kind of temporal directory . I leave here some feedback from my console:

sage: load_attach_path()

['.']

If I change the path,

sage: load_attach_path('C:\Users\Javier\Desktop\current\height1')

sage: load_attach_path()

['.', 'C:\\Users\\Javier\\Desktop\\current\\height1']

So we can confirm the new path was added. Inside the folder height1 I have a file "'heigth1.sage". Let's try to attach it:

sage: attach("height1.sage")
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-4-cb4dd36405f2> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("aGVpZ2h0MS5zYWdl"),globals(),True)

/opt/sagemath-8.2/local/lib/python2.7/site-packages/sage/repl/load.py in load(filename, globals, attach)
    252             # See Trac 11812.
    253             if attach:
--> 254                 add_attached_file(fpath)
    255             with open(preparse_file_named(fpath)) as f:
    256                 code = compile(f.read(), preparse_file_named(fpath), 'exec')

/opt/sagemath-8.2/local/lib/python2.7/site-packages/sage/repl/attach.py in add_attached_file(filename)
    376     sage.repl.inputhook.install()
    377     fpath = os.path.abspath(filename)
--> 378     attached[fpath] = os.path.getmtime(fpath)
    379
    380

/opt/sagemath-8.2/local/lib/python2.7/genericpath.py in getmtime(filename)
     60 def getmtime(filename):
     61     """Return the last modification time of a file, reported by os.stat()."""
---> 62     return os.stat(filename).st_mtime
     63
     64

OSError: [Errno 2] No such file or directory: '/home/Javier/C:\\Users\\Javier\\Desktop\\current\\height1/height1.sage'

Recall the Error No such file or directory: '/home/Javier/C:\Users\Javier\Desktop\current\height1/height1.sage'. What ?? Please, help me ! I will appreciate your feedback very much!