nanoant / nim-orm

Nim's ORM module
36 stars 1 forks source link

error when "import orm_mysql" #2

Open luntik2012 opened 9 years ago

luntik2012 commented 9 years ago

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

nanoant commented 9 years ago

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.

luntik2012 commented 9 years ago

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

luntik2012 commented 9 years ago

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")