@top4ek you probably need to rebuild python-telegram
against the latest python package.
Search Criteria
Package Details: telegram-tg 0.19.0-5
Package Actions
Git Clone URL: | https://aur.archlinux.org/telegram-tg.git (read-only, click to copy) |
---|---|
Package Base: | telegram-tg |
Description: | Telegram client for terminal |
Upstream URL: | https://github.com/paul-nameless/tg |
Keywords: | client telegram term terminal tg tui |
Licenses: | Unlicense |
Submitter: | j.r |
Maintainer: | None |
Last Packager: | xiota |
Votes: | 3 |
Popularity: | 0.000000 |
First Submitted: | 2020-06-28 22:13 (UTC) |
Last Updated: | 2024-08-07 12:46 (UTC) |
Dependencies (13)
- python (python37AUR, python311AUR, python310AUR)
- python-telegramAUR
- python-build (make)
- python-installer (python-installer-gitAUR) (make)
- python-poetry (python-poetry-gitAUR) (make)
- python-setuptools (make)
- python-wheel (make)
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-ffplayoutAUR, ffmpeg-amd-full-gitAUR, ffmpeg-cudaAUR, ffmpeg-full-gitAUR, ffmpeg-gitAUR, ffmpeg-libfdk_aacAUR, ffmpeg-fullAUR, ffmpeg-decklinkAUR, ffmpeg-headlessAUR, ffmpeg-obsAUR, ffmpeg-amd-fullAUR) (optional) – to record voice msgs and upload videos correctly
- fzf (fzf-gitAUR, skim-fzf-dropinAUR) (optional) – to create groups and secret chats, used for single and multiple user selection
- libnotify (libnotify-gitAUR) (optional) – for notifications, you could also use other programs: see config
- nnn (nnn-gitAUR, nnn-iconsAUR, nnn-nerdAUR, nnn-emoji-gitAUR, nnn-emojiAUR) (optional) – can be used to choose file when sending, customizable with FILE_PICKER_CMD
- ranger (ranger-gitAUR) (optional) – can be used to choose file when sending, customizable with FILE_PICKER_CMD
- urlviewAUR (urlview-xdg-gitAUR, urlview-gitAUR) (optional) – to choose urls when there is multiple in message, use URL_VIEW in config file to use another app, it should accept urls in stdin
Required by (0)
Sources (1)
j.r commented on 2023-06-29 07:27 (UTC)
top4ek commented on 2023-06-29 07:22 (UTC) (edited on 2023-06-29 07:25 (UTC) by top4ek)
Got this after entering phone number.
Traceback (most recent call last):
File "/usr/bin/tg", line 5, in <module>
from tg.__main__ import main
File "/usr/lib/python3.11/site-packages/tg/__main__.py", line 8, in <module>
from tg import config, update_handlers, utils
File "/usr/lib/python3.11/site-packages/tg/update_handlers.py", line 6, in <module>
from tg.controllers import Controller
File "/usr/lib/python3.11/site-packages/tg/controllers.py", line 10, in <module>
from telegram.utils import AsyncResult
ModuleNotFoundError: No module named 'telegram'
j.r commented on 2023-06-28 21:31 (UTC)
Thanks @chadvoegele looks like it's fixed now
chadvoegele commented on 2023-06-28 11:40 (UTC) (edited on 2023-06-28 11:40 (UTC) by chadvoegele)
Can you try this patch?
diff --git a/PKGBUILD b/PKGBUILD
index 8c4d484..7066c13 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,7 +32,7 @@ prepare() {
build() {
cd "$srcdir/$_pkgname-$pkgver"
- python -m build --wheel --no-isolation
+ python setup.py bdist_wheel
}
package() {
malcolm commented on 2022-08-10 20:20 (UTC)
anyupdate? still broken
j.r commented on 2022-07-25 16:26 (UTC)
@saro @Inko204 I investigated a bit more and found out if I build without a clean chroot, it indeed does not install the files correctly, but idk why. I thing I'll ask at the aur-general ML
saro commented on 2022-07-24 12:31 (UTC)
@j.r
I can confirm that the package is broken with last PKGBUILD
version.
After installation I can see the following list of files installed:
$ pacman -Ql telegram-tg
telegram-tg /usr/
telegram-tg /usr/bin/
telegram-tg /usr/bin/tg
telegram-tg /usr/lib/
telegram-tg /usr/lib/python3.10/
telegram-tg /usr/lib/python3.10/site-packages/
telegram-tg /usr/lib/python3.10/site-packages/tg-0.19.0.dist-info/
telegram-tg /usr/lib/python3.10/site-packages/tg-0.19.0.dist-info/METADATA
telegram-tg /usr/lib/python3.10/site-packages/tg-0.19.0.dist-info/RECORD
telegram-tg /usr/lib/python3.10/site-packages/tg-0.19.0.dist-info/WHEEL
telegram-tg /usr/lib/python3.10/site-packages/tg-0.19.0.dist-info/entry_points.txt
It looks like the actual python files are not installed. With the previous version the result is
$ pacman -Ql telegram-tg
telegram-tg /usr/
telegram-tg /usr/bin/
telegram-tg /usr/bin/tg
telegram-tg /usr/lib/
telegram-tg /usr/lib/python3.10/
telegram-tg /usr/lib/python3.10/site-packages/
telegram-tg /usr/lib/python3.10/site-packages/tg-0.19.0-py3.10.egg-info/
telegram-tg /usr/lib/python3.10/site-packages/tg-0.19.0-py3.10.egg-info/PKG-INFO
telegram-tg /usr/lib/python3.10/site-packages/tg-0.19.0-py3.10.egg-info/SOURCES.txt
telegram-tg /usr/lib/python3.10/site-packages/tg-0.19.0-py3.10.egg-info/dependency_links.txt
telegram-tg /usr/lib/python3.10/site-packages/tg-0.19.0-py3.10.egg-info/entry_points.txt
telegram-tg /usr/lib/python3.10/site-packages/tg-0.19.0-py3.10.egg-info/requires.txt
telegram-tg /usr/lib/python3.10/site-packages/tg-0.19.0-py3.10.egg-info/top_level.txt
telegram-tg /usr/lib/python3.10/site-packages/tg/
telegram-tg /usr/lib/python3.10/site-packages/tg/__init__.py
telegram-tg /usr/lib/python3.10/site-packages/tg/__main__.py
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/__init__.cpython-310.opt-1.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/__init__.cpython-310.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/__main__.cpython-310.opt-1.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/__main__.cpython-310.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/colors.cpython-310.opt-1.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/colors.cpython-310.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/config.cpython-310.opt-1.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/config.cpython-310.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/controllers.cpython-310.opt-1.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/controllers.cpython-310.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/models.cpython-310.opt-1.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/models.cpython-310.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/msg.cpython-310.opt-1.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/msg.cpython-310.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/tdlib.cpython-310.opt-1.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/tdlib.cpython-310.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/update_handlers.cpython-310.opt-1.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/update_handlers.cpython-310.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/utils.cpython-310.opt-1.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/utils.cpython-310.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/views.cpython-310.opt-1.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/__pycache__/views.cpython-310.pyc
telegram-tg /usr/lib/python3.10/site-packages/tg/colors.py
telegram-tg /usr/lib/python3.10/site-packages/tg/config.py
telegram-tg /usr/lib/python3.10/site-packages/tg/controllers.py
telegram-tg /usr/lib/python3.10/site-packages/tg/models.py
telegram-tg /usr/lib/python3.10/site-packages/tg/msg.py
telegram-tg /usr/lib/python3.10/site-packages/tg/tdlib.py
telegram-tg /usr/lib/python3.10/site-packages/tg/update_handlers.py
telegram-tg /usr/lib/python3.10/site-packages/tg/utils.py
telegram-tg /usr/lib/python3.10/site-packages/tg/views.py
Inko204 commented on 2022-07-22 14:57 (UTC)
@j.r @bitreactor
broken:
Traceback (most recent call last):
File "/usr/bin/tg", line 5, in <module>
from tg.__main__ import main
ModuleNotFoundError: No module named 'tg'
i'm on Manjaro.
j.r commented on 2022-07-14 21:51 (UTC)
@bitreactor at least for me it works. Could you provide more details about your build?
bitreactor commented on 2022-07-08 07:23 (UTC) (edited on 2022-07-08 07:23 (UTC) by bitreactor)
Built is broken:
Traceback (most recent call last):
File "/usr/bin/tg", line 5, in <module>
from tg.__main__ import main
ModuleNotFoundError: No module named 'tg'
Pinned Comments