NeuromorphicProcessorProject / snn_toolbox

Toolbox for converting analog to spiking neural networks (ANN to SNN), and running them in a spiking neuron simulator.
MIT License
360 stars 104 forks source link

Cannot import name 'literal' from typing. #144

Closed arnaumarin closed 6 months ago

arnaumarin commented 6 months ago

I am trying to run on a Linux the example for "mnist_keras_loihi.py". After installing the setup.py and the dependencies, I find the following error: File "/path/miniconda3/envs/mearl/lib/python3.7/site-packages/termcolor-2.4.0-py3.7.egg/termcolor/_types.py", line 3, in from typing import Literal ImportError: cannot import name 'Literal' from 'typing' (/home/harvard/miniconda3/envs/mearl/lib/python3.7/typing.py)

I am using Python 3.7 and I finished processing dependencies for snntoolbox==0.6.0. Any advice ?

arnaumarin commented 6 months ago

https://stackoverflow.com/questions/61206437/importerror-cannot-import-name-literal-from-typing