The installation instructions don't work to install the package. It seems like they work, because when you do
python
>>> import position_encoding
it grabs it from the ./position-encoding folder directly.
However, if you change directories (after installing), you cannot import the package anymore.
To reproduce on linux;
git clone https://github.com/X-lab-3D/position-encoding
cd position-encoding
python -m venv .venv # create virtual env
source .venv/bin/activate # activate environment
pip install setuptools
python setup.py install
python
>>> import position_encoding #imports fine
>>> exit()
cd ..
python
>>> import position_encoding
ModuleNotFoundError: No module named 'position_encoding'
Secondly, python setup.py install has been deprecated and won't be supported anymore from 2025-10-31.
The installation instructions don't work to install the package. It seems like they work, because when you do
it grabs it from the
./position-encodingfolder directly.However, if you change directories (after installing), you cannot import the package anymore.
To reproduce on linux;
Secondly,
python setup.py installhas been deprecated and won't be supported anymore from 2025-10-31.