Description:
In development mode, after following the configuration steps provided in the project's Readme, an AttributeError is thrown when executing the gaussdb version check command. The root cause is incomplete PYTHONPATH configuration.
How to reproduce it:
- Complete the development environment setup as instructed in the project's Readme
- Run the following command to check the gaussdb version:
python -c "import gaussdb; print(gaussdb.__version__)"
- The error is triggered
Logs
AttributeError: module 'gaussdb' has no attribute '__version__'
Solution:
Configure PYTHONPATH with the full paths to the required modules using the following command:
export PYTHONPATH=/home/gaussdbUser/gaussdb-python/gaussdb:/home/gaussdbUser/gaussdb-python/gaussdb_pool
Environment:
- OS: Huawei Cloud EulerOS 2.0
- Database: GaussDB