musically-ut / anki-slides-import

📇 Import pdf slides + text notes into Anki.
MIT License
25 stars 4 forks source link

File Directory #8

Open MousaGhannam opened 4 years ago

MousaGhannam commented 4 years ago

Hi there,

Just wanted to start by thanking you for making a tool like this, I think it's an amazing idea.

As somebody with a remedial level of programming knowledge, I was wondering if you could direct me to the repository where we store the files we want to import.

Using the command: slides2anki -U "~/Library/Application Support/Anki2/myProfileName" example_notes.txt Veg-food-in-Japan.pdf decktest.apkg I believe I have been able to successfully route the file path of my user profile.

However, when I run the command, I get the error Error while reading source files: [Errno 2] No such file or directory: 'example_notes.txt'. I have tried putting the PDF and example_notes from your test folder in various directories, including the folder for my own user profile. I have also tried storing it in the slidesimport folder within the python site-packages directory, but to no avail.

If you have any idea why this is happening, please let me know. I would really love to take advantage of this wonderful tool. :)

Best regards, Mousa

musically-ut commented 4 years ago

Hi Mousa,

Thanks for the kind words. Please excuse my inaction and do not confuse it with lack of interest. I will look into the problem once I get some time; I'm travelling at the moment.

In the meanwhile, if you are able to resolve the issue, then it would be great if you could post the resolution here so that I could include it in the README.

Thanks!

~ Utkarsh

On Sun, Oct 27, 2019 at 9:41 PM Mousa Ghannam notifications@github.com wrote:

Hi there,

Just wanted to start by thanking you for making a tool like this, I think it's an amazing idea.

As somebody with a remedial level of programming knowledge, I was wondering if you could direct me to the repository where we store the files we want to import.

Using the command: slides2anki -U "~/Library/Application Support/Anki2/myProfileName" example_notes.txt Veg-food-in-Japan.pdf decktest.apkg I believe I have been able to successfully route the file path of my user profile.

However, when I run the command, I get the error Error while reading source files: [Errno 2] No such file or directory: 'example_notes.txt' . I have tried putting the PDF and example_notes from your test folder in various directories, including the folder for my own user profile. I have also tried storing it in the slidesimport folder within the python site-packages directory, but to no avail.

If you have any idea why this is happening, please let me know. I would really love to take advantage of this wonderful tool. :)

Best regards, Mousa

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/musically-ut/anki-slides-import/issues/8?email_source=notifications&email_token=AAD2YXC3G7ECVBSOUNBP4NDQQX4HPA5CNFSM4JFTKQG2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HUUBTUQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD2YXBDIMRBS7C5F36DEJDQQX4HPANCNFSM4JFTKQGQ .

musically-ut commented 4 years ago

Hmm, I am unable to reproduce the problem on my system.

For example, after I clone the repository and install slides2anki, then I can do the following from the cloned folder:

➔ slides2anki -f -U ~/Library/Application\ Support/Anki2/User\ 1 test/example_notes.txt test/Veg-food-in-Japan.pdf op.apkg
Verifying arguments ...
Done.
Reading files ...
Done reading files.
Starting extraction ...
[Done]

with the files at their default locations.

Could you give me more details about how you are running into the error: