Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error running rM2PDF.py #5

Open
pybe opened this issue Sep 26, 2019 · 6 comments
Open

error running rM2PDF.py #5

pybe opened this issue Sep 26, 2019 · 6 comments
Assignees

Comments

@pybe
Copy link

pybe commented Sep 26, 2019

I updated both scripts with the path I wanted. Sync ran fine:

Thu Sep 26 13:00:54 BST 2019

BEGIN BACKUP
scp "[email protected]:/home/root/.local/share/remarkable/xochitl/" /mnt/chromeos/GoogleDrive/MyDrive/rM2PDF/original_pdf/
BACKUP END

but when I run rM2PDF.py I get:

./rM2PDF.py: line 7: input_dir: command not found
./rM2PDF.py: line 8: output_dir: command not found
./rM2PDF.py: line 9: t: command not found

and the script appears to hang there. Stopping it with a couple of ctrl+c gives:

^C^C./rM2PDF.py: line 16: note_line: command not found
./rM2PDF.py: line 17: syntax error near unexpected token `('
./rM2PDF.py: line 17: `for file in os.listdir(input_dir):'

Here is the edited paths section from rM2PDF.py

#--------------------------------------------------#
# set input_dir and output_dir as same as rMsync.sh
input_dir = '/mnt/chromeos/GoogleDrive/MyDrive/rM2PDF/original_pdf/'
output_dir = '/mnt/chromeos/GoogleDrive/MyDrive/rM2PDF/noted_pdf/'
t = '/mnt/chromeos/GoogleDrive/MyDrive/rM2PDF/temporary/'
#--------------------------------------------------#
@zxdawn zxdawn self-assigned this Sep 26, 2019
@zxdawn
Copy link
Owner

zxdawn commented Sep 26, 2019

@pybe Thank you for your report! I'm busy these days. Will check it and give you back next week.

@pybe
Copy link
Author

pybe commented Sep 26, 2019 via email

@zxdawn
Copy link
Owner

zxdawn commented Sep 26, 2019

@pybe OK. How did you run the .py script?

@pybe
Copy link
Author

pybe commented Sep 26, 2019 via email

@zxdawn
Copy link
Owner

zxdawn commented Sep 26, 2019

@pybe Aha. You need to run like this python rM2PDF.py.

@pybe
Copy link
Author

pybe commented Sep 26, 2019

ok did that and it immediately finished (returned to prompt) with no output and appears to have done nothing...

Python 2.7.13

Running on a Chromebook in a crostini Linux container which is Debian 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants