Cannot "Get" Ubuntu 16.10

51 views
Skip to first unread message

Daniel Blixt

unread,
Dec 22, 2016, 2:05:19 PM12/22/16
to xAct Tensor Computer Algebra
Hi! I think I failed to post this the last time

I downloaded the xAct_1.1.2.tgz file. Initially I just used the default directory in the terminal and then I realized that I couldn't "Get" xAct. So I extracted it in /home/daniel/.Mathematica/Applications manually afterwards. It still didn't work even after restarting Mathematica and the computer. But then I tried to make a new notebook and copy my old one into this and it worked. Next time I opened Mathematica I got the Cannot "Get" error massage again.

Running $UserBaseDirectory[] gives me /root/.Mathematica[]

and $BaseDirectory[] gives me /usr/share/Mathematica[]

The solution is probably something silly that I missed

//Daniel Blixt

Thomas Bäckdahl

unread,
Dec 23, 2016, 3:45:36 AM12/23/16
to xa...@googlegroups.com
Hi!


On 2016-12-22 19:41, Daniel Blixt wrote:
Hi! I think I failed to post this the last time

No, you didn't. Every message sent to the list needs to be approved first, thereby the delay.

I downloaded the xAct_1.1.2.tgz file. Initially I just used the default directory in the terminal and then I realized that I couldn't "Get" xAct. So I extracted it in /home/daniel/.Mathematica/Applications manually afterwards. It still didn't work even after restarting Mathematica and the computer. But then I tried to make a new notebook and copy my old one into this and it worked. Next time I opened Mathematica I got the Cannot "Get" error massage again.

This is strange.

Running $UserBaseDirectory[] gives me /root/.Mathematica[]

and $BaseDirectory[] gives me /usr/share/Mathematica[]

The solution is probably something silly that I missed

Check the $Path variable.

Check that you got the correct ` character.
Either
Get["xAct`xTensor`"]
or
Needs["xAct`xTensor`"]
should work.
You can also try
Get["xAct/xTensor/xTensor.m"]
and the same thing with the full path.

I am also wondering if this can have anything to do with text file formats on different systems. The mathematica files are pure text files so perhaps different line endings on different systems could mess things up, but that is unlikely.

Regards
Thomas
//Daniel Blixt
--
You received this message because you are subscribed to the Google Groups "xAct Tensor Computer Algebra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xact+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Purnendu Karmakar

unread,
Dec 23, 2016, 10:35:54 AM12/23/16
to xAct Tensor Computer Algebra
Hi,

I think, you might like to double check the location of the folder "AddOns". It's working perfectly on my 16.10. What all you need is to put xAct package into the AddOns folder. Therefore search / locate the AddOns folder first and default path would be,
/user/local/Wolfram/Mathematica/11.0/AddOns
(11.0 is the mathematical version)
I hope it helps.

Thanks and Regards, Purnendu 

Daniel Blixt

unread,
Dec 29, 2016, 11:06:21 AM12/29/16
to xAct Tensor Computer Algebra
Hi! 

When typing $Path into Mathematica I see the following:

{"/usr/local/Wolfram/Mathematica/11.0/SystemFiles/Links", \
"/root/.Mathematica/Kernel", "/root/.Mathematica/Autoload", \
"/root/.Mathematica/Applications", "/usr/share/Mathematica/Kernel", \
"/usr/share/Mathematica/Autoload", \
"/usr/share/Mathematica/Applications", ".", "/root", \
"/usr/local/Wolfram/Mathematica/11.0/AddOns/Packages", \
"/usr/local/Wolfram/Mathematica/11.0/SystemFiles/Autoload", \
"/usr/local/Wolfram/Mathematica/11.0/AddOns/Autoload", \
"/usr/local/Wolfram/Mathematica/11.0/AddOns/Applications", \
"/usr/local/Wolfram/Mathematica/11.0/AddOns/ExtraPackages", \
"/usr/local/Wolfram/Mathematica/11.0/SystemFiles/Kernel/Packages", \
"/usr/local/Wolfram/Mathematica/11.0/Documentation/English/System", \
"/usr/local/Wolfram/Mathematica/11.0/SystemFiles/Data/ICC"}

I cannot see anything that looks weird here, but I'm new to linux so maybe you see something...

The other Get and Needs commands did not work for me either. I got get and needs error messages. 

This is a copy paste from my notebook:
<< xAct`xTensor`
So the `character should be right

I interpreted the "full path" as Get[".Mathematica/Applications/xAct/xTensor/xTensor.m"]
Now I get many more error messages. I get the following:

