Closed kreutpet closed 1 year ago
Please see https://github.com/pypa/pipenv/issues/5088 and give it a try. It looks like the version of pipenv
provided by Ubuntu packages is outdated and not compatible with Python 3.10. Try uninstalling the APT package and use pip install pipenv
to install pipenv
.
many thanks . i tied to install the pipenv with recommend command but end up in another issue. python 3.10 is installed but when running the command 3.8 is needed.
root@dlms:~/smartmeter-datacollector# /usr/local/bin/pipenv install --dev
Warning: Python 3.8 was not found on your system...
Neither 'pyenv' nor 'asdf' could be found to install Python.
You can specify specific versions of Python with:
$ pipenv --python path/to/python
I could not find any specific dependency in your code.
But there is a requirement in the Pipfile:
[requires]
python_version = "3.8"
You can try using another Python version by initializing the environment with:
pipenv --python three install --dev
OR
pipenv --python 3.10 install --dev
OR
pipenv --python <path to Python> install --dev
This should override the setting in the Pipfile. Please see https://pipenv-fork.readthedocs.io/en/latest/basics.html#specifying-versions-of-python for further information.
You can also comment out the line in the Pipfile for your setup if the above methods do not work.
We specified version 3.8 because the Raspbian distribution we use for the demo has Python 3.8 installed by default.
actually i gave up on ubuntu 22.04 and installed 20.4 which has python3.8 i guess sooner or later it will be solved for 22.04 i do have it up and running now in 20.04. it is the first time i use pipenv. What would be the next steps to start the smartmeter-datacollector manually for debugging? i assume pipenv shell would be need to enter into the environment?
thanks for the support
many thanks. i missed the pipenv install.
i am trying to setup the development environment but i cannot get the command pipenv command running
what is the best way to handle this ?