LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 10-05-2012, 08:44 AM   #1
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
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.
 
Old 10-05-2012, 08:48 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
seeing the error message, seems you are missing snack.
 
Old 10-05-2012, 08:52 AM   #3
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,840

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
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/
 
Old 10-05-2012, 09:07 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Original Poster
Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Quote:
Originally Posted by ponce View Post
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.
 
Old 10-05-2012, 09:11 AM   #5
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
and you got the same error?
 
Old 10-05-2012, 09:20 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Original Poster
Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
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
 
Old 10-05-2012, 09:37 AM   #7
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
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.
Old 10-05-2012, 09:43 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Original Poster
Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
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.
 
Old 10-05-2012, 09:43 AM   #9
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

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


Reply

Tags
newt, slackware 14


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't compile wxPython Slackbuild in 32-bit (but works fine for 64-bit) Eldarby Linux - Software 7 07-29-2012 12:00 PM
Why should I install 64 bit if all works well in 32 bit? george-lappies Slackware 14 05-21-2011 06:51 PM
Wine 32 bit on Slackware 13 64 bit problems: configure can't find some libraries ozanbaba Slackware 28 11-26-2010 02:42 PM
[SOLVED] ati driver 32-bit compatibility for Slackware 64-bit multilib? vik Slackware 25 02-16-2010 07:06 PM
Ubuntu 64-bit, Opera 64-bit, Java not working Debian_Poland Linux - Desktop 6 08-12-2008 01:15 PM


All times are GMT -5. The time now is 09:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration