vendredi 17 février 2023

Python 3.10.10 can't run old python repository

I can't run this old python repository with Python 3.10.10 When i run it displays this error

Traceback (most recent call last):
  File "C:\Users\user\OneDrive\Desktop\file\testsimp.py", line 7, in <module>
    print (namegen.get_random_name("any"));
  File "C:\Users\user\OneDrive\Desktop\file\German_Name_Generator_master\german_name_generator.py", line 68, in get_random_name
    name=get_random_from_list(names_w)
  File "C:\Users\user\OneDrive\Desktop\file\German_Name_Generator_master\german_name_generator.py", line 50, in get_random_from_list
    assert(l!=[] and l is not None)
AssertionError

My python code is (python version 3.10.10):

import string;
import json;
import randompassgen;
import random
import German_Name_Generator_master.german_name_generator as namegen

print (namegen.get_random_name("any"));

Expected: Name Surname




Aucun commentaire:

Enregistrer un commentaire