Open MoonisAmir10 opened 10 months ago
Hmm... I haven't seen an error like this before. Looking at the error message it seems like there is something strange with the installation of edalize.
Could you try running python -c "import edalize;print(edalize.__package__)"
from the terminal? I expect the result to be edalize
but from your error message it looks like it will be None
.
Hmm... I haven't seen an error like this before. Looking at the error message it seems like there is something strange with the installation of edalize.
Could you try running
python -c "import edalize;print(edalize.__package__)"
from the terminal? I expect the result to beedalize
but from your error message it looks like it will beNone
.
It says: "ImportError: No module named edalize".
Ok, this just gets more and more strange :)
Did you install fusesoc with pip? If so, could you try pip install --upgrade edalize
and see if that helps?
Ok, this just gets more and more strange :) Did you install fusesoc with pip? If so, could you try
pip install --upgrade edalize
and see if that helps?
It says that requirement is already satisfied: Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: edalize in /usr/local/lib/python3.6/dist-packages (0.5.1) Requirement already satisfied: Jinja2>=3 in /usr/local/lib/python3.6/dist-packages (from edalize) (3.0.3) Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.6/dist-packages (from Jinja2>=3->edalize) (2.0.1)
**james@james-VirtualBox: /SweRVolf$ fusesoc run --target=nexys_a7 veerwolf
INFO: Generating ::veerwolf-veer_eh1_default_config:0.7.5
Traceback (most recent call last):
File "/home/james/.local/bin/fusesoc", line 11, in
even install edalize , the error message happen assert loader is not None, "A loader was not found for the package." I write some print code to get informations in "loaders.py"
package_name: edalize spec: ModuleSpec(name='edalize', loader=None, origin='namespace', submodule_search_locations=_NamespacePath(['/home/james/.local/lib/python3.6/site-packages/edalize', '/home/james/.local/lib/python3.6/site-packages/edalize', '/usr/local/lib/python3.6/dist-packages/edalize'])) loader: None
Could you help me to resolve the problem, thanks**
I got the same problem ,when I was running python -c "import edalize;print(edalize.package)" ,I got edalize.Can you give me some advice about what I can do to resolve the problem?
Im using ubuntu 18.04 in WLS. When running the command : sudo fusesoc run --target=sim veerwolf, I get the following error:
INFO: Generating ::veerwolf-veer_eh1_default_config:0.7.5 Traceback (most recent call last): File "/usr/local/bin/fusesoc", line 11, in
load_entry_point('fusesoc==2.2.1', 'console_scripts', 'fusesoc')()
File "/usr/local/lib/python3.6/dist-packages/fusesoc/main.py", line 766, in main
fusesoc(args)
File "/usr/local/lib/python3.6/dist-packages/fusesoc/main.py", line 756, in fusesoc
args.func(cm, args)
File "/usr/local/lib/python3.6/dist-packages/fusesoc/main.py", line 305, in run
args.resolve_env_vars_early,
File "/usr/local/lib/python3.6/dist-packages/fusesoc/main.py", line 436, in run_backend
backend = backend_class(edam=edam, work_root=work_root, verbose=verbose)
File "/usr/local/lib/python3.6/dist-packages/edalize/edatool.py", line 182, in init
loader=PackageLoader(package, "templates"),
File "/usr/local/lib/python3.6/dist-packages/jinja2/loaders.py", line 291, in init
assert loader is not None, "A loader was not found for the package."
AssertionError: A loader was not found for the package.
Any idea on how to fix it?