You are not logged in.

#1 2018-08-26 09:44:33

Cristhian
Member
Registered: 2018-02-17
Posts: 76

Some problems updating phyton

Hi! Today I've updated the system with:

sudo pacman -Syu

and one of my package stop working. The package is Yeecli , I use it to control my Xiaomi bulb .

The error in the terminal:

sirth@arch ~> yeecli --ip 151.32.37.1 status
Traceback (most recent call last):
  File "/usr/bin/yeecli", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3105, in <module>
    @_call_aside
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3089, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3118, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 578, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 895, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 781, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'yeecli==0.1.0' distribution was not found and is required by the application
sirth@arch ~> python -m pip
/usr/bin/python: No module named pip
sirth@arch ~> yay -Ss python 3.7
aur/idle-python3.7-assets 1.0-1 (+1 0.66%)
    Python's Intergrated Development and Learning Environment

It seems yeecli need phyton to downgrade . What do you think?

Last edited by Cristhian (2018-08-26 09:45:40)

Offline

#2 2018-08-26 09:54:30

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Some problems updating phyton

AUR packages are your responsibility, not pacmans.

Rebuild and reinstall yeecli.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-08-26 09:54:58

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: Some problems updating phyton

yeecli is in AUR.  You are expected to rebuild AUR packages when required by packages updates.
Edit:
beaten by Slithery.

Last edited by loqs (2018-08-26 09:55:22)

Offline

#4 2018-08-26 10:19:49

Cristhian
Member
Registered: 2018-02-17
Posts: 76

Re: Some problems updating phyton

I'm trying to clean this way :

sirth@arch ~> yay -S yeecli
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur: 1]  yeecli-r49.6e391b5-1

  1 yeecli                           (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> I
:: PKGBUILD up to date, Skipping (1/1): yeecli
  1 yeecli                           (Build Files Exist)
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> Diffs to show?
==> n
HEAD is now at ca93c6a Add dependency
Already up to date.
:: Parsing SRCINFO (1/1): yeecli
==> Making package: yeecli r49.6e391b5-1 (Sun 26 Aug 2018 12:18:26 PM CEST)
==> Retrieving sources...
  -> Updating yeecli git repo...
Fetching origin
==> Validating source files with md5sums...
    yeecli ... Skipped
==> Cleaning up...
==> Making package: yeecli r49.6e391b5-1 (Sun 26 Aug 2018 12:18:27 PM CEST)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> python-click
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
Error making: yeecli

What I'm doing wrong?

Offline

#5 2018-08-26 10:58:20

Shawn8901
Member
Registered: 2013-05-07
Posts: 38

Re: Some problems updating phyton

Your tool seems to need a dependency, which is not installed, and your AUR Wrapper does not care to install it.
You are missing python-click package.
At least that's written in the log you posted.

Offline

#6 2018-08-26 11:12:23

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: Some problems updating phyton

The PKGBUILD has a dependency on python-click that is absent from the .SRCINFO.  As a note the package is also a git package but lacks the -git extension.

Offline

#7 2018-08-26 11:15:40

Cristhian
Member
Registered: 2018-02-17
Posts: 76

Re: Some problems updating phyton

I solved using yaourt.
Thank you so much. I started using yay because of some problems with yaourt 2 months ago.
Which do you prefer to build AUR packages?

Offline

#8 2018-08-26 11:23:50

Shawn8901
Member
Registered: 2013-05-07
Posts: 38

Re: Some problems updating phyton

AUR helpers are not officially supported by archlinux.
You should check out this article https://wiki.archlinux.org/index.php/AUR_helpers

If you trust this article you should better not use yaourt, but I still don't understand why you didn't just install python-click via pacman and then re-run yay.

Last edited by Shawn8901 (2018-08-26 11:28:38)

Offline

#9 2018-08-26 11:28:26

Cristhian
Member
Registered: 2018-02-17
Posts: 76

Re: Some problems updating phyton

Because pacman did not find phyton-click

Offline

#10 2018-08-26 11:50:28

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: Some problems updating phyton

phyton-click is not python-click

Offline

#11 2018-08-26 13:08:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Some problems updating phyton

Cristhian wrote:

Which do you prefer to build AUR packages?

Makepkg.  That's what you should be using too at least until you have a much better understanding of the AUR.  It's also what *everyone* should use when posting output to these forums for troubleshooting.

In this case, using makepkg properly would have avoided at least the secondary problem in this thread (missing dependency).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#12 2018-08-26 13:10:52

hcjl
Member
From: berlin
Registered: 2007-06-29
Posts: 330

Re: Some problems updating phyton

Offline

Board footer

Powered by FluxBB