Skip to content
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

Error compiling py2nim.nim #12

Closed
wizzardx opened this issue Jan 13, 2018 · 3 comments
Closed

Error compiling py2nim.nim #12

wizzardx opened this issue Jan 13, 2018 · 3 comments

Comments

@wizzardx
Copy link

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
Copy link

ghost commented Jan 13, 2018

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

@alehander92
Copy link
Contributor

This should be fixed now

@ghost
Copy link

ghost commented Jan 13, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants