nim-orm icon indicating copy to clipboard operation
nim-orm copied to clipboard

error when "import orm_mysql"

Open luntik2012 opened this issue 9 years ago • 3 comments

I wrote "import orm_mysql" in the beginning of my *.nim and got this error

lib/pure/asyncdispatch.nim(1410, 7) Hint: Processing statusContent as an async proc. [User] lib/pure/asyncdispatch.nim(1410, 7) Hint: Processing sendHeaders as an async proc. [User] lib/pure/asyncdispatch.nim(1410, 7) Hint: Processing send as an async proc. [User] lib/pure/asyncdispatch.nim(1410, 7) Hint: Processing sendStaticIfExists as an async proc. [User] lib/pure/asyncdispatch.nim(1410, 7) Hint: Processing handleRequest as an async proc. [User] /home/user/.nimble/pkgs/jester-0.1.0/jester.nim(230, 10) Hint: 'setMatches' is declared but not used [XDeclaredButNotUsed] /home/user/.nimble/pkgs/jester-0.1.0/jester.nim(77, 3) Hint: 'Callback' is declared but not used [XDeclaredButNotUsed] Hint: db_mysql [Processing] Hint: mysql [Processing] Hint: orm_mysql [Processing] /home/user/.nimble/pkgs/orm-0.0.1/orm.nim(155, 21) Error: expression expected, but found '{.'

shell returned 1

Before this I've installed it using "nimble build && nimble install" command

luntik2012 avatar Jul 01 '15 14:07 luntik2012

You are using too old Nim. Required changes probably has not been yet released as Nim stable release and exists only in devel. However recent devel broke this fragile module. So fixes are coming.

nanoant avatar Jul 01 '15 15:07 nanoant

Thank you, I'll try it as soon as possible

luntik2012 avatar Jul 01 '15 18:07 luntik2012

Hi, I've tried devel Nim version and got this: ".nimble/pkgs/orm-0.0.1/orm.nim(60, 21) Error: attempting to call undeclared routine: 'sameType'" But may be you already know about this. There is my code, but it doesn't execute: import orm_mysql Model.open("222.222.222.222", "username", "mypassword", "mydb")

luntik2012 avatar Jul 03 '15 16:07 luntik2012