Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-05-2012, 08:44 AM
|
#1
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,120
|
Newt not working in Slackware 14 64 bit, works on 32 bit
I want to use Newt as UI for one of my projects. So I used sbopkg to install it and it works fine on my 32 bit system. now I wanted to continue development on my 64 bit system, the installation of newt worked without any errors, but when I try to start the example programs peanuts.py or popcorn.py I get an ImportError:
Code:
tobi ~ ☺ $ python peanuts.py
Traceback (most recent call last):
File "peanuts.py", line 5, in <module>
from snack import *
File "/usr/lib64/python2.7/site-packages/snack.py", line 42, in <module>
import _snack
ImportError: No module named _snack
While searching for a solution on the net I came across this thread, in which it is stated that version 0.52.13 is broken. So I used the SlackBuild to install the newest version 0.52.14, but the problem persists.
Sadly, I have no idea how to debug this, so any ideas are welcome.
|
|
|
|
10-05-2012, 08:48 AM
|
#2
|
|
Senior Member
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,933
|
seeing the error message, seems you are missing snack.
|
|
|
|
10-05-2012, 08:52 AM
|
#3
|
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,180
|
Yeah that problem is different but don't use 0.52.13 in any case. It really is broken (that bug report was filed by Alexey Feldgendler, who was an Opera employee at the time). I never got a response from the SlackBuild maintainer and I see now that SlackBuilds is still offering the broken version.
As a side note: Newt 0.52.13 was a problem for Opera because we use it (if available) in the install script we provide with our cross-distro packages. Opera worked around the issue now by checking the newt version and blacklisting 0.52.13.
Last edited by ruario; 10-05-2012 at 08:55 AM.
Reason: s/maintainer/SlackBuild maintainer/
|
|
|
|
10-05-2012, 09:07 AM
|
#4
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,120
Original Poster
|
Quote:
Originally Posted by ponce
seeing the error message, seems you are missing snack.
|
You are right, I don't have snack installed, neither on the 32 bit system, where it works, nor on the 64 bit system, where it doesn't work.
So I installed snack and to be sure rebuilt the newt package, but that doesn't solve the problem.
|
|
|
|
10-05-2012, 09:11 AM
|
#5
|
|
Senior Member
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,933
|
and you got the same error?
|
|
|
|
10-05-2012, 09:20 AM
|
#6
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,120
Original Poster
|
Exactly the same:
Code:
Traceback (most recent call last):
File "/home/tobi/peanuts.py", line 5, in <module>
from snack import *
File "/usr/lib64/python2.7/site-packages/snack.py", line 42, in <module>
import _snack
ImportError: No module named _snack
|
|
|
|
10-05-2012, 09:37 AM
|
#7
|
|
Senior Member
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,933
|
ok, I understood what's happening: reading the build log, seems newt builds itself a python snackmodule, but doing so it ignores the CFLAGS; on x86_64 it's a problem because at least -fPIC seems to be mandatory in this case
I updated the build script for 0.52.14 and added a sed that should fix it, if you want to test it and report back, I'll include the fix in my branch on slackbuilds.org
http://ponce.cc/slackware/testing/newt/
(and so maybe the snack package shouldn't be needed at all)
Last edited by ponce; 10-05-2012 at 09:38 AM.
|
|
|
1 members found this post helpful.
|
10-05-2012, 09:43 AM
|
#8
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,120
Original Poster
|
Tested and working.
Once again I have to thank you for your effort to help me with my issues.
By the way, as I just found out the snack SlackBuild you referred to is for a sound library for Tcl.
|
|
|
|
10-05-2012, 09:43 AM
|
#9
|
|
Senior Member
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,933
|
ops
thanks to you for reporting the problem (so other users can benefit from the fixed package  ).
Last edited by ponce; 10-05-2012 at 09:44 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:40 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.
|
Latest Threads
LQ News
|
|