Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3.7 #60

Merged
merged 25 commits into from
Jan 15, 2020
Merged

Python3.7 #60

merged 25 commits into from
Jan 15, 2020

Conversation

benjello
Copy link
Member

@benjello benjello commented Oct 16, 2019

  • Changement mineur.
  • Détails :
    • Migre de python3.6 à 3.7

@sandcha
Copy link
Contributor

sandcha commented Nov 12, 2019

P'tits soucis au make install :

ERROR: openfisca-survey-manager 0.38.0 has requirement numpy<1.16,>=1.11, but you'll have numpy 1.17.4 which is incompatible.
ERROR: flake8 3.6.0 has requirement pycodestyle<2.5.0,>=2.4.0, but you'll have pycodestyle 2.5.0 which is incompatible.

@benjello
Copy link
Member Author

The first problem is linked with openfisca/openfisca-survey-manager#79
But we may release this constraint since now I am using virtualenv extensively.

@sandcha
Copy link
Contributor

sandcha commented Nov 12, 2019

J'obtiens cette erreur au make test :

...
...openfisca-ceq/openfisca_ceq/tools/indirect_taxation/variables_generator.py", line 256, in generate_ad_valorem_tax_variables
    functions_by_name[func.__name__] = func
UnboundLocalError: local variable 'func' referenced before assignment

Il me semble qu'il manque quelques étapes de configuration pour l'exécution qui seront probablement aussi nécessaires à CircleCI.
L'erreur ci-dessus a été obtenue après :

  1. make install
  2. pip install .[ceq]
  3. Dans ~/.config/openfisca-survey-manager/raw_data.ini, ajouté :
[ceq]
consumption_items_directory = .../ceq_consumption_items_directory
  1. Dans le répertoire défini par consumption_items_directory, ajouté un fichier Produits_SEN.xlsx avec les colonnes suivantes :
code_coicop | label_variable | tva

mais aucune valeur.

@benjello Obtiens-tu la même erreur en local ?
Et, as-tu quelques informations à ajouter au fichier Produits_SEN.xlsx pour les tests ?

Mémo/À faire : vérifier les points listés ici tn#71

@@ -3,7 +3,7 @@
import os

from openfisca_core.taxbenefitsystems import TaxBenefitSystem

from openfisca_ceq.tests.test_indirect_tax_variables_generator import add_coicop_item_to_tax_benefit_system
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rendre cette dépendance à CEQ conditionnelle à un élément de configuration ?
Ici, on rend la dépendance obligatoire alors que nous avons un usage autre initié à l'OGP. 😕

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'arrive pas à rendre le truc optionnel et propre ...

Copy link
Contributor

@sandcha sandcha Nov 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Et, si on conserve une dépendance à CEQ au chargement du modèle, s'assurer qu'il ne s'agisse pas d'un module tests ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dispo pour aider là-dessus quand on aura des tests qui passent 🙂

@benjello
Copy link
Member Author

Désolé @sandcha , il manque encore un fichier qui n'est pas complètement nettoyé.
Merci pour les rappels.

@benjello benjello merged commit 0578d8c into master Jan 15, 2020
@benjello benjello deleted the python3.7 branch January 30, 2020 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants