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
'str' object has no attribute 'decode' #87
Comments
I'm having "all kinds" of issues since the vobject update. Most notably, with the current source code (also the develop branch) the mouse cursor turns into crosshairs and when I then click somewhere that error shows:
Then, when I press Ctrl-C this:
|
Khard switched to python3 lately. Please have a look into the readme file to find out, how to Furthermore khard now uses relative imports. Therefore
won't work any longer. If you want to run the source code directly, you have two options instead:
make the script executable and run
All of this under the condition, that you point to a python3 executable and have all required |
Thanks for the detailled hints. Using the develop branch it now mostly works. However, there remains one single VCF in my collection that still causes the original issue. I just sent it to you via email. |
@scheibler wrote:
Confirmed! Thanks a lot! |
When modifying any field of the attached VCF, the issue occurs again. (For byte object in this case; tested with develop branch, commit 79dc119; also just verified in most recent commit 7dc37ce)
|
You have upgraded to vobject version 0.9.3 (that's the underlying vcard library). They tried to fix For the quick fix:
I consider to pin that vobject version in the install script for now. I'am not sure, how fast they |
@scheibler I just tried to write a test for this vcard in my tests branch (not yet uploaded to github) and noticed that we obviously need to create and use a temporary config file and vcard database for tests. But currently the config class doesn't allow that. I was thinking about a way to solve this as said in #79 but I am also waiting for #94 with that as #94 is a change that will conflict any other change in the config class (only b/c of formatting, not functionality). |
for the note, I ran into that issue, with at line 137:
it's a very ugly way to go, but it did the job at not skipping entries. I hope it won't screw my contacts though ☺ Looking at the referred issue at skarim/vobject#39, it looks like it's been solved for 0.9.4, but they haven't released that version yet. Finally, thank you for the neat job with khal/khard, just started using them and I can easily see them fit in my everyday toolbox ☺ |
New versions of khard (0.11.4) and vobject (0.9.4.1) fixed this issue. Make sure to update both programs. |
Yeah 👍 |
Recently (since upgrading some python modules?) I get this error:
... and with
--debug
:Note: There is no string "str" in that file.
The text was updated successfully, but these errors were encountered: