LinuxQuestions.org
Visit Jeremy's Blog.
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 07-06-2022, 01:03 PM   #91
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 990

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674

Quote:
Originally Posted by SAJM View Post
Code:
slpkg
is new to me.
https://slackbuilds.org/repository/1.../?search=slpkg

https://dslackw.gitlab.io/slpkg/

It is yet another tool to learn, but it will make life a lot easier when installing software with many and recursive dependencies.

regards Henrik
 
Old 07-07-2022, 09:41 AM   #92
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
I used slpkg but one of the dependencies did not install and to make matters worse no log file detailing why was created.

Code:
writing UNKNOWN.egg-info/PKG-INFO
writing top-level names to UNKNOWN.egg-info/top_level.txt
writing dependency_links to UNKNOWN.egg-info/dependency_links.txt
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
Copying UNKNOWN.egg-info to /tmp/SBo/package-asttokens/usr/lib64/python2.7/site-packages/UNKNOWN-0.0.0-py2.7.egg-info
running install_scripts
running install
Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    setup()
  File "/usr/lib64/python3.7/site-packages/setuptools/__init__.py", line 143, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib64/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python3.7/distutils/dist.py", line 984, in run_command
    cmd_obj.ensure_finalized()
  File "/usr/lib64/python3.7/distutils/cmd.py", line 107, in ensure_finalized
    self.finalize_options()
  File "/usr/lib64/python3.7/site-packages/setuptools/command/install.py", line 38, in finalize_options
    orig.install.finalize_options(self)
  File "/usr/lib64/python3.7/distutils/command/install.py", line 368, in finalize_options
    ('build_lib', 'build_lib'))
  File "/usr/lib64/python3.7/distutils/cmd.py", line 286, in set_undefined_options
    src_cmd_obj = self.distribution.get_command_obj(src_cmd)
  File "/usr/lib64/python3.7/distutils/dist.py", line 857, in get_command_obj
    klass = self.get_command_class(command)
  File "/usr/lib64/python3.7/site-packages/setuptools/dist.py", line 707, in get_command_class
    self.cmdclass[command] = cmdclass = ep.load()
  File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 2346, in load
    return self.resolve()
  File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 2352, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ModuleNotFoundError: No module named 'setuptools.command.build'
Total build time for the package asttokens : 1 Min 25 Sec

+==============================================================================
| Some error on the package asttokens-2.0.4 [ FAILED ]
+==============================================================================
| See the log file in '/var/log/slpkg/sbo/build_logs' directory or read the README file
+==============================================================================

bash-4.3# nano /var/log/slpkg/sbo/build_logs
bash-4.3#
 
Old 07-07-2022, 10:10 AM   #93
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
What on earth is "egg-info"?
I can find very little on it.
It seems to be a python thing not asttokens

Last edited by SAJM; 07-07-2022 at 10:14 AM.
 
Old 07-07-2022, 10:50 AM   #94
Dunc.
Member
 
Registered: Jul 2012
Location: Cumbria UK
Distribution: Slackware
Posts: 62

Rep: Reputation: 30
I am spotting a bit of a theme here as Thonny is used to program the pico too. I could not get it to build either. I believe I ran pip to install it.
Code:
pip install thonny
Hope that helps.

Dunc.
 
Old 07-07-2022, 11:23 AM   #95
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Dunc. View Post
I am spotting a bit of a theme here as Thonny is used to program the pico too. I could not get it to build either. I believe I ran pip to install it.
Code:
pip install thonny
Hope that helps.

Dunc.
You are correct about the pico pi
pip is a minefield!
 
Old 07-07-2022, 11:32 AM   #96
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,982

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
Quote:
Originally Posted by SAJM View Post
You are correct about the pico pi
pip is a minefield!
not really. In general, you need to learn the tool before using it, otherwise you may be in for some surprises.
pip is a relatively complex package management software for python with a lot of features. And also it has a very good documentation.
 
Old 07-07-2022, 11:49 AM   #97
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Here is the problem that I cannot get my head round.

Thonny can be complied from Slackbuild or built using sbopkg or slpkg.

Yet there are number of postings here that say install it using pip?

Very confusing.
 
Old 07-07-2022, 12:20 PM   #98
Dunc.
Member
 
Registered: Jul 2012
Location: Cumbria UK
Distribution: Slackware
Posts: 62

Rep: Reputation: 30
I tried using the slackbuild for installing thonny. It did not work perhaps because aarch64 is not very well established yet. I feel sure with enough patience I could have found an answer but I had just got my new toy a raspberry pico and I wanted to try it out. Thonny is mentioned in the pico documentation for programming it with the micropython version of python. I took the easy option of using pip to install it. I think the slackbuild would have done a better job of installing thonny. The menu entry does not have an icon but it works and for me that is the main issue.

Dunc.
 
Old 07-07-2022, 01:35 PM   #99
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 990

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
Quote:
Originally Posted by SAJM View Post
Here is the problem that I cannot get my head round.

Thonny can be complied from Slackbuild or built using sbopkg or slpkg.

Yet there are number of postings here that say install it using pip?

Very confusing.
There are different ways to do things and they have their advantages and disadvantages.

Sbopkg and slpkg are both package managers capable of building and installing packages from source using SlackBuild scripts from slackbuilds.org. The advantage of using such a tool is that the installation will be fully compatible with all tools used to handle Slackware packages. You can then continue to use those tools to remove or upgrade those installed packages.

Pip is kind of a package manager for python, however, it does not know anything about how Slackware handles its packages. Using pip as root to install a package system-wide might mess things up with packages installed by Slackware package management tools. Such a thing might explain why "slpkg health" displays a number less than 100%. Maybe pip has removed or replaced some file installed by a Slackware package.

One safe way to use pip might be to run it as an ordinary user and make sure that everything installed by pip is installed below the home directory of the user. Slackare packages usually do not mess in users home directories.

Usually slpkg is my favorite to install third party packages from slackbuilds.org, but I must admit that I haven't installed Thonny. Sometimes SlackBuild scripts from slackbuilds.org does not work. If that is the case it does not matter which tool you use or if you run the SlackBuilds by hand. If that would be the case with Thonny or some of its dependencies it might be wort trying to install Thonny from some other third party repository or to install Thonny with pip below your home directory.

The disadvantage of using packages from different third party repositories is that those packages might share some dependencies, but those repositories don't keep track of packages from other repositories.

As most good third party packages come from slackbuilds.org I would stick to slackbuilds.org for almost all third party packages and resort to pip if some python package from slackbuilds.org does not work.

regards Henrik
 
2 members found this post helpful.
Old 07-07-2022, 02:00 PM   #100
dhalliwe
Member
 
Registered: Mar 2022
Location: Ontario, Canada
Distribution: Slackware
Posts: 167

Rep: Reputation: 157Reputation: 157
Quote:
Thonny can be complied from Slackbuild or built using sbopkg or slpkg.

Yet there are number of postings here that say install it using pip?

Very confusing.
That's because you are not listening to the advice that people are giving you, and figuring out exactly what that advice means.

In order to run, the operating system (in this forum, Slackware Linux) needs to find the executable file for the program.

That executable file may need other programs/libraries in order to run. ("Dependencies")

Installation places these files (from an install package or some other source) into the places the system looks for programs and libraries.

Slackware provides basic tools that will take programs/libraries that are contained in Slackware packages (a particular form of an archive of files) and install them where they need to go. Slackware's basic tools will not resolve/find/install dependencies. You need to do that yourself. You also need to obtain the packages and download them yourself.

Additional tools are available that can be added to Slackware that can also automatically check for updates, resolve dependencies, download packaqes, and install them. Some of these tools only work on updates to Slackware core packages. Others can also handle third-party sources that have additional programs/packages that are not part of core Slackware. These fall under "package management tools".

SlackBuilds.org does not provide packages - it provides scripts that will build packages (after you download the source linked to at SlackBuilds.org). Once you build the package, you can install it yourself - but you need to install it after it is built. Building the package does not do that for you.

Additional software exists that can automatically check SlackBuilds.org to find updates, download stuff, and rebuild packages.

Python comes with its own package management tool called "pip", which will handle downloading new packages and their dependencies - but only for packages that are created for use by your installed version of python. It will not handle anything outside of the python world (e.g., regular Slackware core packages, or other non-python programs.

People have advised you that mixing different package management tools will lead to Bad Places - basically different tools messing with each other and creating confusion. Libraries and programs that don't match, or are installed by one tool and overwritten or removed by another tool. The other tools do not automatically know that you installed (or removed) some software with a different tool.

The differences in methods of installing software are critical, and this is why people keep asking you to provide exactly what steps you took when you said "I installed X...". When you say "I am lost", and people ask you "where were you when you last knew where you were, and what did you do next?", you are not helping people (who are trying to help you) by saying "well, I was at home and went for a drive". Exact details matter.
 
2 members found this post helpful.
Old 07-14-2022, 04:22 AM   #101
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Hello again!
I've installed 15.0 and have KDE Plasma on the screen.
Just need to get the network up and I will try python3/thonny again.

Last edited by SAJM; 07-14-2022 at 06:01 AM.
 
Old 07-14-2022, 06:53 PM   #102
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Rep: Reputation: Disabled
Quote:
Originally Posted by SAJM View Post
Hello again!
I've installed 15.0 and have KDE Plasma on the screen.
Just need to get the network up and I will try python3/thonny again.
Python 3 is part of 15.0, so you only need to install thonny from SBo. Not like the last time, but the right way, handling all its dependencies.

But before you start adding third party software, make sure your 15.0 is updated. It's been like half an year since it was released, there are updates that you can install with slackpkg.
 
Old 07-15-2022, 08:11 AM   #103
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Woo Hoo!!!

I used slpkg and it's all working.

Thanks for all the help
 
1 members found this post helpful.
  


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
LXer: Learn to code with Thonny -- a Python IDE for beginners LXer Syndicated Linux News 0 02-19-2018 05:21 AM
When Centos 6.3 starting,All services starting OK and starting Atd: OK .And stop scr. DeSouffle Linux - General 4 08-29-2013 12:46 AM
[SOLVED] Starting File System .. Starting File System .. Starting File System .. Starting File rmknox Linux - Newbie 3 08-15-2010 11:30 PM
Starting apps after starting xfce?? gtgoku Slackware 2 08-21-2004 01:49 PM
starting kpppd w/ ximian or starting ximian w/ kde ergo_sum Linux - Newbie 8 12-02-2003 05:35 AM

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

All times are GMT -5. The time now is 10:58 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