-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Debug Print Statement in WineGetKeys Has ASCII Encoding and Kills Function Before Prepping Kindle Key #116
Comments
Thanks for your report. The path for on your system to the script contains a non-ASCII character, probably in your user folder name. I'll try to reproduce and fix it. I expect that adding the stdout processing from the main python scripts to wineutils.py will do the trick. hat is, add the SafeUnbuffered function (from, for example, kindlekey.py) to wineutils.py and then add
to the top of WineKeyKeys() just after the import statements. |
That's the problem though, it is vagrant. Believe it or not, the home Or does this have to do with the repr in Wine?
I'll try later this evening and let you know. |
The character causing the problem is 0x201c - the left open double quotation mark. Checing more carfully, position 28 in the line, if you have a WINEPEFIX specified, puts it somewhere in the WINEPREFIX you've set. Probably. Very puzzling. |
Well I checked my bash history in the test VM. I do not quote |
First attempt was using unclean code. Properly debug by explicitly following @apprenticealf's instructions.
Sorry for spamming, I just wanted to make sure I posted your code as requested to see we are on the same page. I am guessing we are. But ... I will be damned, adding that debug code seems to make a difference if I switch between it and clean v6.4.3 tagged code!? How!? Below is the output with the v6.4.3_debug_gh116 changes.
So I continued further and discovered that wine is annoyed at me declaring a 32 bit install with
|
Just to be clear, this is why I set my Why your app knows to truncate the |
I don't know about the wineprefix (I really need to do a proper investigation of current Linux setups), but I have spotted the problem. The open double quotes actually appears in the python string on that line. It seems surprising that it's ever worked! |
Fixed in 6.5.0 |
I have installed DeDRM with tagged release 6.4.3 in a contained VM using Vagrant with configuration here.
20160628
; was current master a few days ago)winetricks vcrun2008
,winetricks winhttp
,winetricks wininet
winetricks adobe_diged
winetricks kindle
I added the DeDRM plugin, and exported with
export WINEPREFIX=/home/vagrant/.wine
and specified it in the config of DeDRM. I consistently get this error.I ran
export DISPLAY=:0; calibre-debug -s; calibre-customize -b /vagrant/DeDRM_tools/DeDRM_calibre_plugin/DeDRM_plugin/; calibre
from the terminal with the unzipped plugin too. I consistently get the following error.Commenting outline 34 of wineutils.py and rerunning it is successful. I tested this successfully a few times and was successful.
What can I do to help track more? I have tried running pdb.set_trace(), but I am not so solid with PDB. Even stopping the Qt5 event loop, I always segfault and I am not able to stop at this line to get to know what non-ASCII variable value is throwing the error. Can I help more?
The text was updated successfully, but these errors were encountered: