Open AunSiro opened 6 years ago
Interesting. I've never heard of Anaconda, but have run this successfully on Windows 10 previously (a while ago, admittedly).
I'll take a look.
EDIT: I can confirm that this happens on my Windows machine as well. Looking into fixing this right away :)
So I've opened up this can of worms, and it turns out that there was actually quite a few compatibility problems. Not only on Windows, but also on Python versions pre-3.6.
Starting with https://github.com/jhauberg/cards.py/commit/8b867f680ad9e354ae8ea2a199715d95a391488d I've fixed a few of them, but there's still at least one big issue remaining.
On Windows, something is causing all image URLs to use backslashes instead of the expected normal slashes; e.g. path\to\image.svg
instead of path/to/image.svg
, which has a nasty side-effect that causes the regex engine to fail parsing some content, leading to the sre_constants.error: missing < at position 101 (line 2, column 73)
error that you're seeing.
The error can be consistently reproduced with the love-letter-templated
example, because one of the cards use a particular image with a path that, as noted above, incorrectly ends up being art\guard.png
, which interestingly enough now contains a regex meta specifier (\g
); however, that specifier is invalid and should be something like \g<1>
- which is why the error says missing <
.
So once I get the pathing right, the project should be back in fighting shape.
Thanks a lot for letting me know! I don't use Windows frequently enough to discover these issues when adding new stuff.
Hello,
I am using Python 3.5.2 through Anaconda on Windows 10. I have installed the module and its dependencies as the readme states. Then, I tried to execute the example:
\example\love-letter> cards make cards.csv
but it failed after creating a new folder called "generated" with an empty html named "index.html". I obtained the following error message:I obtained similar looking errors for the templated example:
And also for the Dungeon deck master: