Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Can't find packages from python-pip in environment (Read 1786 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Can't find packages from python-pip in environment

Hello,

I tried to install pacman -S python-flit
But I can't use flit in the console ... Is there a missing configuration? How can I fix it?

Best regards!

Re: Can't find packages from python-pip in environment

Reply #1
sorry, but python-fite does exist not in archlinux nor AUR and  we give no support for installation packages via python-pip. We give support only packages installed via pacman from archlinux and artixlinux's repos

Re: Can't find packages from python-pip in environment

Reply #2
Sorry this was a typo of me

I meant python-flit ;-)

Code: [Select]
[justin@JustinPC site-packages]$ sudo pacman -Ss python-flit
community/python-flit 3.2.0-1 [Installiert]
    Simplified packaging of Python modules
community/python-flit-core 3.2.0-1 [Installiert]
    Simplified packaging of Python modules (core backend)
[justin@JustinPC site-packages]$ flit
bash: flit: Kommando nicht gefunden.



Re: Can't find packages from python-pip in environment

Reply #5
https://archlinux.org/packages/community/any/python-flit/

it's in archlinux's repo, just install it (not need pip)

but this packages contains no /usr/bin/flit command, you can't run it as normall command, it's python!

you should run it as 
Code: [Select]
python myScript.py

Hmm according to https://github.com/takluyver/flit there should be a command line and aur packages like solo-python use it as a command line in their PKGBUILD too ... I think it is an mistake of an archlinux maintainer right?

Re: Can't find packages from python-pip in environment

Reply #6
hmm, but for instalation they say install it via
Code: [Select]
python -m pip install flit
and use inside PIP env with command
Code: [Select]
flit
but you used this command in BASH env, not in PIP env.

therefore  you recieved "bash: flit: Kommando nicht gefunden."

in your case (you have flit installed via pacman), you should run it as
Code: [Select]
pip flit

Re: Can't find packages from python-pip in environment

Reply #7
hmm, but for instalation they say install it via
Code: [Select]
python -m pip install flit
and use inside PIP env with command
Code: [Select]
flit
but you used this command in BASH env, not in PIP env.

therefore  you recieved "bash: flit: Kommando nicht gefunden."

yes i taught it has to be in bash environment... But okay then it is a mistake of the solo-python package... https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=solo-python

they use flit as a bash command here...

Thank you for your reply and good explain!



 

Re: Can't find packages from python-pip in environment

Reply #10
Code: [Select]
pkgname=solo-python
pkgver=0.0.27
pkgrel=2
pkgdesc="Tools and Python library for SoloKeys."
arch=('any')
url="https://github.com/solokeys/solo-python"
license=('Apache' 'MIT')
depends=('python' 'python-click>=7.0' 'python-cryptography' 'python-ecdsa'
         'python-fido2' 'python-intelhex' 'python-pyserial' 'python-pyusb'
         'python-requests')
makedepends=('fakeroot' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/s/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('72a4699eb3b1979d7a2561c538987f868b5e7ee4e4a5b402b8a4d460d3dd6ec7')

build() {
  cd $pkgname-$pkgver
  python setup.py build
}

package() {
  cd $pkgname-$pkgver
  python setup.py install --root="${pkgdir}" --optimize=1

no idea if really flit is needed,  they use it only for installing

Re: Can't find packages from python-pip in environment

Reply #11
Code: [Select]
pkgname=solo-python
pkgver=0.0.27
pkgrel=2
pkgdesc="Tools and Python library for SoloKeys."
arch=('any')
url="https://github.com/solokeys/solo-python"
license=('Apache' 'MIT')
depends=('python' 'python-click>=7.0' 'python-cryptography' 'python-ecdsa'
         'python-fido2' 'python-intelhex' 'python-pyserial' 'python-pyusb'
         'python-requests')
makedepends=('fakeroot' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/s/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('72a4699eb3b1979d7a2561c538987f868b5e7ee4e4a5b402b8a4d460d3dd6ec7')

build() {
  cd $pkgname-$pkgver
  python setup.py build
}

package() {
  cd $pkgname-$pkgver
  python setup.py install --root="${pkgdir}" --optimize=1

no idea if really flit is needed,  they use it only for installing
Yes and they break another installs with their PKGBUILD. So you are totally right ... Maybe we should report this packet...

I got install errors, because python-pyusb python-fido python-ecdsa etc. exist in file system ... but it isn't installed via pip or pacman/aur so I can't remove it ... I will delete it via rm now.

Re: Can't find packages from python-pip in environment

Reply #12
Code: [Select]
pkgname=solo-python
pkgver=0.0.27
pkgrel=2
pkgdesc="Tools and Python library for SoloKeys."
arch=('any')
url="https://github.com/solokeys/solo-python"
license=('Apache' 'MIT')
depends=('python' 'python-click>=7.0' 'python-cryptography' 'python-ecdsa'
         'python-fido2' 'python-intelhex' 'python-pyserial' 'python-pyusb'
         'python-requests')
makedepends=('fakeroot' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/s/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('72a4699eb3b1979d7a2561c538987f868b5e7ee4e4a5b402b8a4d460d3dd6ec7')

build() {
  cd $pkgname-$pkgver
  python setup.py build
}

package() {
  cd $pkgname-$pkgver
  python setup.py install --root="${pkgdir}" --optimize=1

no idea if really flit is needed,  they use it only for installing

Your PKGBUILD seems to look well but it isn't buildling a solo binary... (even not in python environment)
I tried to use --compile flag but doesn't seem to work.

Re: Can't find packages from python-pip in environment

Reply #13
put here the output from teminal please

Re: Can't find packages from python-pip in environment

Reply #14
I tried to look into the setup.py

There are entry_points:
Code: [Select]
entry_points = \
{'console_scripts': ['solo = solo.cli:solo_cli']}


Code: [Select]
[justin@JustinPC solo-key]$ ls
PKGBUILD  pkg  solo-python-0.0.27-2-any.pkg.tar.zst  solo-python-0.0.27.tar.gz  src
[justin@JustinPC solo-key]$ makepkg -si
==> WARNUNG: Es wurde bereits ein Paket gebaut, installiere existierendes Paket...
==> Installiere Paket solo-python mit pacman -U...
[sudo] Passwort für justin:
Lade Pakete...
Löse Abhängigkeiten auf...
Suche nach in Konflikt stehenden Paketen...

Pakete (7) python-click-7.1.2-3  python-ecdsa-0.16.1-1  python-fido2-0.8.1-3  python-intelhex-2.3.0-2  python-pyserial-3.5-2
           python-pyusb-1.1.1-1  solo-python-0.0.27-2

Gesamtgröße der installierten Pakete:  4,21 MiB

:: Installation fortsetzen? [J/n] J
(7/7) Prüfe Schlüssel im Schlüsselring                                            [###############################################] 100%
(6/7) Überprüfe Paket-Integrität                                                  [###############################################] 100%
(6/7) Lade Paket-Dateien                                                          [###############################################] 100%
(7/7) Prüfe auf Dateikonflikte                                                    [###############################################] 100%
(7/7) Überprüfe verfügbaren Festplattenspeicher                                   [###############################################] 100%
:: Verarbeite Paketänderungen...
(1/7) Installiere python-click                                                    [###############################################] 100%
(2/7) Installiere python-ecdsa                                                    [###############################################] 100%
(3/7) Installiere python-fido2                                                    [###############################################] 100%
(4/7) Installiere python-intelhex                                                 [###############################################] 100%
(5/7) Installiere python-pyserial                                                 [###############################################] 100%
(6/7) Installiere python-pyusb                                                    [###############################################] 100%
(7/7) Installiere solo-python                                                     [###############################################] 100%
[justin@JustinPC solo-key]$ solo
bash: solo: Kommando nicht gefunden.
[justin@JustinPC solo-key]$ pip solo
ERROR: unknown command "solo"
[justin@JustinPC solo-key]$ python -m solo
/usr/bin/python: No module named solo.__main__; 'solo' is a package and cannot be directly executed