$ python
Python 2.7.14 (default, Sep 17 2017, 18:50:44)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from proteus import config, Model
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named proteus
>>>
Of course Proteus is installed with apt-get
This is more of a Debian/Python question than Tryton
Please bear with me
I'd like to use Proteus to debug one of my calculated fields, that's not working
Currently I have to reload the whole client and log in again every time I change something
Thanks
This is the pip3 based setup. Which component is missing ?
>>> config = config.set_trytond('sqlite:///:memory:')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/catonano/tributi/env/lib/python3.6/site-packages/proteus/config.py", line 274, in set_trytond
_CONFIG.current = TrytondConfig(database, user, config_file=config_file)
File "/home/catonano/tributi/env/lib/python3.6/site-packages/proteus/config.py", line 230, in __init__
with Transaction().start(self.database_name, 0) as transaction:
File "/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/transaction.py", line 88, in start
database = Database(database_name).connect()
File "/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/backend/postgresql/database.py", line 96, in __new__
cursor_factory=LoggingCursor)
File "/home/catonano/tributi/env/lib/python3.6/site-packages/psycopg2/pool.py", line 161, in __init__
self, minconn, maxconn, *args, **kwargs)
File "/home/catonano/tributi/env/lib/python3.6/site-packages/psycopg2/pool.py", line 58, in __init__
self._connect()
File "/home/catonano/tributi/env/lib/python3.6/site-packages/psycopg2/pool.py", line 62, in _connect
conn = psycopg2.connect(*self._args, **self._kwargs)
File "/home/catonano/tributi/env/lib/python3.6/site-packages/psycopg2/__init__.py", line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: FATALE: il database ":memory:" non esiste
Right
I had downloaded Proteus because I was _consideing_ to try to build and install it myself
But I never embarked in such a process. I never began
I just decomprrressed the tar.gz file there
I didn't expect that to interfere with the Debian supplied Proteus.
Rather, I'd say, because I was torred I overlooked the error message that was explicitly pointing to that decompressed folder, instead of a system provided one
So I bothered Mathias
Oh well :-/