* trytond
@ 2017-04-05 20:03 Catonano
2017-04-05 20:34 ` trytond ng0
2017-04-06 0:10 ` trytond Hartmut Goebel
0 siblings, 2 replies; 4+ messages in thread
From: Catonano @ 2017-04-05 20:03 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 1235 bytes --]
In trying to build trytond (mind the d) 4.2.3, tests fail and I see this
message
======================================================================
ERROR: setUpClass (trytond.tests.test_copy.CopyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/tmp/guix-build-python2-trytond-4.2.3.drv-1/trytond-4.2.3/trytond/tests/test_copy.py",
line 15, in setUpClass
activate_module('tests')
File
"/tmp/guix-build-python2-trytond-4.2.3.drv-1/trytond-4.2.3/trytond/tests/test_tryton.py",
line 47, in activate_module
create_db()
File
"/tmp/guix-build-python2-trytond-4.2.3.drv-1/trytond-4.2.3/trytond/tests/test_tryton.py",
line 398, in create_db
transaction.database.create(transaction.connection, name)
File
"/tmp/guix-build-python2-trytond-4.2.3.drv-1/trytond-4.2.3/trytond/backend/sqlite/database.py",
line 269, in create
with sqlite.connect(path) as conn:
OperationalError: unable to open database file
This "unable to open database file" appears tens of times
The tests use pysqlite (which is python@2 only)
Has the daemon environment anything to do with this ?
The package is here
http://paste.lisp.org/display/343575
Thanks in advance
[-- Attachment #2: Type: text/html, Size: 1505 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: trytond
2017-04-05 20:03 trytond Catonano
@ 2017-04-05 20:34 ` ng0
2017-04-06 0:10 ` trytond Hartmut Goebel
1 sibling, 0 replies; 4+ messages in thread
From: ng0 @ 2017-04-05 20:34 UTC (permalink / raw)
To: Catonano; +Cc: help-guix
Catonano transcribed 3.1K bytes:
> In trying to build trytond (mind the d) 4.2.3, tests fail and I see this
> message
Heh. I finally get what you tried to tell me a couple of weeks ago when
we talked about GNU Health.. so tryton is different from what I am
working on :)
> ======================================================================
> ERROR: setUpClass (trytond.tests.test_copy.CopyTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/tmp/guix-build-python2-trytond-4.2.3.drv-1/trytond-4.2.3/trytond/tests/test_copy.py",
> line 15, in setUpClass
> activate_module('tests')
> File
> "/tmp/guix-build-python2-trytond-4.2.3.drv-1/trytond-4.2.3/trytond/tests/test_tryton.py",
> line 47, in activate_module
> create_db()
> File
> "/tmp/guix-build-python2-trytond-4.2.3.drv-1/trytond-4.2.3/trytond/tests/test_tryton.py",
> line 398, in create_db
> transaction.database.create(transaction.connection, name)
> File
> "/tmp/guix-build-python2-trytond-4.2.3.drv-1/trytond-4.2.3/trytond/backend/sqlite/database.py",
> line 269, in create
> with sqlite.connect(path) as conn:
> OperationalError: unable to open database file
>
> This "unable to open database file" appears tens of times
>
> The tests use pysqlite (which is python@2 only)
>
> Has the daemon environment anything to do with this ?
Most likely, I think the tests want to connect to an sqlite database.
But I see that you use an environmental variable already, so without
looking into the application itself I can't reply anything useful.
Someone else might have more insights.
> The package is here
> http://paste.lisp.org/display/343575
>
> Thanks in advance
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: trytond
2017-04-05 20:03 trytond Catonano
2017-04-05 20:34 ` trytond ng0
@ 2017-04-06 0:10 ` Hartmut Goebel
2017-04-06 7:43 ` trytond Catonano
1 sibling, 1 reply; 4+ messages in thread
From: Hartmut Goebel @ 2017-04-06 0:10 UTC (permalink / raw)
To: help-guix
Am 05.04.2017 um 22:03 schrieb Catonano:
>
>
> Has the daemon environment anything to do with this ?
Be the source with you;:
https://hg.tryton.org/trytond/file/4.2.3/trytond/backend/sqlite/database.py#l261
So it seem the database name needs to be ":memory:" or or you need to
use a full-qualified path to avoid the ned to configure the trytond.
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: trytond
2017-04-06 0:10 ` trytond Hartmut Goebel
@ 2017-04-06 7:43 ` Catonano
0 siblings, 0 replies; 4+ messages in thread
From: Catonano @ 2017-04-06 7:43 UTC (permalink / raw)
To: Hartmut Goebel; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 527 bytes --]
2017-04-06 2:10 GMT+02:00 Hartmut Goebel <h.goebel@crazy-compilers.com>:
> Am 05.04.2017 um 22:03 schrieb Catonano:
> >
> >
> > Has the daemon environment anything to do with this ?
>
> Be the source with you;:
>
> https://hg.tryton.org/trytond/file/4.2.3/trytond/backend/
> sqlite/database.py#l261
>
> So it seem the database name needs to be ":memory:" or or you need to
> use a full-qualified path to avoid the ned to configure the trytond.
>
Thank you Hartmut. This tip was substantial, I was lost
I could build trytond
[-- Attachment #2: Type: text/html, Size: 1126 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-04-06 7:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-05 20:03 trytond Catonano
2017-04-05 20:34 ` trytond ng0
2017-04-06 0:10 ` trytond Hartmut Goebel
2017-04-06 7:43 ` trytond Catonano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).