Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 42 |
Nodes: | 6 (0 / 6) |
Uptime: | 00:22:58 |
Calls: | 220 |
Calls today: | 1 |
Files: | 824 |
Messages: | 121,481 |
Posted today: | 6 |
Greetings
Looking at ESP8266 and wanting to program it using micropython (really
don't want to have to learn C++ (not enough hours in the day as it is!!)).
One of the tools I need to be able to use is esptools - - well in the
devuan world you need to run that on either Devaun 3 or 5 - - - its just
not available on devuan 4.
Tried installing all the tools I need using downloads and .deb installs but then I need to have python3.12 and that's also not part of Devuan4.
Not versed enough to set up a good venv (if that's possible) so that I
could work in that specific venv and have my cake (and get to eat it too (grin!).
Suggestions - - - ideas - - - please?
So please - - - how do I set up a venv so that I can install and run
python
3.12
(and other needed programs related to 3.12) inside?
On Sat, Aug 3, 2024 at 4:06 PM dn via Python-list <python-list@python.org> wrote:
On 4/08/24 08:17, o1bigtenor via Python-list wrote:
Greetingsis!!)).
Looking at ESP8266 and wanting to program it using micropython (really
don't want to have to learn C++ (not enough hours in the day as it
but
One of the tools I need to be able to use is esptools - - well in the
devuan world you need to run that on either Devaun 3 or 5 - - - its just >>> not available on devuan 4.
Tried installing all the tools I need using downloads and .deb installs
then I need to have python3.12 and that's also not part of Devuan4.
Not versed enough to set up a good venv (if that's possible) so that I
could work in that specific venv and have my cake (and get to eat it too >>> (grin!).
Suggestions - - - ideas - - - please?
Sorry if this offends, but this is a list of short-cuts and reasons why
they don't work (immediately).
Have just come from a discussion about 'how to start a project'. Amongst
the questions to ask are: "what resources do we have (or can add) to
achieve?".
Fair question details interleaved - - -
In this case, if Python-skill is a "personnel-resource" (and C++ a
"constraint"), will question the ESP over Raspberry Pi (say)?
Well - - - RPi world technical specs is usable from -20 to 60 C (iirc on
the top number)
and for my project I absolutely need to have usability to at least -40 - - could possibly do a bit less but -35 C is a hard requirement so the RPi
and Pico (which I would like to use) is out but ESP8266 runs in that -40 to 65 C
range.
Why talking of Python 3.12 when the solution involves MicroPython?
Because one uses psytool on one computer to transfer a program to the MicroPython system. In fact there are a set of tools that need Python3.12
to be able to do this and therefore the question.
so
Perhaps need to take a step back and look at 'options' - relate needs to
resources, and evaluate the impact of each decision on later ones - as
well as against your personal skills (modify objectives to limits, or
accept that some learning/training will be necessary as pre-requisite to
(being able to) attack the project).
I have been investigating using a venv but am not finding clear directions
that I could set up Python3.12 inside (along with the other needed tools). The
more I'm looking the less useful most of the information I'm finding is becoming.
Therefore I thought I would go to the python gurus for information - - - which I
have.
So please - - - how do I set up a venv so that I can install and run python 3.12
(and other needed programs related to 3.12) inside?
One of the tools I need to be able to use is esptools - - well in the
devuan world you need to run that on either Devaun 3 or 5 - - - its just
not available on devuan 4.
Tried installing all the tools I need using downloads and .deb installs but then I need to have python3.12 and that's also not part of Devuan4.
Not versed enough to set up a good venv (if that's possible) so that I
could work in that specific venv and have my cake (and get to eat it too (grin!).
My question was, is and will be (and the doc absolutely doesn't cover it)
how do I install a different version in the venv so that python 3.11.x on
the
system is not discombobulated by the python 3.12.x in the venv.
That python 3.12 would let me run the tools needed.
(Its the how to install the next version of python that I just haven't been able to find information on - - - and I would be looking for information
on how to install on a *nix.)
On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list < python-list@python.org> wrote:
On 8/3/24 20:03, o1bigtenor via Python-list wrote:"https://peps.python.org/pep-0668/ PEP 668, which prevents pip from interacting with the OS installed python. This change has been done in red hat and other distros too . . . "
My question was, is and will be (and the doc absolutely doesn't cover it) >>> how do I install a different version in the venv so that python 3.11.x on >>> thebeen
system is not discombobulated by the python 3.12.x in the venv.
That python 3.12 would let me run the tools needed.
(Its the how to install the next version of python that I just haven't
able to find information on - - - and I would be looking for information >>> on how to install on a *nix.)
To get a different Python "in" the venv, you use the version you want in
the construction of the venv. For example:
$ python3.13 -m venv new_venv
$ new_venv/bin/python --version
Python 3.13.0b4
$ source new_venv/bin/activate
similarly your first command produces and error code for the same reason.
Sorry - - - not my policy - - -
Matt - if you would rather that you were not included in the address list -
-
please advise.
On Mon, Aug 5, 2024 at 8:51 AM Mats Wichmann <mats@wichmann.us> wrote:
On 8/5/24 06:48, o1bigtenor via Python-list wrote:
On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list < python-list@python.org> wrote:
3.11.xOn 8/3/24 20:03, o1bigtenor via Python-list wrote:
My question was, is and will be (and the doc absolutely doesn't cover it)
how do I install a different version in the venv so that python
onhaven't
the
system is not discombobulated by the python 3.12.x in the venv.
That python 3.12 would let me run the tools needed.
(Its the how to install the next version of python that I just
inbeen
able to find information on - - - and I would be looking for information
on how to install on a *nix.)
To get a different Python "in" the venv, you use the version you want
redthe construction of the venv. For example:"https://peps.python.org/pep-0668/ PEP 668, which prevents pip from interacting with the OS installed python. This change has been done in
$ python3.13 -m venv new_venv
$ new_venv/bin/python --version
Python 3.13.0b4
$ source new_venv/bin/activate
hat and other distros too . . . "
reason.similarly your first command produces and error code for the same
Sorry - - - not my policy - - -
What? Yes, the *system* pip should have some restrictions, if it's a
system mainly managed by a package manager.
Setting up a venv is the *expected* approach to such situations, and creating one doesn't cause any problems. You end up with a pip in the activated venv that's going to install to a different path (the one in
the venv), and will not be marked as externally managed, as the package manager has no control over that path.
That's the whole point. What error are you getting? The venv module is not the pip module so restrictions on the system pip have nothing to do with it.
set up pyenvactivated a venv
trying to install python3.12 into it
1. download of python3.12 (blahblahblahetc).deb will not install
2. download of python3.12.tar.xz similarly will not install
(venv2) memyself@devuanbigbox:~$ pip install /home/memyself/Downloads/Python-3.12.4.tar.xz
Processing ./Downloads/Python-3.12.4.tar.xz
ERROR: file:///home/memyself/Downloads/Python-3.12.4.tar.xz does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
seems that I need a different version (installable as it were) of
python3.12
or my approach is all wrong!
Please advise
TIA
--
https://mail.python.org/mailman/listinfo/python-list
Matt - if you would rather that you were not included in the address
list - -
please advise.
On Mon, Aug 5, 2024 at 8:51 AM Mats Wichmann <mats@wichmann.us <mailto:mats@wichmann.us>> wrote:
On 8/5/24 06:48, o1bigtenor via Python-list wrote:
> On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list <
> python-list@python.org <mailto:python-list@python.org>> wrote:
>
>> On 8/3/24 20:03, o1bigtenor via Python-list wrote:
>>
>>> My question was, is and will be (and the doc absolutely doesn't
cover it)
>>> how do I install a different version in the venv so that python
3.11.x on
>>> the
>>> system is not discombobulated by the python 3.12.x in the venv.
>>> That python 3.12 would let me run the tools needed.
>>> (Its the how to install the next version of python that I just
haven't
>> been
>>> able to find information on - - - and I would be looking for
information
>>> on how to install on a *nix.)
>>
>> To get a different Python "in" the venv, you use the version you
want in
>> the construction of the venv. For example:
>>
>>
>> $ python3.13 -m venv new_venv
>> $ new_venv/bin/python --version
>> Python 3.13.0b4
>> $ source new_venv/bin/activate
>>
>>
> "https://peps.python.org/pep-0668/
<https://peps.python.org/pep-0668/> PEP 668, which prevents pip from
> interacting with the OS installed python. This change has been
done in red
> hat and other distros too . . . "
>
> similarly your first command produces and error code for the same
reason.
>
> Sorry - - - not my policy - - -
What? Yes, the *system* pip should have some restrictions, if it's a
system mainly managed by a package manager.
Setting up a venv is the *expected* approach to such situations, and
creating one doesn't cause any problems. You end up with a pip in the
activated venv that's going to install to a different path (the one in
the venv), and will not be marked as externally managed, as the package
manager has no control over that path.
That's the whole point. What error are you getting? The venv
module is
not the pip module so restrictions on the system pip have nothing to do
with it.
set up pyenv
activated a venv
trying to install python3.12 into it
1. download of python3.12 (blahblahblahetc).deb will not install
2. download of python3.12.tar.xz similarly will not install
(venv2) memyself@devuanbigbox:~$ pip install /home/memyself/Downloads/Python-3.12.4.tar.xz
Processing ./Downloads/Python-3.12.4.tar.xz
ERROR: file:///home/memyself/Downloads/Python-3.12.4.tar.xz does not
appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
seems that I need a different version (installable as it were) of
python3.12
or my approach is all wrong!
That's something like
pyenv install 3.12.4
$ pyenv install 3.12.4
bash: pyenv: command not found
pyenv is not a 'global' package
there is a mountain of /root/.pyenv files though
there is also quite a number of /root/.pyenv/plugins/pyenv-virtualenv/
files
when looking in the /root/.pyenv files I can find options for all the older version of python
but none for anything newer than what is on my system
is there something else to install to achieve this 'version freedom' that pyenv promises?
On 8/5/24 15:17, o1bigtenor via Python-list wrote:
That's something like
pyenv install 3.12.4
$ pyenv install 3.12.4
bash: pyenv: command not found
pyenv is not a 'global' package
there is a mountain of /root/.pyenv files though
there is also quite a number of /root/.pyenv/plugins/pyenv-virtualenv/ files
when looking in the /root/.pyenv files I can find options for all theolder
version of python
but none for anything newer than what is on my system
is there something else to install to achieve this 'version freedom' that pyenv promises?
It has to go somewhere your shell can find it. Mine is a shell
function, but it was set up so many years ago I don't remember details.
It's presumably the pyenv installation instructions...
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Aug 5, 2024 at 5:28 PM Bill Deegan via Python-list < python-list@python.org> wrote:
Did Mats suggestion of:
python3.13 -m venv new_venv
$ new_venv/bin/python --version
Python 3.13.0b4
$ source new_venv/bin/activate
Not work?
That should work on any system, with any system installl python.
It's not trying to modify the system installed python in anyway...
If not, please paste the error output you're getting.
# python3.13 -m venv new_venv
-bash: python3.13: command not found
$ python3.13 -m venv new_venv
bash: python3.13: command not found
There you have it - - - the first one run as superuser and the second as
usr.
Regards