metacraft-labs / py2nim

A Python-to-Nim transpiler
MIT License
136 stars 8 forks source link

Error compiling py2nim.nim #12

Closed wizzardx closed 6 years ago

wizzardx commented 6 years ago

At this step in the tutorial:

nim c py2nim.nim

I'm getting this error:

tracer.nim(63, 24) Error: ambiguous call; both strformat.%(pattern: string)[declared in lib/pure/strformat.nim(229, 6)] and json.%(s: string)[declared in lib/pure/json.nim(753, 5)] match for: (string)

I'm running the latest version of nim devel (commit 430a6c481).

ghost commented 6 years ago

Change "import strformat" to "import strformat except %" in this file

alehander92 commented 6 years ago

This should be fixed now

ghost commented 6 years ago

No, you don't need to remove fmt! With "except %" you import everything from strformat except % so you can still use fmt