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

Issue with uplouding #70

Open
Frederik-Edel opened this issue Jul 14, 2022 · 8 comments
Open

Issue with uplouding #70

Frederik-Edel opened this issue Jul 14, 2022 · 8 comments
Assignees
Labels
question Further information is requested

Comments

@Frederik-Edel
Copy link

Hello, i get an error when i try using this command to upload, I've been trying to figure it out but I'm still to noob. I think its a problem with my rmapi installation?!

docker run -it --rm -v C:\Users\frede\Git-Reps\Remarkable:/goosepaper/mount -v C:\Users\frede.rmapy:/root/.rmapy j6k4m8/goosepaper goosepaper -c mount/example-config.json -o mount/Goosepaper.pdf --upload

WARNING:weasyprint:Ignored font-display: swap at 6:3, descriptor not supported.
WARNING:weasyprint:Ignored font-display: swap at 14:3, descriptor not supported.
WARNING:weasyprint:Ignored font-display: swap at 22:3, descriptor not supported.
WARNING:weasyprint:Ignored font-display: swap at 30:3, descriptor not supported.
WARNING:weasyprint:Ignored font-display: swap at 37:3, descriptor not supported.
WARNING:weasyprint:Ignored font-display: swap at 44:3, descriptor not supported.
WARNING:weasyprint:Ignored font-display: swap at 51:3, descriptor not supported.
WARNING:weasyprint:Anchor defined twice: 'content'
WARNING:weasyprint:Anchor defined twice: 'acceptanceDate'
WARNING:weasyprint:Anchor defined twice: 'content'
WARNING:weasyprint:Anchor defined twice: 'acceptanceDate'
WARNING:weasyprint:Anchor defined twice: 'content'
WARNING:weasyprint:Anchor defined twice: 'acceptanceDate'
WARNING:weasyprint:Anchor defined twice: 'content'
WARNING:weasyprint:Anchor defined twice: 'acceptanceDate'
Traceback (most recent call last):
File "/usr/local/bin/goosepaper", line 33, in
sys.exit(load_entry_point('goosepaper', 'console_scripts', 'goosepaper')())
File "/goosepaper/goosepaper/main.py", line 52, in main
upload(filepath=filename, multiparser=multiparser)
File "/goosepaper/goosepaper/upload.py", line 112, in upload
client = auth_client()
File "/goosepaper/goosepaper/auth.py", line 8, in auth_client
client = Client()
File "/usr/local/lib/python3.8/site-packages/rmapy/api.py", line 39, in init
config = config_dict or load()
File "/usr/local/lib/python3.8/site-packages/rmapy/config.py", line 14, in load
with open(config_file_path, 'r') as config_file:
IsADirectoryError: [Errno 21] Is a directory: '/root/.rmapy'

@Frederik-Edel Frederik-Edel changed the title Trouble with uplouding Issue with uplouding Jul 14, 2022
@j6k4m8
Copy link
Owner

j6k4m8 commented Jul 14, 2022

Hi @Frederik-Edel, thank you for reporting this! Is your C:\Users\frede.rmapy path a file or a directory? (On my machine, I have a file called .rmapy in my home directory.) Perhaps this should be C:\Users\frede\.rmapy?

@j6k4m8 j6k4m8 self-assigned this Jul 14, 2022
@j6k4m8 j6k4m8 added the question Further information is requested label Jul 14, 2022
@Frederik-Edel
Copy link
Author

Hello, on "C:\Users\fred2e is my home dir (win) and .rmapy is a folder, it was created during the installation of rmapi, do you know what thats supposed to be?

@j6k4m8
Copy link
Owner

j6k4m8 commented Jul 17, 2022

I think this should be a file (not a directory) that contains your credentials; check out the beginning of this tutorial for some more context!

@kurt-rhee
Copy link

kurt-rhee commented Oct 22, 2022

Hello, I am also having issues with uploading which are due to rmapi.

I followed the tutorial in the link above, but got an Exec format error, I think this may be because I am running on Ubuntu. I also noticed that there is an rmapy fork linked in the documentation, but I was not sure how to set up the rmapy fork. I am not sure what mount means.

Apologies for my low skill in programming. Thank you ahead of time for your help!

@kurt-rhee
Copy link

I have tried going to goosepaper/goosepaper/auth.py

When running auth.py I get to the "Input a code from ..." prompt. When I go to https://my.remarkable.com/connect/remarkable and log in, I just get a blank screen with no code displayed. I have tried on both firefox and chrome.

Thank you again

@j6k4m8
Copy link
Owner

j6k4m8 commented Oct 25, 2022

Unfortunately there does seem to be a problem with rmapy, and I am currently super busy and haven't had an opportunity to do a deep dive.

I am hoping to totally rewrite all of the authentication logic in this and in remailable soon because it's a huge bummer not to have these tools working!

Are you able to access the page using this link?

https://my.remarkable.com/device/desktop/connect

@j6k4m8
Copy link
Owner

j6k4m8 commented Oct 25, 2022

(PS: Thanks for your patience, and sorry it's taken a while! It's good to know people want to use this tool, it's been a labor of love and I really appreciate the reports!)

@kurt-rhee
Copy link

The tool is awesome, I just wish that remarkable would open up their API and make the device more developer friendly! I think a method that works around rmapy would be to publish a PDF to a user's google drive account and then use the connect function on the remarkable to retrieve it. It's less elegant than the current solution but perhaps more robust to unforeseen changes by the RM team.

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

No branches or pull requests

3 participants