This?
/usr/lib/python2.7/site-packages/wx/lib/pubsub/__init__.py is owned by python2-wxpython4 4.0.3-4
Git Clone URL: | https://aur.archlinux.org/yt-dlg-git.git (read-only, click to copy) |
---|---|
Package Base: | yt-dlg-git |
Description: | A cross platform front-end GUI of the popular youtube-dl written in wxPython (maintained fork of youtube-dl-gui) |
Upstream URL: | https://github.com/oleksis/youtube-dl-gui |
Licenses: | custom:UNLICENSE |
Conflicts: | youtube-dl-gui, yt-dlg |
Provides: | yt-dlg |
Submitter: | Gr3q |
Maintainer: | Gr3q |
Last Packager: | Gr3q |
Votes: | 93 |
Popularity: | 0.016858 |
First Submitted: | 2021-07-02 20:12 (UTC) |
Last Updated: | 2022-03-06 18:27 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 Next › Last »
This?
/usr/lib/python2.7/site-packages/wx/lib/pubsub/__init__.py is owned by python2-wxpython4 4.0.3-4
@vS0uz4: again, what does pacman -Qo /usr/lib/python2.7/site-packages/wx/lib/pubsub/__init__.py
print, the file that raises the ImportError in the traceback?
@willemw forcibly removed the caches
rm -rf ~/.cache/yay/youtube-dl-gui-git
executed as mentioned in the command
pacman -Qo /usr/lib/python2.7/site-packages/wx/lib/pubsub/__init__.py
And finally I requested the installation with yay passing the parameter informing to clear the caches in the creation of the package as below:
yay -S youtube-dl-gui-git --answerclean A --nodiffmenu --noeditmenu
the compilation error remains as you can see in the log below:
==> Extracting sources...
-> Creating working copy of youtube-dl-gui-git git repo...
Cloning into 'youtube-dl-gui-git'...
done.
==> Starting pkgver()...
==> Sources are ready.
==> Making package: youtube-dl-gui-git 0.4.r81.gc5c18e5-1 (sáb 06 fev 2021 16:58:06)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Entering fakeroot environment...
==> Starting package()...
Traceback (most recent call last):
File "setup.py", line 73, in <module>
from youtube_dl_gui import (
File "/home/vs0uz4/.cache/yay/youtube-dl-gui-git/src/youtube-dl-gui-git/youtube_dl_gui/__init__.py", line 79, in <module>
from .mainframe import MainFrame
File "/home/vs0uz4/.cache/yay/youtube-dl-gui-git/src/youtube-dl-gui-git/youtube_dl_gui/mainframe.py", line 12, in <module>
from wx.lib.pubsub import setuparg1 #NOTE Should remove deprecated
File "/usr/lib/python2.7/site-packages/wx/lib/pubsub/__init__.py", line 41, in <module>
raise ImportError(msg)
ImportError: Stand-alone pubsub not found. Use `pip install PyPubSub`
==> ERROR: A failure occurred in package().
Aborting...
error making: youtube-dl-gui-git
@willemw
In my /usr/lib/python2.7/site-packages/wx/lib/pubsub/__init__.py
# Name: __init__.py
# Package: wx.lib.pubsub
#
# Purpose: Pubsub package initialization
#
# Author: Oliver Schoenborn
# Copyright: Oliver Schoenborn
# Licence: BSD, see LICENSE_BSD_Simple.txt for details
# History: Created 2000/2006
#
# Tags: phoenix-port, documented
#
#----------------------------------------------------------------------------
"""
**pubsub** is a Python package which provides a publish/subscribe API to facilitate event-based
programming and decoupling of components of an application via the Observer design pattern.
Using the Observer pattern in your application can dramatically simplify its design and improve
testability. Basically you just have some part(s) of your program subscribe to a particular topic
and have some other part(s) of your program publish messages with that topic. All the plumbing
is taken care of by pubsub.
It originated in wxPython around the year 2000 but has been standalone, available on PyPI, since
2006 under the name **PyPubSub** although the code has also been kept in wxPython as wx.lib.pubsub.
To remove the duplication of the pubsub code in both PyPubSub and wx.lib but to maintain backward
compatibility, wxPython 4 simply imports the standalone package into wx.lib.pubsub. Installing
or updating wxPython should now also install PyPubSub but it can be explicitly installed using
``pip install PyPubSub``
The documentation for pubsub is available at https://pypubsub.readthedocs.io/en/v4.0.0/ and the
source code is hosted at https://github.com/schollii/pypubsub
"""
try:
from pubsub import *
except ImportError:
msg = "Stand-alone pubsub not found. Use `pip install PyPubSub`"
raise ImportError(msg)
In ".../wx/" exists any files and folders
adv.py
core.py
gizmos.py
grid.pyi
html.pyi
media.pyi
_propgrid.so
richtext.pyi
__version__.py
_xml.so
adv.pyc
core.pyc
gizmos.pyc
_grid.so
_html.so
_media.so
py
_richtext.so
__version__.pyc
xrc.py
adv.pyi
core.pyi
glcanvas.py
html2.py
__init__.py
msw.py
ribbon.py
siplib.so
webkit.py
xrc.pyc
_adv.so
_core.so
glcanvas.pyc
html2.pyc
__init__.pyc
msw.pyc
ribbon.pyc
stc.py
webkit.pyc
xrc.pyi
aui.py
dataview.py
glcanvas.pyi
html2.pyi lib
msw.pyi
ribbon.pyi
stc.pyc
webkit.pyi
_xrc.so
aui.pyc
dataview.pyc
_glcanvas.so
_html2.so
locale
propgrid.py
_ribbon.so
stc.pyi
xml.py
aui.pyi
dataview.pyi
grid.py
html.py
media.py
propgrid.pyc
richtext.py
_stc.so
xml.pyc
_aui.so
_dataview.so
grid.pyc
html.pyc
media.pyc
propgrid.pyi
richtext.pyc
tools
xml.pyi
In "/usr/lib/python2.7/site-packages/wx-3.0-gtk3" exist others files and folders
wx
wxPython-3.0.2.0-py2.7.egg-info
@vS0uz4: which packages owns file /usr/lib/python2.7/site-packages/wx/lib/pubsub/__init__.py
? Run pacman -Qo /usr/lib/python2.7/site-packages/wx/lib/pubsub/__init__.py
.
I don't have any files in ".../wx/", only in "/usr/lib/python2.7/site-packages/wx-3.0-gtk3", owned by python2-wxpython3.
@spsf64 Yes, thanks for the feedback.
I will try using makepkg, to see if the problem is in yay
@vS0uz4: no problems for me here, works fine. Try to use makepkg instead of yay... @willemw: thanks for maintaining this package!
@Willemw But I did just that!
I use "yay" as a package manager, and when installing "youtube-dl-gui-git" I just informed you to clear the entire cache before generating the package.
@vS0uz4: Cannot reproduce in a clean chroot build environment. Maybe try removing some of your cached build folders and cached package files.
Pinned Comments
willemw commented on 2021-07-03 09:24 (UTC)
Switched to oleksis' fork (Python 3).
@Gr3q: Thanks. The app seems to work fine now.
The app is now called yt-dlg. (Could change that back to the old name youtube-dl-gui). Updated the .desktop file to run yt-dlg.
The app also now includes translations (thanks for @jose1711 for pointed that out in his PKGBUILD file).
(In the PKGBUILD file there is second version of the PKGBUILD in comments. That version follows the upstream build and run steps (pip install).)