Jump to content

So, this is a continuation of one of my previous posts, can someone help me please to fix this error? Once again I am using the https://www.literai.com/tutorial/ windows. Basically, I got the file into the container but when I go running it this shows up. This for some reason shows up when I try to run it. Please help me.SthB7bi.png

Link to comment
https://linustechtips.com/topic/1069587-ai-not-writing-error/
Share on other sites

Link to post
Share on other sites

Did you copy the file over to the container as the tutorial says? What are the outputs of

ls -la

and

ls -la Y1

?

 

The error is consistent with what I got when I passed it a non existent file... otherwise it worked perfectly for me.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
https://linustechtips.com/topic/1069587-ai-not-writing-error/#findComment-12618288
Share on other sites

Link to post
Share on other sites

13 hours ago, Nul Atlas said:

Yes i did copy the file over into it

 

quote me when you answer to my posts

13 hours ago, Nul Atlas said:

This is the photo Y1 is a fille downloaded for this purpose of the website. I passed it on into the container.Dnn9teC.png

try moving the .t7 file outside of the directory and run the command again without Y1/

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
https://linustechtips.com/topic/1069587-ai-not-writing-error/#findComment-12619688
Share on other sites

Link to post
Share on other sites

22 hours ago, Sauron said:

ls -la

 

22 hours ago, Sauron said:

ls -la Y1

 

I ran both these and it outputs this.

 

root@f15c041cb785:~/torch-rnn# ls -al
total 124
drwxr-xr-x  1 root root 4096 Jun  4 20:49 .
drwx------  1 root root 4096 May 15  2016 ..
drwxr-xr-x  8 root root 4096 May 15  2016 .git
-rw-r--r--  1 root root   32 May 15  2016 .gitignore
-rw-r--r--  1 root root 1081 May 15  2016 LICENSE.md
-rw-r--r--  1 root root 8765 May 15  2016 LSTM.lua
-rw-r--r--  1 root root 5434 May 15  2016 LanguageModel.lua
-rw-r--r--  1 root root 6848 May 15  2016 README.md
-rw-r--r--  1 root root 1333 May 15  2016 TemporalAdapter.lua
-rw-r--r--  1 root root 3816 May 15  2016 TemporalCrossEntropyCriterion.lua
-rw-r--r--  1 root root 5754 May 15  2016 VanillaRNN.lua
drwxr-xr-x 10 root root 4096 May 31 01:19 Y1
drwxr-xr-x  2 root root 4096 May 15  2016 data
drwxr-xr-x  2 root root 4096 May 15  2016 doc
-rw-r--r--  1 root root 1680 May 15  2016 eval.lua
drwxr-xr-x  2 root root 4096 May 15  2016 imgs
-rw-r--r--  1 root root  136 May 15  2016 init.lua
-rw-r--r--  1 root root   84 May 15  2016 requirements.txt
-rw-r--r--  1 root root  962 May 15  2016 sample.lua
drwxr-xr-x  2 root root 4096 May 15  2016 scripts
drwxr-xr-x  2 root root 4096 May 15  2016 test
-rw-r--r--  1 root root  671 May 15  2016 torch-rnn-scm-1.rockspec
-rw-r--r--  1 root root 7776 May 15  2016 train.lua
drwxr-xr-x  2 root root 4096 May 15  2016 util
root@f15c041cb785:~/torch-rnn# ls -al Y1
total 120
drwxr-xr-x 10 root root 4096 May 31 01:19 .
drwxr-xr-x  1 root root 4096 Jun  4 20:49 ..
drwxr-xr-x  8 root root 4096 May 15  2016 .git
-rwxr-xr-x  1 root root   32 May 15  2016 .gitignore
-rwxr-xr-x  1 root root 1081 May 15  2016 LICENSE.md
-rwxr-xr-x  1 root root 8765 May 15  2016 LSTM.lua
-rwxr-xr-x  1 root root 5434 May 15  2016 LanguageModel.lua
-rwxr-xr-x  1 root root 6848 May 15  2016 README.md
-rwxr-xr-x  1 root root 1333 May 15  2016 TemporalAdapter.lua
-rwxr-xr-x  1 root root 3816 May 15  2016 TemporalCrossEntropyCriterion.lua
-rwxr-xr-x  1 root root 5754 May 15  2016 VanillaRNN.lua
drwxr-xr-x  2 root root 4096 May 15  2016 data
drwxr-xr-x  2 root root 4096 May 15  2016 doc
-rwxr-xr-x  1 root root 1680 May 15  2016 eval.lua
drwxr-xr-x  2 root root 4096 May 15  2016 imgs
-rwxr-xr-x  1 root root  136 May 15  2016 init.lua
-rwxr-xr-x  1 root root   84 May 15  2016 requirements.txt
-rwxr-xr-x  1 root root  962 May 15  2016 sample.lua
drwxr-xr-x  2 root root 4096 May 15  2016 scripts
drwxr-xr-x  2 root root 4096 May 15  2016 test
drwxr-xr-x  9 root root 4096 May 15  2016 torch-rnn
-rwxr-xr-x  1 root root  671 May 15  2016 torch-rnn-scm-1.rockspec
-rwxr-xr-x  1 root root 7776 May 15  2016 train.lua
drwxr-xr-x  2 root root 4096 May 15  2016 util

Y1 is present in the file. I ran it without it and it output the same result as with it in the container. 

It output this.
 

C:\Users\chris>docker run -ti --rm --name literai crisbal/torch-rnn:base
root@9b62e5e9c3f4:~/torch-rnn# th sample.lua -checkpoint Y1/Y1.t7 -length 2000 -temperature 0.7 -gpu -1
/root/torch/install/bin/luajit: cannot open <Y1/Y1.t7> in mode r  at /tmp/luarocks_torch-scm-1-437/torch7/lib/TH/THDiskFile.c:649
stack traceback:
        [C]: at 0x7faace8007c0
        [C]: in function 'DiskFile'
        /root/torch/install/share/lua/5.1/torch/File.lua:405: in function 'load'
        sample.lua:19: in main chunk
        [C]: in function 'dofile'
        /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: at 0x00406670
root@9b62e5e9c3f4:~/torch-rnn#

 

Link to comment
https://linustechtips.com/topic/1069587-ai-not-writing-error/#findComment-12620790
Share on other sites

Link to post
Share on other sites

9 minutes ago, Nul Atlas said:

 

I ran both these and it outputs this.

 

coherence


root@f15c041cb785:~/torch-rnn# ls -al
total 124
drwxr-xr-x  1 root root 4096 Jun  4 20:49 .
drwx------  1 root root 4096 May 15  2016 ..
drwxr-xr-x  8 root root 4096 May 15  2016 .git
-rw-r--r--  1 root root   32 May 15  2016 .gitignore
-rw-r--r--  1 root root 1081 May 15  2016 LICENSE.md
-rw-r--r--  1 root root 8765 May 15  2016 LSTM.lua
-rw-r--r--  1 root root 5434 May 15  2016 LanguageModel.lua
-rw-r--r--  1 root root 6848 May 15  2016 README.md
-rw-r--r--  1 root root 1333 May 15  2016 TemporalAdapter.lua
-rw-r--r--  1 root root 3816 May 15  2016 TemporalCrossEntropyCriterion.lua
-rw-r--r--  1 root root 5754 May 15  2016 VanillaRNN.lua
drwxr-xr-x 10 root root 4096 May 31 01:19 Y1
drwxr-xr-x  2 root root 4096 May 15  2016 data
drwxr-xr-x  2 root root 4096 May 15  2016 doc
-rw-r--r--  1 root root 1680 May 15  2016 eval.lua
drwxr-xr-x  2 root root 4096 May 15  2016 imgs
-rw-r--r--  1 root root  136 May 15  2016 init.lua
-rw-r--r--  1 root root   84 May 15  2016 requirements.txt
-rw-r--r--  1 root root  962 May 15  2016 sample.lua
drwxr-xr-x  2 root root 4096 May 15  2016 scripts
drwxr-xr-x  2 root root 4096 May 15  2016 test
-rw-r--r--  1 root root  671 May 15  2016 torch-rnn-scm-1.rockspec
-rw-r--r--  1 root root 7776 May 15  2016 train.lua
drwxr-xr-x  2 root root 4096 May 15  2016 util
root@f15c041cb785:~/torch-rnn# ls -al Y1
total 120
drwxr-xr-x 10 root root 4096 May 31 01:19 .
drwxr-xr-x  1 root root 4096 Jun  4 20:49 ..
drwxr-xr-x  8 root root 4096 May 15  2016 .git
-rwxr-xr-x  1 root root   32 May 15  2016 .gitignore
-rwxr-xr-x  1 root root 1081 May 15  2016 LICENSE.md
-rwxr-xr-x  1 root root 8765 May 15  2016 LSTM.lua
-rwxr-xr-x  1 root root 5434 May 15  2016 LanguageModel.lua
-rwxr-xr-x  1 root root 6848 May 15  2016 README.md
-rwxr-xr-x  1 root root 1333 May 15  2016 TemporalAdapter.lua
-rwxr-xr-x  1 root root 3816 May 15  2016 TemporalCrossEntropyCriterion.lua
-rwxr-xr-x  1 root root 5754 May 15  2016 VanillaRNN.lua
drwxr-xr-x  2 root root 4096 May 15  2016 data
drwxr-xr-x  2 root root 4096 May 15  2016 doc
-rwxr-xr-x  1 root root 1680 May 15  2016 eval.lua
drwxr-xr-x  2 root root 4096 May 15  2016 imgs
-rwxr-xr-x  1 root root  136 May 15  2016 init.lua
-rwxr-xr-x  1 root root   84 May 15  2016 requirements.txt
-rwxr-xr-x  1 root root  962 May 15  2016 sample.lua
drwxr-xr-x  2 root root 4096 May 15  2016 scripts
drwxr-xr-x  2 root root 4096 May 15  2016 test
drwxr-xr-x  9 root root 4096 May 15  2016 torch-rnn
-rwxr-xr-x  1 root root  671 May 15  2016 torch-rnn-scm-1.rockspec
-rwxr-xr-x  1 root root 7776 May 15  2016 train.lua
drwxr-xr-x  2 root root 4096 May 15  2016 util

Y1 is present in the file. I ran it without it and it output the same result as with it in the container. 

It output this.
 


C:\Users\chris>docker run -ti --rm --name literai crisbal/torch-rnn:base
root@9b62e5e9c3f4:~/torch-rnn# th sample.lua -checkpoint Y1/Y1.t7 -length 2000 -temperature 0.7 -gpu -1
/root/torch/install/bin/luajit: cannot open <Y1/Y1.t7> in mode r  at /tmp/luarocks_torch-scm-1-437/torch7/lib/TH/THDiskFile.c:649
stack traceback:
        [C]: at 0x7faace8007c0
        [C]: in function 'DiskFile'
        /root/torch/install/share/lua/5.1/torch/File.lua:405: in function 'load'
        sample.lua:19: in main chunk
        [C]: in function 'dofile'
        /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: at 0x00406670
root@9b62e5e9c3f4:~/torch-rnn#

 

From the second command it seems Y1.t7 doesn't exist and you just copied the contents of the container's home folder to Y1/.

 

Try running the copy again. From outside the container, run

docker cp C:\Users\YourUser\PathToTheFolder\Y1\ literai:root/torch-rnn/Y1/

making SURE the path to the Y1 folder is correct. Please post the output of the command, too.

 

Then open the container and see if now it works. Also, can you give me the link to the Y1.t7 file you downloaded?

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
https://linustechtips.com/topic/1069587-ai-not-writing-error/#findComment-12620814
Share on other sites

Link to post
Share on other sites

It was downloaded off the original website off a random story's name which I don't remember sorry.
When transferring the file by putting in the command
 

 docker cp "C:\Users\chris\Desktop\Commercial\Y1\" literai:root/torch-rnn/Y1/

That is what I run inside docker toolbox. Its been loading the file in docker for a good 20 minutes now and is just showing this
 

chris@Atlas MINGW64 /c/Program Files/Docker Toolbox
$  docker cp "C:\Users\chris\Desktop\Commercial\Y1\" literai:root/torch-rnn/Y1/
>
>

 

Link to comment
https://linustechtips.com/topic/1069587-ai-not-writing-error/#findComment-12620891
Share on other sites

Link to post
Share on other sites

Just now, Nul Atlas said:

It was downloaded off the original website off a random story's name which I don't remember sorry.
When transferring the file by putting in the command
 


 docker cp "C:\Users\chris\Desktop\Commercial\Y1\" literai:root/torch-rnn/Y1/

That is what I run inside docker toolbox. Its been loading the file in docker for a good 20 minutes now and is just showing this
 


chris@Atlas MINGW64 /c/Program Files/Docker Toolbox
$  docker cp "C:\Users\chris\Desktop\Commercial\Y1\" literai:root/torch-rnn/Y1/
>
>

 

 

Link to comment
https://linustechtips.com/topic/1069587-ai-not-writing-error/#findComment-12620895
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×