Warnings Tryton server about python 3.5

270 views
Skip to first unread message

Oscar Alvarez

unread,
May 5, 2016, 11:44:49 PM5/5/16
to tryto...@googlegroups.com
Hi, Devs

I trying to run tryton server 4.0 about python 3.5, and it server runs but I get some warnings:

/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/relatorio/templates/__init__.py:29: UserWarning: Unable to load plugin 'chart'
  warnings.warn("Unable to load plugin '%s'" % name)
/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/trytond/modules/__init__.py:143: DeprecationWarning: This method will be removed in future versions.  Use 'parser.read_file()' instead.
  module_config.readfp(fp)
/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/stdnum/numdb.py:202: ResourceWarning: unclosed file <_io.BufferedReader name='/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/stdnum/iban.dat'>
  db = read(reader(resource_stream(__name__, name + '.dat')))


Maybe it is necesary open a new issue or this is an installation problem because python 3 enviroment.

Oscar Alvarez

Cédric Krier

unread,
May 6, 2016, 5:10:03 AM5/6/16
to tryto...@googlegroups.com
On 2016-05-05 22:44, Oscar Alvarez wrote:
> Hi, Devs
>
> I trying to run tryton server 4.0 about python 3.5, and it server runs but I
> get some warnings:
>
> /home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/relatorio/templates/__init__.py:29:
> UserWarning: Unable to load plugin 'chart'
> warnings.warn("Unable to load plugin '%s'" % name)

This is not particularly linked to Python3. This is bacause relatorio
has a weak dependency on pycha. If you think this behaviour could be
improved you can report it on https://relatorio.tryton.org/

> /home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/trytond/modules/__init__.py:143:
> DeprecationWarning: This method will be removed in future versions. Use
> 'parser.read_file()' instead.
> module_config.readfp(fp)

Yes, readfp was changed for read_file in Python 3.2 but it is not
available in Python 2.7. So this feature is kept to ease the transition
between 2 to 3: https://bugs.python.org/issue13248#msg146500
I don't think we should do anything about it until we drop support for
2.7.

> /home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/stdnum/numdb.py:202:
> ResourceWarning: unclosed file <_io.BufferedReader name='/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/stdnum/iban.dat'>
> db = read(reader(resource_stream(__name__, name + '.dat')))

I think this one should be reported to python-stdnum:
https://github.com/arthurdejong/python-stdnum/issues

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
Forward
0 new messages