Could not import from Cockatrice database
Glues together MSE/Cockatrice/MWS, etc
Status: Beta
Brought to you by:
kjoppy
Hi! I followed all your instructions, but the program said "Could not import from Cockatrice database". The console window says a bunch of things (sorry for not being more specific, those seem to be alright), and at the end there's the line: "ValueError: invalid literal for int<> with base 10: '3 / 4'
I have no idea what could be wrong: my Cockatrice works fine, and I tried to make a very simple set with MSE, but no improvement.
In the readme for your MH you write "Browse to the file you exported from MSE (in MWS format!)" - this should be a .txt, right?
Also, the MH and Cockatrice are on separate disks, could this be the problem?
Anonymous
This is interesting, because you're the second person to have this error. I can help you if you will please supply some additional information.
First, what localization is your system on? In other words, in what country do you live?
Second, please make a very small MSE set that reproduces the error. For example, if you make a set with only one card in it, do you get this error? Please find out which card is causing your error.
Finally, post this minimal MSE set file with this ticket and I will debug the problem.
:)
Thanks for replying so quickly. I try to give you all the info you need, but I'm afraid you have to specifically ask for it, because I have no idea what is relevant to you:)
I live in Hungary, I'm using Windows 7.
I had made a small set with one card as I wrote, and I still got the error message. The card doesn't even have any infor, just a name. Anyway, I'm attaching it.
I hope it helps
I happen to be fixing tickets today.
I understand. In fact, I just updated the readme file to give users more information on what to include with bug reports. I will upload it soon.
Thanks for the attachment. I will look at it when I finish uploading the files I just worked on.
Last edit: Kirk Joppy 2014-04-27
Wait a second... I should have read the error message more carefully. Somewhere the program is trying to convert the string '3/4' to an integer. Of course that's going to fail. Now I need to figure out where it's hitting that error.
Last edit: Kirk Joppy 2014-04-27
Ok:)
Just wanted to chime in and say that I'm hitting this same error (ValueError: invalid literal for int<> with base 10: '3 / 4'). Has any progress been made here? Would providing my info (set files, localization, etc.) help at this stage?
Please do the following:
After reinstalling and trying again, I was able to make the changes with no error, without changing the set. Which is a bit weird considering that I was previously using that same version; maybe it's just something that happens the first time, or maybe there's a random chance involved. Anyway, it works now, so thank you for responding, and for making this program in the first place.
I haven't been super careful with the version numbers, so my guess is that the update worked because it's actually different code.
I appreciate the positive feedback. If you wouldn't mind actually rating the project or even writing a really quick review I'd appreciate it even more. This program did take me a long time to make, as I had to learn a lot of new things :)
Hi, first of all thank you for your efforts in creating this program! Strangely enough it worked for me until very recently and now I get the same error (ValueError: invalid literal for int<> with base 10: '3 / 4') everytime I try it. I have already tried it with a single card set (which I have attached to this post), but that doesn't work either (and gets me the same error) and even reinstalling the program didn't help. I'm from Germany by the way if that helps. I hope you can help me with that, would really like to try my new custom set with Cockatrice again :) Thank you in advance! :)
I will take a look a this over the weekend. Meanwhile, you wouldn't happen to have a computer set to USA nationalization, would you? If so, please try there. I have a suspicion that a lot of these bugs are coming from something to do with "foreign" nationalizations. I could be wrong of course. It might just be that I'm a terrible programmer :)
Oh and I am using the newest version of your program so thats not the problem either :/