[SOLVED] ImportError: No module named setuptools not on slacbuilds either
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ImportError: No module named setuptools not on slacbuilds either
Code:
File "setup.py", line 9, in <module>
from setuptools import setup, Command
ImportError: No module named setuptools
Failures:
glances: glances.SlackBuild return non-zero
Code:
File "setup.py", line 6, in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptools
Failures:
pip: pip.SlackBuild return non-zero
why doesn't python / python3 ship without everything to install it modules ? I cannot find a setuptools, on slackbuilds other than the versioning one.
I don't deal with python(3) other that what gets installed that uses it.
python3-setuptools_autover
Code:
setuptools_autover-1.0/PKG-INFO
Traceback (most recent call last):
File "setup.py", line 1, in <module>
import setuptools
ModuleNotFoundError: No module named 'setuptools'
Failures:
python3-setuptools_autover: python3-setuptools_autover.SlackBuild return non-zero
well trying to install that one for a just in case scenario failed too.
should have suggested instead of assuming I already knew what to check, would have gotten a different responce out of me. anyways.
What do you think his post was? He was asking you to check and see if PYTHONPATH was set. If you don't know how to check this (checking for the existence of this variable is bash related and not python related), you should've asked. You can find out simply if PYTHONPATH is set by running:
Code:
echo $PYTHONPATH
If it is empty, then it is not set and you could've simply told Richard Cranium that PYTHONPATH isn't set and move on rather than claiming you don't know python.
Quote:
Originally Posted by BW-userx
anyways I spoke of both to cover all angles. where is that path set and how
He said it probably shouldn't be set, which likely means there shouldn't be anything on your system to set it. If it is set, it is likely in your /etc/profile, /etc/profile.d/*.sh, ~/.bashrc, ~/.profile, etc. You should be able to grep for it in those files to see where it's being set.
As to your problem...
-current includes a python-setuptools package that contains both python2 and python3 versions of it and is available on your favorite mirror. If you have this installed, then something is broke (maybe try reinstalling the package). If it isn't installed, try installing it and see what happens.
What do you think his post was? He was asking you to check and see if PYTHONPATH was set. If you don't know how to check this (checking for the existence of this variable is bash related and not python related), you should've asked. You can find out simply if PYTHONPATH is set by running:
Code:
echo $PYTHONPATH
If it is empty, then it is not set and you could've simply told Richard Cranium that PYTHONPATH isn't set and move on rather than claiming you don't know python.
He said it probably shouldn't be set, which likely means there shouldn't be anything on your system to set it. If it is set, it is likely in your /etc/profile, /etc/profile.d/*.sh, ~/.bashrc, ~/.profile, etc. You should be able to grep for it in those files to see where it's being set.
As to your problem...
-current includes a python-setuptools package that contains both python2 and python3 versions of it and is available on your favorite mirror. If you have this installed, then something is broke (maybe try reinstalling the package). If it isn't installed, try installing it and see what happens.
What are you doing to create your stacktraces?
do I look like i know python, I don't know python, do I don't know anything about that.
rephrase:
have you tried creating stacktraces by doing .....
I don't feel I need to be defeding myself on this either...
do I look like i know python, I don't know python, do I don't know anything about that.
rephrase:
have you tried creating stacktraces by doing .....
I don't feel I need to be defeding myself on this either...
This goes both ways... maybe he shouldn't have assumed you knew what stacktraces were (although, I don't see anything inherently wrong with how he asked the question), but you could've simply asked what stacktraces were rather than "do I look like i know python, I don't know python, do I don't know anything about that."
As you can see now by montagdude's last post, Richard Cranium was just asking what commands or scripts you ran that generated the output you provided on your first post.
People are here trying to help you and you are throwing attitude at them when there was (initially) no attitude directed at you. This is not the best way to keep these people engaged in your thread to try and help you with your problem...
He means "what are you trying to install and how are you trying to install it? What is your command-line? Is it 'python setup.py install'? Post your terminal output starting from when you entered that command, or when you untarred the source, depending on which one is more appropriate".
why doesn't python / python3 ship without everything to install it modules ?
It does.
No other person on the entire planet has ever had the problem you're apparently posting about.
I'm serious.
Quote:
Originally Posted by BW-userx
Code:
echo $PYTHONPATH
done
It's empty? Good.
Now, what commands are you actually entering that are crashing?
They're clearly very wrong, because your crash messages don't look familiar to me at all, and I have no idea what you did to get them. You want to get this fixed? Post an answer. You want to stay frustrated and ensure it doesn't get fixed? Well, then you can answer it with DO I LOOK LIKE I KNOW PYTHON? again. Your choice.
(Also: you cropped too much of the crash messages to determine anything at all, and the best information we can really give you at this point is "it works for everyone else").
Quote:
Originally Posted by BW-userx
and I just discovered I don't have xterm in current (anymore?) , and I really don't want to post on it unless i really have to.
Code:
$ xterm
bash: xterm: command not found
Uh, that's bad.
Have you tried rebooting? (Seriously answer, in case you just messed up something that would be automatically reset with a reboot).
probably this, works for me on stable, not tried it on current
Quote:
14.1 > System > glances (2.5.1)
glances is a free (LGPL) cross-platform curses-based system monitoring tool
which aims to present a maximum of information in a minimum of space, ideally
to fit in a classical 80x24 terminal, or larger for additional data as it can
adapt the displayed information dynamically, depending on the terminal size.
Quote:
This requires: pysetuptools, psutil
Last edited by glorsplitz; 12-21-2018 at 07:31 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.