REMLA24-Team-5 / Model-Training

The model-training repository contains all the code required to train and test a phishing URL detection machine learning model. It includes scripts for data preprocessing, model training, evaluation, and performance testing to ensure robust and accurate model development.
0 stars 0 forks source link

When using dvc repro on python 3.11.9 I get the error ImportError: cannot import name 'formatargspec' from 'inspect' #24

Closed blibliboe closed 2 months ago

blibliboe commented 2 months ago

A quick google search let me to find that formatargspec is not supported by python >= 3.11 we should make our project compatible with python >= 3.11

SagaRut commented 2 months ago

Well Jurrian did ask if it would it be possible to switch to python 3.10 so he can use dslinter...but since that is quite old then maybe we should set up pylint as well, the assignment even said to try multiple linters.

blibliboe commented 2 months ago

Yeah, I know he asked, but it is not a pylinter problem. It also breaks on old branches where it did not break before. No idea why that is the case

blibliboe commented 2 months ago

Okay it seems like it is a problem with tensorflow. With manually pip uninstall and pip install tensorflow it worked again.