LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-11-2024, 01:54 PM   #1
rinza
Member
 
Registered: Feb 2021
Distribution: Slackware64-current / Plasma
Posts: 36

Rep: Reputation: 3
Question Python "typing_extensions" not found with setuptools_scm-8.1.0


Hi! According to -current changelog, python-typing_extensions is no longer needed with the new python-setuptools_scm-8.1.0, so it was removed. But trying to run Deluge I get an error claiming that typing_extensions module is missing. I tried to recompile Deluge and reinstall all python modules, but the error persists. Installing typing_extensions via pip globally makes Deluge work again. Any idea how to solve this?
 
Old 05-11-2024, 02:14 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,120

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
hi rinza,

if I setup the unofficial repository for current in sbopgk and I run
Code:
sqg -p deluge
a /var/lib/sbopkg/queues/deluge.sqf queue is generated with this content
Code:
libtorrent-rasterbar
python3-semantic-version
typing-extensions
python3-setuptools-rust-opt
cryptography
pyOpenSSL
python3-hatch_fancy_pypi_readme
python3-hatch_vcs
python3-pyasn1
python3-pyasn1-modules
python3-attrs
python3-service-identity
zope.interface
python3-incremental
python3-hyperlink
python3-versioneer
python3-constantly
python3-automat
python3-twisted
python2-wheel
rencode
deluge
so maybe typing-extensions on SBo is not a dependency of python-setuptools_scm anymore but looks like a dependency of some other python module that deluge uses.
 
2 members found this post helpful.
Old 05-11-2024, 03:34 PM   #3
rinza
Member
 
Registered: Feb 2021
Distribution: Slackware64-current / Plasma
Posts: 36

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by ponce View Post
so maybe typing-extensions on SBo is not a dependency of python-setuptools_scm anymore but looks like a dependency of some other python module that deluge uses.
Oh, I've thought typing-extensions functions were merged into the new setuptools_scm, but now I see that maybe it was removed because setuptools_scm or any other official package no longer required it. Thanks!

Last edited by rinza; 05-11-2024 at 03:37 PM.
 
Old 05-12-2024, 07:39 AM   #4
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 325

Rep: Reputation: 216Reputation: 216Reputation: 216
Hrm, I wonder why, libtorrent-rasterbar is the only one in the deluge queue that doesn't build here and that can be fixed by removing the "-Dpython-egg-info=ON " line from the slackbuild or bumping the version to 2.0.10.

You are right though, typing-extensions should only be needed with python versions <3.10. Do you still have some other slackbuilds still built against 3.9 or some other leftover 3.9 cruft?
 
1 members found this post helpful.
Old 05-12-2024, 12:07 PM   #5
rinza
Member
 
Registered: Feb 2021
Distribution: Slackware64-current / Plasma
Posts: 36

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by fourtysixandtwo View Post
Hrm, I wonder why, libtorrent-rasterbar is the only one in the deluge queue that doesn't build here and that can be fixed by removing the "-Dpython-egg-info=ON " line from the slackbuild or bumping the version to 2.0.10.
I'm not sure but I recall being able to recompile against current python an older libtorrent-rasterbar by removing the -Dgnutls=$GNUTLS parameter from ponce repository script, but keeping everything else, including the egg-info.

Quote:
Originally Posted by fourtysixandtwo View Post
You are right though, typing-extensions should only be needed with python versions <3.10. Do you still have some other slackbuilds still built against 3.9 or some other leftover 3.9 cruft?
That is what I misunderstood from the changelog message. I thought that typing-extensions components were somehow included in other package, but it seems that its usage was just deprecated, if I'm not wrong.
 
1 members found this post helpful.
Old 05-13-2024, 06:47 AM   #6
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 325

Rep: Reputation: 216Reputation: 216Reputation: 216
Quote:
Originally Posted by rinza View Post
I'm not sure but I recall being able to recompile against current python an older libtorrent-rasterbar by removing the -Dgnutls=$GNUTLS parameter from ponce repository script, but keeping everything else, including the egg-info.

That is what I misunderstood from the changelog message. I thought that typing-extensions components were somehow included in other package, but it seems that its usage was just deprecated, if I'm not wrong.
-Dgnutls=$GNUTLS doesn't exist in the libtorrent-rasterbar slackbuild which is unchanged from the 15.0 repo. Anyways I'll be mentioning the change to the maintainer as the egg info is going the way of the dodo.

As for typing-extensions, I believe you have some python 3.9>3.11 issues to clean up on your box. I've posted recently for what to search for if you plan on looking into it.
 
Old 05-14-2024, 09:17 AM   #7
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 362

Rep: Reputation: 200Reputation: 200Reputation: 200
I think there's some misunderstanding about typing-extensions here.

typing-extensions extends typing module from Python's standard library, so that new features could be used on older Python versions. It was added to -current when setuptools-scm started requiring it and -current was still on Python 3.9. Now that Python is upgraded to 3.11 and setuptools-scm added a condition to require typing-extensions only for python < 3.10, it was removed from -current.

This doesn't mean that typing-extensions isn't needed at all, only that nothing in -current depends on it at the moment. If something in deluge's dependency tree requires it, then you need to install it to fulfill that requirement.
 
1 members found this post helpful.
Old 05-14-2024, 06:43 PM   #8
rinza
Member
 
Registered: Feb 2021
Distribution: Slackware64-current / Plasma
Posts: 36

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by audriusk View Post
I think there's some misunderstanding about typing-extensions here.

typing-extensions extends typing module from Python's standard library, so that new features could be used on older Python versions. It was added to -current when setuptools-scm started requiring it and -current was still on Python 3.9. Now that Python is upgraded to 3.11 and setuptools-scm added a condition to require typing-extensions only for python < 3.10, it was removed from -current.

This doesn't mean that typing-extensions isn't needed at all, only that nothing in -current depends on it at the moment. If something in deluge's dependency tree requires it, then you need to install it to fulfill that requirement.
Nice! Thanks for the explanation, now it makes sense.
 
Old 05-15-2024, 01:04 PM   #9
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 325

Rep: Reputation: 216Reputation: 216Reputation: 216
Sorry, the confusion was on my part. I had been thinking typing-extensions was removed from ponce's repo and ignoring it was being built. I had been thinking of emailing ponce about it, but didn't because of a situation like this one.
 
Old 05-15-2024, 01:47 PM   #10
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,120

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
Quote:
Originally Posted by fourtysixandtwo View Post
Sorry, the confusion was on my part. I had been thinking typing-extensions was removed from ponce's repo and ignoring it was being built. I had been thinking of emailing ponce about it, but didn't because of a situation like this one.
I removed it but I added it back when I saw Pat removing it from current.
 
1 members found this post helpful.
Old 05-15-2024, 02:59 PM   #11
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 325

Rep: Reputation: 216Reputation: 216Reputation: 216
Quote:
Originally Posted by ponce View Post
I removed it but I added it back when I saw Pat removing it from current.
Ahh...maybe my memory that it was removed wasn't a false one then!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] complete noob question. "command not found" "command not found" jeanlucpicard Linux - Newbie 4 08-27-2013 02:14 AM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration