Mathematica on Raspberry Pi cannot read simple text filetext in mathematicaReading this type of file in MathematicaReading an UTF-8 encoded text file in Mathematicahelp on formatting my notebook back as it was. From 'code' style to Input styleEfficiently Working with (and generating) Large Text FilesReading in Packages in MathematicaReading a file backwards in Mathematica — How?Impossible to scan RFID tags using libnfc, PN532, and RPi3Read Mathematica generated text fileWhy a simple Plot on Raspberry Pi 3 with Mathematica takes 20 seconds?
Why does Kotter return in Welcome Back Kotter?
Python: next in for loop
How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?
Why are 150k or 200k jobs considered good when there are 300k+ births a month?
Is it unprofessional to ask if a job posting on GlassDoor is real?
Do VLANs within a subnet need to have their own subnet for router on a stick?
Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?
What would happen to a modern skyscraper if it rains micro blackholes?
How does one intimidate enemies without having the capacity for violence?
Is it possible to do 50 km distance without any previous training?
Arthur Somervell: 1000 Exercises - Meaning of this notation
Adding span tags within wp_list_pages list items
Today is the Center
Mage Armor with Defense fighting style (for Adventurers League bladeslinger)
How to format long polynomial?
How to find program name(s) of an installed package?
can i play a electric guitar through a bass amp?
Smoothness of finite-dimensional functional calculus
strToHex ( string to it's hex representation as string)
Dragon forelimb placement
How can I make my BBEG immortal short of making them a Lich or Vampire?
Modeling an IPv4 Address
Languages that we cannot (dis)prove to be Context-Free
How old can references or sources in a thesis be?
Mathematica on Raspberry Pi cannot read simple text file
text in mathematicaReading this type of file in MathematicaReading an UTF-8 encoded text file in Mathematicahelp on formatting my notebook back as it was. From 'code' style to Input styleEfficiently Working with (and generating) Large Text FilesReading in Packages in MathematicaReading a file backwards in Mathematica — How?Impossible to scan RFID tags using libnfc, PN532, and RPi3Read Mathematica generated text fileWhy a simple Plot on Raspberry Pi 3 with Mathematica takes 20 seconds?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Raspberry Pi question.
I ported a working notebook from my computer to RPi where Mathematica was pre-installed. It starts nicely, but stops as it tries to read a simple text file. The very first lines are these:
$HomeDirectory
/home/pi
dict0 = ToString /@ ReadList["sv_JSPFirefoxRensadCRUTF-8.txt"]
ReadList::noopen: Cannot open sv_JSPFirefoxRensadCRUTF-8.txt.
$Failed
I have also contacted the Wolfram community, a lot of readers, no answer. I am turning into desperation mode.
I have not changed anything, same text file etc. Any suggestions would be much appreciated. Thank you very much in advance.
wolfram-mathematica raspberry-pi3
add a comment |
Raspberry Pi question.
I ported a working notebook from my computer to RPi where Mathematica was pre-installed. It starts nicely, but stops as it tries to read a simple text file. The very first lines are these:
$HomeDirectory
/home/pi
dict0 = ToString /@ ReadList["sv_JSPFirefoxRensadCRUTF-8.txt"]
ReadList::noopen: Cannot open sv_JSPFirefoxRensadCRUTF-8.txt.
$Failed
I have also contacted the Wolfram community, a lot of readers, no answer. I am turning into desperation mode.
I have not changed anything, same text file etc. Any suggestions would be much appreciated. Thank you very much in advance.
wolfram-mathematica raspberry-pi3
Just an idea: what happens if you give full path to the same file?
– ZorgoZ
Mar 4 at 20:30
YES! Thank you, very much. So simple, I blush. I do not understand, the directory is set to the folder. Now I get some problems further down the notebook, I will deal with those tomorrow (getting late here). Thank you very much!
– JSP
Mar 4 at 21:41
add a comment |
Raspberry Pi question.
I ported a working notebook from my computer to RPi where Mathematica was pre-installed. It starts nicely, but stops as it tries to read a simple text file. The very first lines are these:
$HomeDirectory
/home/pi
dict0 = ToString /@ ReadList["sv_JSPFirefoxRensadCRUTF-8.txt"]
ReadList::noopen: Cannot open sv_JSPFirefoxRensadCRUTF-8.txt.
$Failed
I have also contacted the Wolfram community, a lot of readers, no answer. I am turning into desperation mode.
I have not changed anything, same text file etc. Any suggestions would be much appreciated. Thank you very much in advance.
wolfram-mathematica raspberry-pi3
Raspberry Pi question.
I ported a working notebook from my computer to RPi where Mathematica was pre-installed. It starts nicely, but stops as it tries to read a simple text file. The very first lines are these:
$HomeDirectory
/home/pi
dict0 = ToString /@ ReadList["sv_JSPFirefoxRensadCRUTF-8.txt"]
ReadList::noopen: Cannot open sv_JSPFirefoxRensadCRUTF-8.txt.
$Failed
I have also contacted the Wolfram community, a lot of readers, no answer. I am turning into desperation mode.
I have not changed anything, same text file etc. Any suggestions would be much appreciated. Thank you very much in advance.
wolfram-mathematica raspberry-pi3
wolfram-mathematica raspberry-pi3
asked Mar 4 at 20:26
JSPJSP
235
235
Just an idea: what happens if you give full path to the same file?
– ZorgoZ
Mar 4 at 20:30
YES! Thank you, very much. So simple, I blush. I do not understand, the directory is set to the folder. Now I get some problems further down the notebook, I will deal with those tomorrow (getting late here). Thank you very much!
– JSP
Mar 4 at 21:41
add a comment |
Just an idea: what happens if you give full path to the same file?
– ZorgoZ
Mar 4 at 20:30
YES! Thank you, very much. So simple, I blush. I do not understand, the directory is set to the folder. Now I get some problems further down the notebook, I will deal with those tomorrow (getting late here). Thank you very much!
– JSP
Mar 4 at 21:41
Just an idea: what happens if you give full path to the same file?
– ZorgoZ
Mar 4 at 20:30
Just an idea: what happens if you give full path to the same file?
– ZorgoZ
Mar 4 at 20:30
YES! Thank you, very much. So simple, I blush. I do not understand, the directory is set to the folder. Now I get some problems further down the notebook, I will deal with those tomorrow (getting late here). Thank you very much!
– JSP
Mar 4 at 21:41
YES! Thank you, very much. So simple, I blush. I do not understand, the directory is set to the folder. Now I get some problems further down the notebook, I will deal with those tomorrow (getting late here). Thank you very much!
– JSP
Mar 4 at 21:41
add a comment |
1 Answer
1
active
oldest
votes
$HomeDirectory returns your home directory but does not set your working directory to that directory. DirectoryStack shows you what directories have been set. $Path is also useful here. You need to use SetDirectory.
SetDirectory[]
or
SetDirectory[$HomeDirectory]
You should see the Directories & Directory Operations guide for more information.
Hope this helps.
Thank you, both. I also asked Wolfram directly and the answer was along your suggestions, simply writing:SetDirectory[NotebookDirectory[]]assuming all such help files are in the same folder as the notebook.
– JSP
Mar 9 at 14:48
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54991024%2fmathematica-on-raspberry-pi-cannot-read-simple-text-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$HomeDirectory returns your home directory but does not set your working directory to that directory. DirectoryStack shows you what directories have been set. $Path is also useful here. You need to use SetDirectory.
SetDirectory[]
or
SetDirectory[$HomeDirectory]
You should see the Directories & Directory Operations guide for more information.
Hope this helps.
Thank you, both. I also asked Wolfram directly and the answer was along your suggestions, simply writing:SetDirectory[NotebookDirectory[]]assuming all such help files are in the same folder as the notebook.
– JSP
Mar 9 at 14:48
add a comment |
$HomeDirectory returns your home directory but does not set your working directory to that directory. DirectoryStack shows you what directories have been set. $Path is also useful here. You need to use SetDirectory.
SetDirectory[]
or
SetDirectory[$HomeDirectory]
You should see the Directories & Directory Operations guide for more information.
Hope this helps.
Thank you, both. I also asked Wolfram directly and the answer was along your suggestions, simply writing:SetDirectory[NotebookDirectory[]]assuming all such help files are in the same folder as the notebook.
– JSP
Mar 9 at 14:48
add a comment |
$HomeDirectory returns your home directory but does not set your working directory to that directory. DirectoryStack shows you what directories have been set. $Path is also useful here. You need to use SetDirectory.
SetDirectory[]
or
SetDirectory[$HomeDirectory]
You should see the Directories & Directory Operations guide for more information.
Hope this helps.
$HomeDirectory returns your home directory but does not set your working directory to that directory. DirectoryStack shows you what directories have been set. $Path is also useful here. You need to use SetDirectory.
SetDirectory[]
or
SetDirectory[$HomeDirectory]
You should see the Directories & Directory Operations guide for more information.
Hope this helps.
answered Mar 9 at 2:11
EdmundEdmund
319213
319213
Thank you, both. I also asked Wolfram directly and the answer was along your suggestions, simply writing:SetDirectory[NotebookDirectory[]]assuming all such help files are in the same folder as the notebook.
– JSP
Mar 9 at 14:48
add a comment |
Thank you, both. I also asked Wolfram directly and the answer was along your suggestions, simply writing:SetDirectory[NotebookDirectory[]]assuming all such help files are in the same folder as the notebook.
– JSP
Mar 9 at 14:48
Thank you, both. I also asked Wolfram directly and the answer was along your suggestions, simply writing:
SetDirectory[NotebookDirectory[]] assuming all such help files are in the same folder as the notebook.– JSP
Mar 9 at 14:48
Thank you, both. I also asked Wolfram directly and the answer was along your suggestions, simply writing:
SetDirectory[NotebookDirectory[]] assuming all such help files are in the same folder as the notebook.– JSP
Mar 9 at 14:48
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54991024%2fmathematica-on-raspberry-pi-cannot-read-simple-text-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Just an idea: what happens if you give full path to the same file?
– ZorgoZ
Mar 4 at 20:30
YES! Thank you, very much. So simple, I blush. I do not understand, the directory is set to the folder. Now I get some problems further down the notebook, I will deal with those tomorrow (getting late here). Thank you very much!
– JSP
Mar 4 at 21:41