Importation d'un fichier CSV

Plus d'informations
il y a 3 ans 3 mois #24412 par chcol
Réponse de chcol sur le sujet Bug avec wxPython 4.1.0 gtk3
Bonsoir,
Le premier BUG est effectivement corrigé en changeant le Ctrl/CTRL_Assistant_base.py, merci pour votre aide précieuse.
Par contre le deuxième existe toujours, il arrive lorsque je veux importer dans les activités le modèle Stage 4j.nxa

## 30/11/2020 23:10:54 | 1.2.8.3 | wxPython 4.1.1 gtk3 (phoenix) wxWidgets 3.1.5 | linux Linux 5.4.0-54-generic x86_64 ##
Traceback (most recent call last):
  File "/home/christian/noethys/Dlg/DLG_Activites.py", line 155, in OnBoutonImporter
    self.ctrl_listview.Importer(None)
  File "/home/christian/noethys/Ol/OL_Activites.py", line 451, in Importer
    importation = UTILS_Export_tables.Importer(fichier=nomFichierLong)
  File "/home/christian/noethys/Utils/UTILS_Export_tables.py", line 166, in __init__
    dictInfos = InfosFichier(self.fichier)
  File "/home/christian/noethys/Utils/UTILS_Export_tables.py", line 29, in InfosFichier
    data = UTILS_Json.Lire(fichier)
  File "/home/christian/noethys/Utils/UTILS_Json.py", line 96, in Lire
    data = json.load(json_file, object_hook=MyDecoder)
  File "/usr/lib/python3.8/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.8/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xde in position 58: invalid continuation byte

Rapport :

## 30/11/2020 23:10:54 | 1.2.8.3 | wxPython 4.1.1 gtk3 (phoenix) wxWidgets 3.1.5 | linux Linux 5.4.0-54-generic x86_64 ##
Traceback (most recent call last):
  File "/home/christian/noethys/Dlg/DLG_Activites.py", line 155, in OnBoutonImporter
    self.ctrl_listview.Importer(None)
  File "/home/christian/noethys/Ol/OL_Activites.py", line 451, in Importer
    importation = UTILS_Export_tables.Importer(fichier=nomFichierLong)
  File "/home/christian/noethys/Utils/UTILS_Export_tables.py", line 166, in __init__
    dictInfos = InfosFichier(self.fichier)
  File "/home/christian/noethys/Utils/UTILS_Export_tables.py", line 29, in InfosFichier
    data = UTILS_Json.Lire(fichier)
  File "/home/christian/noethys/Utils/UTILS_Json.py", line 96, in Lire
    data = json.load(json_file, object_hook=MyDecoder)
  File "/usr/lib/python3.8/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.8/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xde in position 58: invalid continuation byte
J'espère que ce nouveau rapport vous aidera à mieux comprendre d'où vient le problème.
Bien cordialement
Christian

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 3 mois #24413 par Ivan
Réponse de Ivan sur le sujet Bug avec wxPython 4.1.0 gtk3
Bonjour,

Ce fichier nxa a été généré avec un autre Noethys ?

Ivan

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 3 mois #24414 par chcol
Réponse de chcol sur le sujet Bug avec wxPython 4.1.0 gtk3
Bonjour,

Ce fichier m'a été proposé directement sur le site, de ce fait je ne sais pas qui a généré ce fichier!
Je vais utiliser donc l'assistant de création de séjour.

Merci pour votre aide.
Cordialement
Christian

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 3 mois #24415 par Ivan
Réponse de Ivan sur le sujet Bug avec wxPython 4.1.0 gtk3
Ah ok. Il y a peut-être une incompatibilité avec les anciennes versions, c'est assez probable.
Dans tous les cas, les assistants de paramétrage seront plus pertinents.

