Closed xobs closed 4 years ago
This seems similar to https://github.com/pypa/pipenv/issues/2922, can you try installing python3-distutils with: sudo apt-get install python3-distutils
?
That does seem to solve the issue.
It looks like that module isn't included by default on Ubuntu, nor is it included in the official Windows Embedded distribution. Should this module be used here, given that it's not universally installed, and it doesn't appear to be designed for this usecase, given it's not being used to install additional Python modules:
The distutils package provides support for building and installing additional modules into a Python installation. The new modules may be either 100%-pure Python, or may be extension modules written in C, or may be collections of Python packages which include modules coded in both Python and C.
Most Python users will not want to use this module directly, but instead use the cross-version tools maintained by the Python Packaging Authority.
Thanks for the feedback. find_executable
from distutils.spawn
has been used as part of https://github.com/enjoy-digital/litex/commit/fda18fd6ef20459eacd61365fe7840c599ccc77b since distutils
was already used for auto-sourcing ISE/Vivado. With https://github.com/enjoy-digital/litex/commit/0b923aa49757e777302ce8d28e35414977fc9db0, auto-sourcing is removed (since not consistent for all build backends, difficult to do correctly without real additional value and since it's in fact probably better to let the user install and choose the toolchain that will be used) and this also removes distutils dependency.
When building on a stock Ubuntu 18.04 Python distribution, litex produces the following error:
I have set
compile_gateware=False
as I'm just trying to generate Verilog code. Commenting outfrom distutils.spawn import find_executable
in bothvivado.py
andprogrammer.py
gets it working again.