logilab-common issueshttps://forge.extranet.logilab.fr/open-source/logilab-common/-/issues2021-06-22T10:03:16Zhttps://forge.extranet.logilab.fr/open-source/logilab-common/-/issues/10Incompatible with python 3.82021-06-22T10:03:16ZNoé GaumontIncompatible with python 3.8Python 3.8 is the python version of ubuntu LTS focal.
Logilab-common 1.8.1 is not compatible with python3.8Python 3.8 is the python version of ubuntu LTS focal.
Logilab-common 1.8.1 is not compatible with python3.8Noé GaumontNoé Gaumonthttps://forge.extranet.logilab.fr/open-source/logilab-common/-/issues/8ImportError: cannot import name 'callable_moved' from 'logilab.common.depreca...2021-01-05T12:59:11ZArthur LutzImportError: cannot import name 'callable_moved' from 'logilab.common.deprecation'```
Upgrading the instance fresh
----------------------------
/usr/lib/python3/dist-packages/paste/request.py:33: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and i...```
Upgrading the instance fresh
----------------------------
/usr/lib/python3/dist-packages/paste/request.py:33: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import MutableMapping as DictMixin
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cubicweb/cwctl.py", line 180, in run
status = cmdmeth(appid) or 0
File "/usr/lib/python3/dist-packages/cubicweb/cwctl.py", line 572, in upgrade_instance
mih = config.migration_handler()
File "/usr/lib/python3/dist-packages/cubicweb/server/serverconfig.py", line 358, in migration_handler
verbosity=verbosity)
File "/usr/lib/python3/dist-packages/cubicweb/server/migractions.py", line 95, in __init__
self.repo = config.repository()
File "/usr/lib/python3/dist-packages/cubicweb/cwconfig.py", line 981, in repository
repo.bootstrap()
File "/usr/lib/python3/dist-packages/cubicweb/server/repository.py", line 434, in bootstrap
self.set_schema(self.deserialize_schema())
File "/usr/lib/python3/dist-packages/cubicweb/server/repository.py", line 519, in set_schema
self.vreg.set_schema(schema)
File "/usr/lib/python3/dist-packages/cubicweb/cwvreg.py", line 407, in set_schema
self.reload(self.config.appobjects_modnames(), force_reload=False)
File "/usr/lib/python3/dist-packages/cubicweb/cwvreg.py", line 472, in reload
self.register_modnames(modnames)
File "/usr/lib/python3/dist-packages/logilab/common/registry.py", line 757, in register_modnames
self.load_file(filepath, modname)
File "/usr/lib/python3/dist-packages/cubicweb/cwvreg.py", line 482, in load_file
return super(CWRegistryStore, self).load_file(filepath, modname)
File "/usr/lib/python3/dist-packages/logilab/common/registry.py", line 815, in load_file
module = __import__(modname, fromlist=modname.split('.')[:-1])
File "/usr/lib/python3/dist-packages/cubicweb/web/views/searchrestriction.py", line 24, in <module>
from logilab.common.deprecation import callable_moved
ImportError: cannot import name 'callable_moved' from 'logilab.common.deprecation' (/usr/lib/python3/dist-packages/logilab/common/deprecation.py)
instance fresh not upgraded: cannot import name 'callable_moved' from 'logilab.common.deprecation' (/usr/lib/python3/dist-packages/logilab/common/deprecation.py)
```https://forge.extranet.logilab.fr/open-source/logilab-common/-/issues/7release a 1.8 version2020-11-26T15:00:29ZLaurent Peuchrelease a 1.8 versionHello @schabot,
If you, or someone else, has the time to release a new version of logilab-common it would be great: I need it for the structured deprecatedwarnings :)
Thx in advance,Hello @schabot,
If you, or someone else, has the time to release a new version of logilab-common it would be great: I need it for the structured deprecatedwarnings :)
Thx in advance,Simon ChabotSimon Chabothttps://forge.extranet.logilab.fr/open-source/logilab-common/-/issues/4release a new 1.7 version2020-09-03T15:23:10ZLaurent Peuchrelease a new 1.7 versionHello,
@schabot (idk who else to ping, sorry :x) would it be possible to have a new release on the 1.7 branch plz? We've merged some bug fixes on it.
I've updated the Changelog, you just need to set the right date in it before releasin...Hello,
@schabot (idk who else to ping, sorry :x) would it be possible to have a new release on the 1.7 branch plz? We've merged some bug fixes on it.
I've updated the Changelog, you just need to set the right date in it before releasing.
Thanks in advance :)Simon ChabotSimon Chabothttps://forge.extranet.logilab.fr/open-source/logilab-common/-/issues/2Logilab-common n'est plus compatible avec les versions de Python inférieur à 3.62020-05-11T06:49:05ZAurélien LubertLogilab-common n'est plus compatible avec les versions de Python inférieur à 3.6Une utilisation des f-strings est faite au sein de logilab-common, comme le montre le commit 9b15c56f93ecdc0ea5ec1a902cc46e9f18d521c6.
Ce format n’est pas compatible avec les versions de Python inférieur à 3.6, tel que spécifié dans la ...Une utilisation des f-strings est faite au sein de logilab-common, comme le montre le commit 9b15c56f93ecdc0ea5ec1a902cc46e9f18d521c6.
Ce format n’est pas compatible avec les versions de Python inférieur à 3.6, tel que spécifié dans la documentation : https://docs.python.org/3/reference/lexical_analysis.html#f-strings
Le souci, c’est que la version minimale de cette bibliothèque pour Python est la 3.4 : https://forge.extranet.logilab.fr/open-source/logilab-common/blob/branch/default/setup.py
Il serait pertinent de changer cette valeur pour bien indiquer que la version minimale est la 3.6.https://forge.extranet.logilab.fr/open-source/logilab-common/-/issues/1logilab-common cassé en Python 3.8+ à cause de `cgi.escape`2020-04-30T14:23:41ZNicola Spantilogilab-common cassé en Python 3.8+ à cause de `cgi.escape`https://docs.python.org/3/whatsnew/3.8.html#api-and-feature-removals
> `parse_qs`, `parse_qsl`, and escape are removed from the [`cgi`](https://docs.python.org/3/library/cgi.html#module-cgi) module. They are deprecated in Python 3.2 or ...https://docs.python.org/3/whatsnew/3.8.html#api-and-feature-removals
> `parse_qs`, `parse_qsl`, and escape are removed from the [`cgi`](https://docs.python.org/3/library/cgi.html#module-cgi) module. They are deprecated in Python 3.2 or older. They should be imported from the `urllib.parse` and `html` modules instead.