Ivan

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 3 mois #24452 par chcol
Réponse de chcol sur le sujet Bug: ImportError: libSDL2-2.0.so.0
Bonsoir,
Lors de l'installation sur deux nouvelles machines, je reçois les erreurs suivantes:
cho@cho-NUC7i3BNK:~/Noethys-master/noethys$ python3 Noethys.py
Traceback (most recent call last):
  File "Noethys.py", line 17, in <module>
    from Utils.UTILS_Traduction import _
  File "/home/cho/Noethys-master/noethys/Utils/UTILS_Traduction.py", line 15, in <module>
    from Utils import UTILS_Fichiers
  File "/home/cho/Noethys-master/noethys/Utils/UTILS_Fichiers.py", line 17, in <module>
    from Utils import UTILS_Customize
  File "/home/cho/Noethys-master/noethys/Utils/UTILS_Customize.py", line 12, in <module>
    import wx
  File "/home/cho/.local/lib/python3.8/site-packages/wx/__init__.py", line 17, in <module>
    from wx.core import *
  File "/home/cho/.local/lib/python3.8/site-packages/wx/core.py", line 12, in <module>
    from ._core import *
ImportError: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
Pouvez-vous m'aider à résoudre le problème.
Merci d'avance pour votre collaboration.
Christian

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 3 mois - il y a 3 ans 3 mois #24454 par Ivan
Réponse de Ivan sur le sujet Bug: ImportError: libSDL2-2.0.so.0
Bonjour,

Il faudrait essayer ceci :
sudo apt-get install git curl libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 libsdl2-2.0-0

Ivan
Dernière édition: il y a 3 ans 3 mois par Ivan.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 3 mois #24455 par chcol
Réponse de chcol sur le sujet Bug: ImportError: libSDL2-2.0.so.0
Bonjour Ivan,
j'ai effectué cette commande, cela fonctionne je n'ai plus ce message d'erreur, mais un autre est apparu:
Traceback (most recent call last):
  File "Noethys.py", line 89, in <module>
    VERSION_APPLICATION = FonctionsPerso.GetVersionLogiciel()
  File "/home/cho/Noethys-master/noethys/FonctionsPerso.py", line 1011, in GetVersionLogiciel
    txtVersion = fichierVersion.readlines()[0]
  File "/usr/lib/python3.8/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 84: invalid continuation byte

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 3 mois #24456 par Ivan
Réponse de Ivan sur le sujet Bug: ImportError: libSDL2-2.0.so.0
Il faut convertir en UFT8 (avec notepad ++ par exemple) le fichier versions.txt qui est à la racine du répertoire Noethys. C'est un problème qu'il me reste à corriger.

Ivan

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 3 mois #24457 par chcol
Réponse de chcol sur le sujet Bug: ImportError: libSDL2-2.0.so.0
Merci, Noethys a démarré.
Sur la console j'ai reçu les messages suivants:
(Noethys.py:18878): Gtk-CRITICAL **: 12:15:06.883: gtk_widget_set_size_request: assertion 'height >= -1' failed

(Noethys.py:18878): Gtk-CRITICAL **: 12:15:06.897: gtk_widget_set_size_request: assertion 'height >= -1' failed

(Noethys.py:18878): Gtk-CRITICAL **: 12:15:06.965: gtk_widget_set_size_request: assertion 'height >= -1' failed

(Noethys.py:18878): Gtk-CRITICAL **: 12:15:06.973: gtk_widget_set_size_request: assertion 'height >= -1' failed

(Noethys.py:18878): Gtk-CRITICAL **: 12:15:07.512: gtk_widget_set_size_request: assertion 'height >= -1' failed

(Noethys.py:18878): Gtk-CRITICAL **: 12:15:07.512: gtk_widget_set_size_request: assertion 'height >= -1' failed

Faut il ignorer les messages où il y a un problème avec GTK?
Merci beaucoup pour votre précieuse aide.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 3 ans 3 mois #24458 par Ivan
Réponse de Ivan sur le sujet Bug: ImportError: libSDL2-2.0.so.0
Il faut les ignorer. Problème de wxPython.

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.158 secondes
Propulsé par Kunena