Get::noopen: Cannot open xAct`xCore`.
Needs::nocont: Context xAct`xCore` was not created when Needs was evaluated.
Get::noopen: Cannot open xAct`xPerm`.
xAct`xPerm`$Version::shdw: Symbol $Version appears in multiple contexts {xAct`xPerm`,xAct`xTensor`,System`}; definitions in context xAct`xPerm` may shadow or be shadowed by other definitions.
Last::normal: Nonatomic expression expected at position 1 in Last[xAct`xPerm`$Version].
General::versions: -- Message text not found -- (xPerm) (xAct`xPerm`$Version) ({1.2.3,{2015,8,23}})
Throw::nocatch: Uncaught Throw[Null] returned to top level.

Can it be that I've managed to damage the files in some way? It tries to open xCore and xPerm so I guess the Path is ok

Regards 
Daniel

Thomas Bäckdahl

unread,
Dec 29, 2016, 11:18:04 AM12/29/16
to xa...@googlegroups.com
Hi!

You said that you installed xAct into /home/daniel/.Mathematica/Applications
but that directory is not listed in $Path. This might be the problem. (I might also misinterpret the linux file system.)
Place xAct in /root/.Mathematica/Applications , /usr/share/Mathematica/Applications or /usr/local/Wolfram/Mathematica/11.0/AddOns/Applications .

Hopefully this will help.

Regards
Thomas

Daniel Blixt

unread,
Dec 29, 2016, 11:59:25 AM12/29/16
to xAct Tensor Computer Algebra
Hi!

Thanks for such a quick reply!

I am new to linux so I don't know if I understand the file system. I clicked on "Enter location" after entering the Applications folder. Then I got /home/daniel/.Mathematica/Applications

I haven't figured out another way to place xAct manually in the hidden map .Mathematica/Applications

Also it says in the installation notes to put it in $HOME/.Mathematica/Applications/ and /home/daniel/.Mathematica/Applications is the only place that made sense for me... And it worked once in that folder which is strange since I calculated an expression that had 3908 terms in the end, and I was using several xTensor and also xTras functions. Could I have managed to remove a path in some way?

//Daniel 

Leo Stein

unread,
Dec 29, 2016, 1:12:51 PM12/29/16
to Daniel Blixt, xAct Tensor Computer Algebra
Hi Daniel,

For some reason, the 'user' path in Mma is pointing to root's home directory (root is the super-user). This might happen if you are running Mma as root, or for some other system-specific reason.

L

To unsubscribe from this group and stop receiving emails from it, send an email to xact+unsubscribe@googlegroups.com.

Daniel Blixt

unread,
Jan 8, 2017, 9:12:41 AM1/8/17
to xAct Tensor Computer Algebra
Hi!

I have still not solved my problem. I'm not sure how the AddOns work. When i search my computer I cannot find any files with AddOns in the name. However I write $Path in Mathematica and get:

{"/usr/local/Wolfram/Mathematica/11.0/SystemFiles/Links", \
"/root/.Mathematica/Kernel", "/root/.Mathematica/Autoload", \
"/root/.Mathematica/Applications", "/usr/share/Mathematica/Kernel", \
"/usr/share/Mathematica/Autoload", \
"/usr/share/Mathematica/Applications", ".", "/root", \
"/usr/local/Wolfram/Mathematica/11.0/AddOns/Packages", \
"/usr/local/Wolfram/Mathematica/11.0/SystemFiles/Autoload", \
"/usr/local/Wolfram/Mathematica/11.0/AddOns/Autoload", \
"/usr/local/Wolfram/Mathematica/11.0/AddOns/Applications", \
"/usr/local/Wolfram/Mathematica/11.0/AddOns/ExtraPackages", \
"/usr/local/Wolfram/Mathematica/11.0/SystemFiles/Kernel/Packages", \
"/usr/local/Wolfram/Mathematica/11.0/Documentation/English/System", \
"/usr/local/Wolfram/Mathematica/11.0/SystemFiles/Data/ICC"}

,where the red marked I interpret as where it should be placed. Went to home then .Mathematica then Application where I've extracted xAct. Has I misinterpreted anything? Could you in that case explain? =)

Thanks
//Daniel

Daniel Blixt

unread,
Jan 8, 2017, 9:13:08 AM1/8/17
to xAct Tensor Computer Algebra, dale...@gmail.com
Hi!

I installed Mathematica in the default directory using the instructions on this page: http://support.wolfram.com/kb/12453

i needed sudo in order to do so, so I don't think I run Mathemtica as root. Is it only pointing to root? I think it's pointing to user as well (but I'm new to Linux). If that's the problem... Could I then add a Path which would solve my problem?

Thanks 
//Daniel

Leo Stein

unread,
Jan 8, 2017, 12:27:13 PM1/8/17
to Daniel Blixt, xAct Tensor Computer Algebra
Hi Daniel,

No, it is not pointing to the home directory of your user's account, which is named 'daniel' (you mentioned /home/daniel in a previous email). Your $Path variable in Mathematica has no mention of /home/daniel/.Mathematica/Applications (the place you have tried to install xAct), but it does mention /root/.Mathematica/Applications. This is what makes me think that you are running Mathematica as root. I don't know the details of a linux Mma install so I won't speculate about why it seems to be running as root.

If you want to perform a system-wide installation, then you should install into /usr/share/Mathematica/Applications . Go to your command line, and write:
sudo mkdir -p /usr/share/Mathematica/Applications        # creates this dir if it doesn't already exist
cd cd /usr/share/Mathematica/Applications
sudo cp PATH/TO/MY/DOWNLOADS/FOLDER/xAct_1.1.2.tgz .
sudo tar xvzf xAct_1.1.2.tgz
you should then have a directory structure that has files at locations like:
/usr/share/Mathematica/Applications/xAct/xTensor/xTensor.nb

Hope this helps
L

To unsubscribe from this group and stop receiving emails from it, send an email to xact+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages