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;








0















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.










share|improve this question






















  • 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


















0















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.










share|improve this question






















  • 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














0












0








0


1






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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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


















  • 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













1 Answer
1






active

oldest

votes


















1














$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.






share|improve this answer























  • 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












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
);



);













draft saved

draft discarded


















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









1














$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.






share|improve this answer























  • 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
















1














$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.






share|improve this answer























  • 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














1












1








1







$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.






share|improve this answer













$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.







share|improve this answer












share|improve this answer



share|improve this answer










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


















  • 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




















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

List of MPs elected to the English parliament in 1640 (April) Contents List of constituencies and members See also Notes References Navigation menueNational Archives – The Glynde Place ArchivesCobbett's Parliamentary history of England, from the Norman Conquest in 1066 to the year 1803'Aldermen in Parliament', The Aldermen of the City of London: Temp. Henry III – 1912onepage&q&f&#61, false 229