-
Notifications
You must be signed in to change notification settings - Fork 21
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
pyonenote
not working from the command line
#21
Comments
Can you share the sample? or if it is on VirusTotal, share the SHA256? Without having the sample it is very hard to debug. Most probably the .one file contains a structure that is not supported by pyOneNote... Did you test with another .one document? |
I'm getting a message saying the file type (.one) isn't supported when I try to add it here. |
@DissectMalware, how can I send the file to you? |
@DissectMalware Hello, thank you for this tool. I got the same error: 'ValueError: cannot fit 'int' into an offset-sized integer' for a different sample, that can be obtained from VT (sha256: f770bf655720539c6171e77758383744be087b480a3f70256cc5043c489e529e). Hope this helps. Traceback (most recent call last): |
I got the same error. Here is a zipped example file to trigger this: Schnelle Notizen.one.zip |
I copy/paste the file on my computer and I don't have any problem (your file size is much larger than my copy). I am trying to understand this library to fork it (no news of owner), you can contact me at kavinesteves@gmail.com if you are interested to this |
@Kev744 at the moment I am swamped with my other responsibilities but try to help if something is blocking you from contributing... |
It might be caused by a different python version (or different module version). I'm using Python 3.11.8. |
No problem before the responsabilities. Thanks, How can I contact you ?
I am using Python 3.9.12 and module 0.0.2, but the main source doesn't probably come from the Python and module because when I use your file (it doesn't work also), I need to copy/paste the file with OneNote (Move or Copy) in order to work, maybe OneNote version, what version you use for comparing with mine ? I am using Microsoft® OneNote® for Microsoft 365 MSO (Version 2402) |
I use the web version at https://www.onenote.com/notebooks (couldn't find a specific version there). I don't use it actively yet. Just trying out the functions and seeing what tools around are available. |
The code should to be updated for OneNote Online unfortunately... |
Thanks for looking into it! Just for understanding: Is it
? |
Yes it is. |
Actually it's not just the different GUID, but for exports from OneNote Online there is at least one more layer that needs to be decoded. I. e. FSSHTTP. I managed to write a parser for this layer (at least for my test files), but I stopped, because it takes too much time. The only alternative for parsing OneNote Online files seems to be https://github.com/msiemens/onenote.rs. I didn't try it yet, though. |
I installed
pyonenote
viapip install pyonenote
and tried runningpyonenote -f example-docs/QuickNotes.one
and got the following error:I also tried cloning the repo, changing the
sys.exit
line to and f-string, but still got an error:The text was updated successfully, but these errors were encountered: