Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Computers are not intelligent. They only think they are.


devel / comp.lang.python / doubt About import machine

SubjectAuthor
* doubt About import machineDaniel Eduardo Almeida Correa
`- Re: doubt About import machineJoe Pfeiffer

1
doubt About import machine

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: danialmeidac@gmail.com (Daniel Eduardo Almeida Correa)
Newsgroups: comp.lang.python
Subject: doubt About import machine
Date: Sun, 21 Nov 2021 13:36:23 -0500
Lines: 4
Message-ID: <mailman.108.1637520892.19479.python-list@python.org>
References: <CABBN8GnSpUs_dQ0YgZaMeesa7xhgpUWhhyLv8_K7qazwO2xjfg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de htUk7f+z/4UmFv9C1fWi7gBTSalcFgqzayOJB+1wvMzQ==
Return-Path: <danialmeidac@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=JrwcCWWA;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.013
X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'pip': 0.04;
'subject:import': 0.07; 'import': 0.15; '3.10': 0.16; 'answer.':
0.16; 'machine,': 0.16; 'subject:machine': 0.16; 'python': 0.16;
"can't": 0.17; 'solve': 0.19; 'to:addr:python-list': 0.20;
'machine': 0.22; 'version': 0.23; 'install': 0.23; 'library':
0.26; 'message-id:@mail.gmail.com': 0.32; 'but': 0.32; "i'm":
0.33; 'received:google.com': 0.34; 'trying': 0.35;
'from:addr:gmail.com': 0.35; 'received:209.85': 0.37; 'way': 0.38;
'could': 0.38; 'received:209': 0.39; 'received:209.85.208': 0.39;
'use': 0.39; 'hello,': 0.40; 'tell': 0.60; 'subject:About': 0.64;
'your': 0.64
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:from:date:message-id:subject:to;
bh=cSVcxxI008IPgHaIOcWd4pyd5b0kdBdrPQjzLeNfp5U=;
b=JrwcCWWARUAhlShAY/tVHY/MGUS4duYxJSxaZkH5SH3po7p3fM1b88pCl/e86SPGW5
oBo0VhX4BH5QRPOfjLTg8krNpd+7iqGa/OPsE+R718WnmOaCfA1ngcC8mw+rtdu40ZMD
adpXR19MuabKzRLcha4whDi9avw9YwepZW6Pk/AYBx9FeXOUO3jIKIrbMO1MI221TDSG
IFgUX7okwrNjK8aNKbTwER3VjhBX792iOavZ1b0ZZ7c39SDX9Yg6JgjoXfFdCS+RMEtF
pbRdjq23cQEn5+34s1dRo9Am/3nfoAjeIzKrLjiv2ROpZvkYgLpAzK/BzkqlWNQ1f2ve
iONw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=cSVcxxI008IPgHaIOcWd4pyd5b0kdBdrPQjzLeNfp5U=;
b=2U1UP3IIk2zHse39uO43Qf8466VOYyQCX98MeNBPx8tbuTW08BceBYsb0BTkEIH01m
apiTO+8Rgfu1vfLisPmUXGkRsz0Wtziyo+k14nDCIHPUZCtFBimgNudeoUgjK+1X71Gw
smLwrxqU88vaQijF3l0IEd4dwfJBDkVNfxMZUYAk9w6ZNfiBLwgUwRsaoj7gDh5HZOq7
6UESddI31eX2A/vSaDWUWbMR5nEeQ2zhkEmPZR/s2nfc+raWf8Oz4osX9qehglq2TuUG
qkhK75H1QLH3SByMcJdQNkNN8yI1uPUtiBD5hHAIWMM4Ljy5l0bucXmTG+p55+skQiuF
RopA==
X-Gm-Message-State: AOAM530bajSVi5Sdk6s8UunsrMCPj6fHvHakM/q9vpuPYrAWtq6SukQ/
JAGPnmqYgzjPxsEKce1EGS0kl2x5xFUmZaSvFM0hxYM/
X-Google-Smtp-Source: ABdhPJzSniQ6dlW0+2pFqz8xack94Bu+Yqpyq+HQk9jiR73g3Q75Vr6Mcv9/v73v0PnEWtvg8BpOBo6SKiqBw2qnGtM=
X-Received: by 2002:a05:6402:44c:: with SMTP id
p12mr54177057edw.234.1637519797039;
Sun, 21 Nov 2021 10:36:37 -0800 (PST)
X-Mailman-Approved-At: Sun, 21 Nov 2021 13:54:51 -0500
X-Content-Filtered-By: Mailman/MimeDel 2.1.37
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.37
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: <CABBN8GnSpUs_dQ0YgZaMeesa7xhgpUWhhyLv8_K7qazwO2xjfg@mail.gmail.com>
 by: Daniel Eduardo Almei - Sun, 21 Nov 2021 18:36 UTC

Hello, I'm trying to use the machine library in python 3.10 version, but I
can't import it with the pip install machine, could you tell me a way to
solve it or a python version compatible with the library? Thank you a lot
for your answer.

Re: doubt About import machine

<1b4k85kujh.fsf@pfeifferfamily.net>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: pfeiffer@cs.nmsu.edu (Joe Pfeiffer)
Newsgroups: comp.lang.python
Subject: Re: doubt About import machine
Date: Sun, 21 Nov 2021 15:34:10 -0700
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <1b4k85kujh.fsf@pfeifferfamily.net>
References: <CABBN8GnSpUs_dQ0YgZaMeesa7xhgpUWhhyLv8_K7qazwO2xjfg@mail.gmail.com>
<mailman.108.1637520892.19479.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="f2836aedbbc7c655a9ae360e6c5952dc";
logging-data="31669"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qKVcD+9AZdNVbJ2rlCXuAxDwqIk3UFQc="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:xAE4FuGkMc1FzapwPuau3J+carI=
sha1:jN7nnZt1Qm/BzkcMhKFuegMFEz0=
 by: Joe Pfeiffer - Sun, 21 Nov 2021 22:34 UTC

Daniel Eduardo Almeida Correa <danialmeidac@gmail.com> writes:

> Hello, I'm trying to use the machine library in python 3.10 version, but I
> can't import it with the pip install machine, could you tell me a way to
> solve it or a python version compatible with the library? Thank you a lot
> for your answer.

The "machine" package on pypi appears to only be an example of best
practices for a python package, and doesn't actually contain anything
useful. Installing it doesn't actually give you a package called
"machine" that you can import; it lets you import something called
"sample" instead, which contains

def main():
"""Entry point for the application script"""
print("Call your main application code here")

as its __init__()

I'll note that I'm sort of a beginner with python so I may be speaking
out of turn, but it strikes me as really unlikely that the "best
practice" for a package named "machine" would put its code in a
directory named "sample".

Following the home page link for the project leads to a 404 on github


devel / comp.lang.python / doubt About import machine

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor