Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"The identical is equal to itself, since it is different." -- Franco Spisani


devel / comp.lang.python / Re: What can I do about this?

SubjectAuthor
o Re: What can I do about this?gene heskett

1
Re: What can I do about this?

<mailman.361.1661785942.20444.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19360&group=comp.lang.python#19360

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ghesk...@shentel.net (gene heskett)
Newsgroups: comp.lang.python
Subject: Re: What can I do about this?
Date: Mon, 29 Aug 2022 11:12:17 -0400
Lines: 159
Message-ID: <mailman.361.1661785942.20444.python-list@python.org>
References: <38cb2d9f-9e89-39aa-341a-eee27296a523@shentel.net>
<20220828233201.k3xmcpdnpn63wxeb@hjp.at>
<96f5d626-5ebb-67a7-c7a7-1c6c5284fb1a@shentel.net>
<babb2665-1571-1dcf-90e4-4bf69694be76@roelschroeven.net>
<b4d9867f-8f05-443b-fbbf-17bf000954ba@shentel.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de htqhnjo9c4LO/H0sxL6pUwxDuBrgKCmedus6Zu3C83AA==
Return-Path: <gheskett@shentel.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'looks': 0.02; 'pip': 0.04;
'bunch': 0.05; 'received:204': 0.05; 'aug': 0.07; 'explicitly':
0.07; '(assuming': 0.09; '*not*': 0.09; 'anymore.': 0.09;
'apparently': 0.09; 'bin': 0.09; 'enough.': 0.09; 'git': 0.09;
'identical': 0.09; 'likewise': 0.09; 'line:': 0.09; 'linux': 0.09;
'roel': 0.09; 'schroeven': 0.09; 'tomorrow.': 0.09; 'cheers,':
0.11; '"there': 0.16; '-ed': 0.16; '908': 0.16; '>>>>': 0.16;
'ammo.': 0.16; 'app,': 0.16; 'ballot,': 0.16; 'brandeis': 0.16;
'desire': 0.16; 'drive,': 0.16; 'from:addr:gheskett': 0.16;
'from:addr:shentel.net': 0.16; 'from:name:gene heskett': 0.16;
'genes': 0.16; 'gui,': 0.16; 'heavy': 0.16; 'heskett': 0.16;
'holzer': 0.16; 'howdershelt': 0.16; 'instead.': 0.16; 'invoke':
0.16; 'jury,': 0.16; 'liberty:': 0.16; 'message-id:@shentel.net':
0.16; 'next?': 0.16; 'one?': 0.16; 'order."': 0.16; 'printer':
0.16; 'printer.': 0.16; 'python3': 0.16; 'received:204.111': 0.16;
'received:204.111.64': 0.16; 'received:204.111.64.149': 0.16;
'respectable.': 0.16; 'schreef': 0.16; 'sensible': 0.16; 'slow':
0.16; 'soap,': 0.16; 'solution:': 0.16; 'specify': 0.16; 'times,':
0.16; 'url:6309': 0.16; 'url:geneslinuxbox': 0.16; 'used:': 0.16;
'wrote:': 0.16; 'problem': 0.16; 'python': 0.16; 'to:addr:python-
list': 0.20; "i've": 0.22; 'application.': 0.22; 'first,': 0.22;
'instructions': 0.22; 'ran': 0.22; 'version': 0.23; 'install':
0.23; 'command': 0.23; 'installed': 0.23; 'run': 0.23; '(and':
0.25; 'seems': 0.26; 'contents.': 0.26; 'skip:{ 20': 0.26; 'else':
0.27; '>>>': 0.28; 'folks': 0.28; 'header:User-Agent:1': 0.30;
'before.': 0.31; 'default': 0.31; 'effect': 0.31; "doesn't": 0.32;
'(as': 0.32; 'answers': 0.32; 'from,': 0.32; 'but': 0.32; "i'm":
0.33; 'there': 0.33; 'path': 0.33; 'able': 0.34; 'same': 0.34;
'package': 0.34; 'work.': 0.34; 'header:In-Reply-To:1': 0.34;
'trying': 0.35; 'failed': 0.35; 'respect': 0.35; 'runs': 0.35;
'close': 0.35; 'your': 0.64; 'top': 0.65; 'came': 0.65; 'supply':
0.65; 'look': 0.65; '100%': 0.66; 'lead': 0.67; 'subject:this':
0.67; 'maintenance': 0.67; 'away': 0.67; 'live': 0.68; 'manager':
0.68; 'url:net': 0.68; 'law,': 0.69; 'only.': 0.69; 'skip:/ 10':
0.69; 'skip:/ 30': 0.69; 'url-ip:lookup error': 0.70; '2nd': 0.70;
'managers': 0.70; 'too.': 0.70; 'you.': 0.71; 'awaiting': 0.71;
'claim': 0.71; 'speed': 0.71; 'direct': 0.73; 'deal': 0.73;
'head': 0.73; 'usd': 0.74; 'card': 0.76; 'quickly': 0.80;
'dangerous': 0.81; 'waste': 0.81; '1940)': 0.84; 'heat': 0.84;
'kit': 0.84; 'received:mail': 0.84; 'stronger': 0.84; 'stuff,':
0.84; 'activate': 0.91; 'plastic': 0.91; 'storage': 0.95
auth-sender: gheskett@shentel.net
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.12.0
Content-Language: en-US
In-Reply-To: <babb2665-1571-1dcf-90e4-4bf69694be76@roelschroeven.net>
X-CTCH-Spam: Unknown
X-CTCH-RefID: str=0001.0A742F27.630CD752.000E, ss=1, re=0.000, recu=0.000,
reip=0.000, cl=1, cld=1, fgs=0
X-OriginalArrivalTime: 29 Aug 2022 15:14:55.0206 (UTC)
FILETIME=[1837F060:01D8BBBA]
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <b4d9867f-8f05-443b-fbbf-17bf000954ba@shentel.net>
X-Mailman-Original-References: <38cb2d9f-9e89-39aa-341a-eee27296a523@shentel.net>
<20220828233201.k3xmcpdnpn63wxeb@hjp.at>
<96f5d626-5ebb-67a7-c7a7-1c6c5284fb1a@shentel.net>
<babb2665-1571-1dcf-90e4-4bf69694be76@roelschroeven.net>
 by: gene heskett - Mon, 29 Aug 2022 15:12 UTC

On 8/29/22 05:25, Roel Schroeven wrote:
> Op 29/08/2022 om 2:55 schreef gene heskett:
>> On 8/28/22 19:39, Peter J. Holzer wrote:
>>> On 2022-08-28 18:40:17 -0400, gene heskett wrote:
>>>> Persuant to my claim the py3.10 is busted, here is a sample. This
>>>> is me,
>>>> trying to make
>>>> pronterface, inside a venv: When the package manager version will
>>>> only run
>>>> the gui-less "pronsole"
>>>> but nothing else from that all python kit runs as it should or at all.
>>>>  From the package-managers install in
>>>> /usr/share/doc/printrun-common/ I
>>>> copied requirements.txt
>>>> into the venv, and ran this command line:
>>>>
>>>> gene@rock64:~/venv$ pip3 install -r requirements.txt
>>> You are almost certainly *not* in a venv here. First, your prompt
>>> doesn't show the name of the venv,
>> I've created that several times, as octoprint won''t run without it
>> either.
>> I found a way to autostart it on reboots and octoprint seems happy
>> with it
> I agree with Peter: it doesn't look as if you are invoking the pip3 in
> the venv. Just making the venv-directory the current directory doesn't
> activate it.
>
> As a diagnostic, ask the OS which pip3 is actually used:
>
> $ type -a pip3
>
I get different answers in or out of the venv

venv) gene@rock64:~/printrun/Printrun$ type -a pip3
pip3 is /home/gene/printrun/Printrun/venv/bin/pip3
pip3 is /usr/bin/pip3
pip3 is /bin/pip3

or:

gene@rock64:~/src/wxPython-4.2.0$ type -a pip3
pip3 is /usr/bin/pip3
pip3 is /bin/pip3

but with all the build instructions I've now followed, I now have at
least 3 different
venv subdirs scattered about.

one in /home/gene,
one in /home/gene/Octoprint,
and one in /home/gene/printrun

each with its own bin subdir, but not identical contents.

> Does that show the pip3 installed in the venv? Or the system-wide one?
> If it's not the pip3 in the venv, well, then that's the problem (or at
> least part of the problem). Solution: first check whether the venv
> really contains 'pip3' (as opposed to eg. just 'pip'): list the
> contents of the bin subdirectory of the venv.
gene@rock64:~/venv/bin$ ls -l
total 36
-rw-r--r-- 1 gene gene 1982 Aug 21 13:12 activate
-rw-r--r-- 1 gene gene  908 Aug 21 13:12 activate.csh
-rw-r--r-- 1 gene gene 2050 Aug 21 13:12 activate.fish
-rw-r--r-- 1 gene gene 9033 Aug 21 13:12 Activate.ps1
-rwxrwxr-x 1 gene gene  232 Aug 21 13:12 pip
-rwxrwxr-x 1 gene gene  232 Aug 21 13:12 pip3
-rwxrwxr-x 1 gene gene  232 Aug 21 13:12 pip3.10
lrwxrwxrwx 1 gene gene    7 Aug 21 13:11 python -> python3
lrwxrwxrwx 1 gene gene   16 Aug 21 13:11 python3 -> /usr/bin/python3
lrwxrwxrwx 1 gene gene    7 Aug 21 13:11 python3.10 -> python3

> If not, use 'pip' or whatever instead. Then to make sure you use the
> one in the venv, either activate the venv or explicitly specify the
> path when invoking pip/pip3 (and likewise for python/python3).
>
> So either (assuming you're using bash):
>
> $ source {path_to_venv}/bin/pip3  # activate the venv
> $ type -a pip3  # check whether now the correct pip3 is used
> $ pip3 install -r requirements.txt  # finally invoke pip3
>
> or:
>
> $ {path_to_venv}/bin/pip3 install -r requirements.txt
>
> Activating the venv is easier if you're going to use multiple commands
> in the venv. Note that activating the venv only has effect on the
> current shell; other shells are unaffected, and when you close the
> current shell the venv is not activated anymore.
> Explicitly using the path is easier for one-off calls, or in things
> like crontab.
>
I've not had to deal with venv's before. Can more than one of these venv
things
peacefully coexist?  Seems like they should. If there is sufficient nv
memory,
But I am a 100% new bee here. The card itself is a 64GB.

I also have the git clone of wxPython-4.2.0, but nothing I can invoke
there builds it.
But there are no specific linux instructions there, osx and winders
only. The package
managers version of wxPython-4.0.7 apparently is not new enough.

It seems to me these utility's ought to be able to all live in one venv,
or there should be
an env python path that is specific to each application. This would lead
to a huge waste
of nv storage by duplicating a venv for each app, not sensible when the
target of the venv
is a common arm64 system. All broadcom for gpio etc.

Presently, Octoprint works, and so does pronsole which has no gui, but
Octoprint
is a one printer show, and I've a small farm of printers. Most of which have
failed the PETG test ,but that claimed to be PETG compatible, but
quickly failed
when fed a roll of it. PETG is the same plastic forever bottles are made
from, much
stronger than the PLA most folks use for artwork and what I'm doing
needs its
physical strength. It also raises the printhead temp around 50C, which
causes
teflon to slowly ablate with phosgene gas as output. Dangerous stuff,
and high
maintenance too.

What I hope to be the 2nd workhorse  is an Ender 5 Plus, a huge core-xy
thing that
now has a 300C capable head and an orbiter-v2 direct drive, heavy enough
I've
had to restrict  its top speed from its default 500mm. The other printer
is a
Prusa MK3S+ I've about $1500 USD in. It works nice _now_ but came with a
high leakage hot block some gorilla had over tightened and stripped the
heat
break threads, but is slow if fed at cura's default 60mm speeds.

So what should I do next? That includes blowing it all away and starting
over. I have
another rock64. and a kvm swithch on an Amazon truck, be here tomorrow. That
may be my best bet, a separate rock64 and octoprint for each printer.
That at least
looks like it might work. Find a 10+ amp 5 volt supply to run a bunch of
the korean
boards. If the kvm switch works.

Awaiting advice.  Thank you.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor