I'm on branch main:
cedric@mill:~/LiteX-CNC$ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
pydantic is in requirements.txt, but it has no end of line:
cedric@mill:~/LiteX-CNC$ cat requirements.txt
click~=8.0
pydanticcedric@mill:~/LiteX-CNC$
pip has not been run:
$ pip install -r requirements.txt
bash: pip: command not found
pip3 is available:
cedric@mill:~/LiteX-CNC$ pip3 install -r requirements.txt
Collecting click~=8.0 (from -r requirements.txt (line 1))
Downloading
files.pythonhosted.org/packages/c2/f1/df...1.3-py3-none-any.whl
(96kB)
100% |████████████████████████████████| 102kB 5.0MB/s
Collecting pydantic (from -r requirements.txt (line 2))
Downloading
files.pythonhosted.org/packages/d4/ec/23...0.2-py3-none-any.whl
(154kB)
100% |████████████████████████████████| 163kB 6.8MB/s
Collecting importlib-metadata; python_version < "3.8" (from click~=8.0->-r requirements.txt (line 1))
Downloading
files.pythonhosted.org/packages/d2/a2/8c...2.0-py3-none-any.whl
Collecting typing-extensions>=4.1.0 (from pydantic->-r requirements.txt (line 2))
Downloading
files.pythonhosted.org/packages/ed/d6/2a...3.0-py3-none-any.whl
Collecting zipp>=0.5 (from importlib-metadata; python_version < "3.8"->click~=8.0->-r requirements.txt (line 1))
Downloading
files.pythonhosted.org/packages/f0/36/63...8.1-py3-none-any.whl
Installing collected packages: typing-extensions, zipp, importlib-metadata, click, pydantic
Successfully installed click-8.1.3 importlib-metadata-4.12.0 pydantic-1.10.2 typing-extensions-4.3.0 zipp-3.8.1
It does not solve the problem though:
cedric@mill:~/LiteX-CNC$ python -m firmware examples/5a-75e.json
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
mod_name, _Error)
File "/usr/lib/python2.7/runpy.py", line 111, in _get_module_details
__import__(mod_name) # Do not catch exceptions initializing package
File "firmware/__init__.py", line 20, in <module>
from .soc import LitexCNC_Firmware
File "firmware/soc.py", line 32
baseclass: Type = Field(
^
SyntaxError: invalid syntax
cedric@mill:~/LiteX-CNC$ git checkout stepgen_improvement
Branch 'stepgen_improvement' set up to track remote branch 'stepgen_improvement' from 'origin'.
Switched to a new branch 'stepgen_improvement'
cedric@mill:~/LiteX-CNC$ python -m firmware examples/5a-75e.json
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
mod_name, _Error)
File "/usr/lib/python2.7/runpy.py", line 111, in _get_module_details
__import__(mod_name) # Do not catch exceptions initializing package
File "firmware/__init__.py", line 19, in <module>
from . import boards
File "firmware/boards/__init__.py", line 1, in <module>
from .rv901t import RV901T
File "firmware/boards/rv901t.py", line 8, in <module>
from litex.build.generic_platform import *
ImportError: No module named litex.build.generic_platform
So far, not so good