LinuxQuestions.org
Help answer threads with 0 replies.
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 12-20-2018, 07:28 AM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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.


slack (post) -current

Last edited by BW-userx; 12-20-2018 at 07:31 AM.
 
Old 12-20-2018, 07:38 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,114

Rep: Reputation: 4189Reputation: 4189Reputation: 4189Reputation: 4189Reputation: 4189Reputation: 4189Reputation: 4189Reputation: 4189Reputation: 4189Reputation: 4189Reputation: 4189
slackware current ships the python-setuptools package (that contains modules for python-2.7 and python-3.6) in its default installation.
 
Old 12-20-2018, 09:02 AM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by ponce View Post
slackware current ships the python-setuptools package (that contains modules for python-2.7 and python-3.6) in its default installation.

well it is in here
locate setup.py
Code:
/usr/doc/python-2.7.15/Misc/BeOS-setup.py
/usr/lib64/python2.7/site-packages/freeze/parsesetup.py
/usr/lib64/python2.7/site-packages/hgext/largefiles/reposetup.py
/usr/lib64/python2.7/site-packages/hgext/largefiles/reposetup.pyc
/usr/lib64/python2.7/site-packages/hgext/largefiles/uisetup.py
/usr/lib64/python2.7/site-packages/hgext/largefiles/uisetup.pyc
/usr/lib64/python2.7/site-packages/scripts/setup.py
/usr/lib64/python3.6/site-packages/freeze/parsesetup.py
/usr/lib64/python3.6/site-packages/include_server/setup.py
/usr/lib64/python3.6/site-packages/mesonbuild/msetup.py
/usr/lib64/python3.6/site-packages/test2to3/setup.py
/usr/lib64/python3.6/test/libregrtest/setup.py
/usr/sbo/repo/graphics/pr0ntools/setup.py.patch
/usr/sbo/repo/python/entrypoints/setup.py
/usr/sbo/repo/python/json-py/setup.py
/usr/sbo/repo/python/migen/setup.py.patch
/usr/sbo/repo/python/python-patch/setup.py
/usr/sbo/repo/python/python-pcapy/no-auto-docs-setup.py.diff
/usr/sbo/repo/python/responder/setup.py
/usr/sbo/repo/python/testpath/setup.py
/usr/sbo/repo/system/graphite-web/patches/setup.py.diff
/usr/sbo/repo/system/routersploit/setup.py
/usr/share/hplip/faxsetup.py
/usr/share/hplip/setup.py
/usr/src/linux-4.19.11/tools/perf/util/setup.py
Then is it not working when calling calling setup.py?


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

Last edited by BW-userx; 12-20-2018 at 09:11 AM.
 
Old 12-20-2018, 09:12 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Do you have the environment variable PYTHONPATH set to something? (You probably shouldn't.)

What are you doing to create your stacktraces?
 
Old 12-20-2018, 09:50 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Richard Cranium View Post
Do you have the environment variable PYTHONPATH set to something? (You probably shouldn't.)

What are you doing to create your stacktraces?

do I look like I know pyhton? I already put my disclaimer in on post #1

and No when I echo $PATH I did not see any python in it, though I did not echo PYTHONPATH I reference my disclaimer again.
 
Old 12-20-2018, 10:01 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by BW-userx View Post
do I look like I know pyhton? I already put my disclaimer in on post #1
No fucking shit, that's why I'm asking certain questions.

Quote:
and No when I echo $PATH I did not see any python in it, though I did not echo PYTHONPATH I reference my disclaimer again.
python uses PYTHONPATH (if it's set) to find modules.

Which is why I asked you about PYTHONPATH and did not ask you about PATH.
 
1 members found this post helpful.
Old 12-20-2018, 10:09 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Richard Cranium View Post
No fucking shit, that's why I'm asking certain questions.



python uses PYTHONPATH (if it's set) to find modules.

Which is why I asked you about PYTHONPATH and did not ask you about PATH.
hit a nerve, I did.
should have suggested instead of assuming I already knew what to check, would have gotten a different responce out of me. anyways.

anyways I spoke of both to cover all angles. where is that path set and how, other than

Code:
PYTHONPATH=/path/to
but what config file I got a put that in, or does it go in .bashrc export statment?

and should it not have already been set if it needs it because it is a install upon installing the system and not an add on, that I know of?

side note
What are you doing to create your stacktraces?

I am not doing anything for that, I was just trying to install slackbuilds that use this python.

and I have never had this situatuation when the build ask if I want to use python3 indicating it uses python and not install before.

Last edited by BW-userx; 12-20-2018 at 10:12 PM.
 
Old 12-21-2018, 10:46 AM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by BW-userx View Post
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 View Post
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.
 
Old 12-21-2018, 12:46 PM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bassmadrigal View Post
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...

Last edited by BW-userx; 12-21-2018 at 12:47 PM.
 
Old 12-21-2018, 12:55 PM   #10
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by BW-userx View Post
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...
You don't need to be a python expert to know what you did to generate the output you posted in post #1.

Besides that, you've gone through all this and still not posted the output of

Code:
echo $PYTHONPATH
 
1 members found this post helpful.
Old 12-21-2018, 01:08 PM   #11
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by BW-userx View Post
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...
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...
 
Old 12-21-2018, 01:30 PM   #12
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,244

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Quote:
Originally Posted by Richard Cranium View Post
What are you doing to create your stacktraces?
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".

Last edited by dugan; 12-21-2018 at 01:34 PM.
 
Old 12-21-2018, 04:30 PM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by montagdude View Post
You don't need to be a python expert to know what you did to generate the output you posted in post #1.

Besides that, you've gone through all this and still not posted the output of

Code:
echo $PYTHONPATH
Code:
echo $PYTHONPATH
done
 
Old 12-21-2018, 05:05 PM   #14
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,244

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Quote:
Originally Posted by BW-userx View Post
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 View Post
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 View Post
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).

Last edited by dugan; 12-21-2018 at 05:34 PM.
 
1 members found this post helpful.
Old 12-21-2018, 07:24 PM   #15
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
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.
 
  


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
gDesklets - ImportError: No module named gnome.ui raffi Linux - Software 9 10-20-2005 12:48 PM
Bittorrent. "ImportError: No module named __future__" BashTin Linux - Software 4 09-12-2005 03:07 AM
iPodder: ImportError: No module named wx dr_zayus69 Linux - Software 6 07-06-2005 01:55 AM
ImportError: No module named libglade Kanaflloric Programming 0 08-16-2004 09:58 PM
ImportError: No module named gconf linorg Linux - Software 8 02-02-2004 04:37 PM

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

All times are GMT -5. The time now is 07:40 PM.

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