Closed LucaMantani closed 5 months ago
Can you try in a virgin venv?
python -m venv wilson_bug
. wilson_bug/bin/activate
python -m pip install wheel
python -m pip install -e .
python -c 'import wilson'
This works for me.
Which Python version?
Before I did it with a conda env, now I did it instead with the venv following your commands, with Python 3.11.5 and got the same error message.
Hi @LucaMantani, the reason is probably that you cloned (or downloaded) the repository without its submodules. The submodules, however, contain all the WCxf basis definitions. The installation would still work but when you import the package it wouldn't find the files containing the basis definitions, so no basis would be defined. How to clone a repository with submodules is described e.g. here: https://git-scm.com/book/en/v2/Git-Tools-Submodules#_cloning_submodules
You will find that you should either clone the repository adding --recurse-submodules
or after normal cloning you have to do git submodule update --init
Yes, that was it! Thanks, the issue is resolved :)
Hi, I am encountering a strange problem. When I install wilson from pypi with
pip install wilson
, things work fine. But if I instead download the repo and dopip install .
, the installation seems to be successful, but once I import wilson in a python script, I get the error message:Have you seen this before? I wanted to install wilson from the repo so that I could play with the code a bit.