#1 Pas de valeur MAIN_VERSION_LAST_UPGRADE sur une installation fraiche de Dolibarr

Closed
opened 6 years ago by whilelm · 1 comments
whilelm commented 6 years ago

$ himport -y 2016

Traceback (most recent call last):
  File "/home/whilelm/bin/himport", line 11, in <module>
    load_entry_point('himport', 'console_scripts', 'himport')()
  File "/home/whilelm/himport/himport/cli.py", line 101, in main
    do_sqlalchemy(options)
  File "/home/whilelm/himport/himport/cli.py", line 69, in do_sqlalchemy
    dolibarr.connect()
  File "/home/whilelm/himport/himport/dolibarrAlchemy.py", line 38, in connect
    self.prepare()
  File "/home/whilelm/himport/himport/dolibarrAlchemy.py", line 47, in prepare
    version = self.engine.execute("SELECT value FROM llx_const WHERE name='MAIN_VERSION_LAST_UPGRADE'").fetchone()[0]
TypeError: 'NoneType' object has no attribute '__getitem__'

Je soupçonne que ce soit parce que l'instance Dolibarr n'a jamais été mise à jour. J'ai pas de ligne dans la table llx_const avec un name à 'MAIN_VERSION_LAST_UPGRADE'

$ `himport -y 2016` Traceback (most recent call last): File "/home/whilelm/bin/himport", line 11, in <module> load_entry_point('himport', 'console_scripts', 'himport')() File "/home/whilelm/himport/himport/cli.py", line 101, in main do_sqlalchemy(options) File "/home/whilelm/himport/himport/cli.py", line 69, in do_sqlalchemy dolibarr.connect() File "/home/whilelm/himport/himport/dolibarrAlchemy.py", line 38, in connect self.prepare() File "/home/whilelm/himport/himport/dolibarrAlchemy.py", line 47, in prepare version = self.engine.execute("SELECT value FROM llx_const WHERE name='MAIN_VERSION_LAST_UPGRADE'").fetchone()[0] TypeError: 'NoneType' object has no attribute '__getitem__' Je soupçonne que ce soit parce que l'instance Dolibarr n'a jamais été mise à jour. J'ai pas de ligne dans la table llx_const avec un name à 'MAIN_VERSION_LAST_UPGRADE'
whilelm commented 6 years ago
Poster

Je confirme qu'après une mise à jour de l'instance Dolibarr vers une version supérieure, l'exception n'est pas renouvelée.

Je confirme qu'après une mise à jour de l'instance Dolibarr vers une version supérieure, l'exception n'est pas renouvelée.
Sign in to join this conversation.
No Label
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.