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.
But when I try to launch Electrum I receive this message:
Code:
$ electrum
Traceback (most recent call last):
File "/usr/bin/electrum", line 379, in <module>
d.init_gui(config, plugins)
File "/usr/lib64/python2.7/site-packages/electrum/daemon.py", line 281, in init_gui
gui = __import__('electrum_gui.' + gui_name, fromlist=['electrum_gui'])
File "/usr/lib64/python2.7/site-packages/electrum_gui/qt/__init__.py", line 35, in <module>
from PyQt4.QtGui import *
ImportError: /usr/lib64/python2.7/site-packages/sip.so: undefined symbol: PyUnicodeUCS4_AsLatin1String
I don't know what is wrong.
I guess the sip package that you have installed in your system is built for Slackware 14.2, but you built your other python packages using a python at least built for Slackware current: it seems you are mixing packages made for two different versions of Slackware.
Last edited by ponce; 05-20-2017 at 09:47 AM.
Reason: added post quote
I guess the sip package that you have installed in your system is built for Slackware 14.2, but you built your other python packages using a python at least built for Slackware current: it seems you are mixing packages made for two different versions of Slackware.
I installed the same packages in VM that I have and it worked.
But I don't have mixed current and stable.
That problem happens in two different machines. The VM isn't multilib but the others two are.
$ electrum
Traceback (most recent call last):
File "/usr/bin/electrum", line 379, in <module>
d.init_gui(config, plugins)
File "/usr/lib64/python2.7/site-packages/electrum/daemon.py", line 281, in init_gui
gui = __import__('electrum_gui.' + gui_name, fromlist=['electrum_gui'])
File "/usr/lib64/python2.7/site-packages/electrum_gui/qt/__init__.py", line 35, in <module>
from PyQt4.QtGui import *
ImportError: /usr/lib64/python2.7/site-packages/sip.so: undefined symbol: PyUnicodeUCS4_AsLatin1String
that error means that electrum has been built on a system with a python interpreter that, in turn, has being built using the configure option "--enable-unicode=ucs4", and only the python package in current has been built with that option enabled, while the sip python module installed in the system hasn't been built that way because it doesn't recognize UCS4 unicode.
so the sip package you had installed in your system had to be built against a python interpreter different from the one in current, hence my guess that the sip package you had installed came from a repository meant to be used with 14.2 and not current...
this error could also manifest if you had built these packages (electrum included) on a host running slackware current and you are trying to install them on another running 14.2, but you haven't said anything in your original post about building packages on an host and trying to have them running on another, so I haven't even considered that possibility in my first answer...
I read your posts about different builds of python packages.
This is what I did
Like I said this was happening in two different machines.
I tested on one.
I hope that I didn't break anything from point of no recovery.
slackpkg remove python
rm -r /usr/lib64/python2.7/
slackpkg install python
I installed electrum and all the dependencies with sbopkg and I found that
PyQt was missing.
Then I made
slackpkg search PyQt
And found out that I had installed a PyQt and sip package from ktwon with
slackpkg+.
1)
In one of slackware mirrors I downloaded the slackware64 packages
PyQt-4.11.4-x86_64-1.txz
sip-4.18-x86_64-1.txz
and install both of them.
Edited
/etc/slackpkg/blacklist
and added this lines
sip.*1alien
PyQt.*1alien
And then I did
slackpkg update
slackpkg upgrade-all
electrum worked after that.
In the test machine there is some broken packages because I deleted /usr/lib64/python2.7/ I'm trying to solve the problem with the broken ones.
But in the other it's working fine until now.
I hope I made things right and don't broke anything on the test machine.
On the second one I only did
I read your posts about different builds of python packages.
You still haven't said which version of Slackware you are using on your machines (phisical and virtual): I suggest you to have a look in /etc/slackpkg/mirrors to see whatever you have uncommented.
Quote:
This is what I did
Like I said this was happening in two different machines.
I tested on one.
I hope that I didn't break anything from point of no recovery.
slackpkg remove python
rm -r /usr/lib64/python2.7/
what were you trying to accomplish with that?
Quote:
slackpkg install python
I installed electrum and all the dependencies with sbopkg and I found that
PyQt was missing.
Then I made
slackpkg search PyQt
And found out that I had installed a PyQt and sip package from ktwon with
slackpkg+.
are those ktown packages for the same version of slackware that you are running?
Quote:
1)
In one of slackware mirrors I downloaded the slackware64 packages
PyQt-4.11.4-x86_64-1.txz
sip-4.18-x86_64-1.txz
and install both of them.
Edited
/etc/slackpkg/blacklist
and added this lines
sip.*1alien
PyQt.*1alien
And then I did
slackpkg update
slackpkg upgrade-all
electrum worked after that.
In the test machine there is some broken packages because I deleted /usr/lib64/python2.7/ I'm trying to solve the problem with the broken ones.
You still haven't said which version of Slackware you are using on your machines (phisical and virtual): I suggest you to have a look in /etc/slackpkg/mirrors to see whatever you have uncommented.
# Configuration for slackpkg+. See /usr/doc/slackpkg+-*/README for more details
# Please read manpage: "man slackpkgplus.conf" and documentation /usr/doc/slackpkg+-*/README
# Enable (on) / Disable (off) slackpkg+
SLACKPKGPLUS=on
# set to '0' to never show the download progress bar
# set to '1' to show the bar only in download packages (default)
# set to '2' to always show the download bar
# set to '3' for a debug mode
VERBOSE=1
# By default slackpkg+ deny to install 32bit packages.
#
# Set this flag to 'on' allow slackpkg+ to install 32bit packages on a 64bit slackware
# installation (possibly unsafe). Please, do not install both 32 and 64bit of the same
# package to avoid problems, and NEVER upgrade existant 64bit packages with relative 32bit package.
# Do not forget to install the multilibs.
ALLOW32BIT=off
# Enable (1) / Disable (0) the official slackpkg blacklist. May be useful to temporarily skip
# the slackware blacklist. You can also override it from command line:
# 'USEBL=0 slackpkg upgrade-all'
USEBL=1
# Add custom option to 'wget'.
# You can solve the repository indisponibility issue by set a timeout here
WGETOPTS="--timeout=20 --tries=2"
# If you want replace wget with another downloader search DOWNLOADCMD in documentation
# at /usr/doc/slackpkg+-*/README
#DOWNLOADCMD="wget -O"
# Defines if the changelog of any 3rd party repository must be searched in parent URL when not found in base URL.
# Can be set to "on" or "off" (default)
SEARCH_CLOG_INPARENT=on
# Use the cache for metadata files (CHECKSUMS.md5,...). Enable it (on) to speedup the slackpkg update
# process by downloading just new files (see README). Disabled by default (off)
CACHEUPDATE=off
# You can download-only by setting DOWNLOADONLY to 'on'. You may (you should) also use it in commandline
# for example: "DOWNLOADONLY=on slackpkg upgrade-all". Useful for large upgrades.
#DOWNLOADONLY=off
# Enable (on) / Disable (off) notification events (see notifymsg.conf)
#ENABLENOTIFY=off
# Enable (on) / Disable (off) the greylist feature. See /etc/slackpkg/greylist
GREYLIST=on
# Defines if commands 'search' and 'file-search' are case-sensitive (on) or not (off). Default to "on"
SENSITIVE_SEARCH=on
# Defines if command 'file-search' does search Wole Word (on) of accept partial words (off). Note that
# you may obtains many many results searching a short partial word
WW_FILE_SEARCH=on
# Select the show order in dialogbox. Available "package" "repository" "tag" "path" "arch"
SHOWORDER=package
# Allow to show more details of the package in slackpkg info <package>. Accept "none", "basic", "filelist"
DETAILED_INFO=none
# Enable (on) / Disable (off) a Strict GPG Check. A repository should contains packages signed
# with the only original GPG-KEY. In some custom repository may be wanted to mix heterogeneous
# packages; to use that repository set Strict GPG Check to off. P.S: a repository can
# contain just ONE gpg-key; you may manually import the other.
STRICTGPG=on
# If two or more repositories contains some same packages, you can specify
# from which repository you prefer to search it.
# The syntax is "<repository_name>:<package_name>"
# Accepts regular expressions. To give priority to an entire repository use "<repository_name>"
# Examples:
#PKGS_PRIORITY=( restricted:vlc )
# OR
#PKGS_PRIORITY=( myrepo )
#
# if you have two reporitories to give priority you must set both in the same line
#PKGS_PRIORITY=( myrepo restricted:vlc )
#
# if you want to install 'ktown' repository you must set it here
#PKGS_PRIORITY=( ktown )
# and DO NOT MISS to read special instruction on /usr/doc/slackpkg+-*/repositories.txt
#
# If you want a multilib system, uncomment the multilib repository and set:
#PKGS_PRIORITY=( multilib )
#
# (Use /usr/doc/slackpkg+-*/setupmultilib.sh to setup a multilib configuration)
#
# For both multilib and ktown set
#PKGS_PRIORITY=( multilib ktown )
PKGS_PRIORITY=( multilib restricted alienbob ktown )
# Otherwise you can try to upgrade a package from a repository that contains a package with the
# same tag of the already installed package. Tipically that means to upgrade a package from the
# same author of the already installed package.
# Note that this method may not works properly where two repositories contains a package with the
# same tag.
# Set TAG_PRIORITY to 'on' to enable this function
TAG_PRIORITY=off
# List repositories you want to use (defined below)
# remember to launch 'slackpkg update' if you modify that row.
#REPOPLUS=( slackpkgplus restricted alienbob slacky )
REPOPLUS=( slackpkgplus multilib restricted alienbob ktown )
# Define mirrors (uncomment one or more mirror; remember to add it to REPOPLUS)
# GPG Note: after adding/renaming a repository, you must to run 'slackpkg update gpg'
# some repositories as salixos, have a partial GPG support;
# for that repositories you may need to run slackpkg with 'slackpkg -checkgpg=off ...'
# Slackware 14.2 - x86_64
MIRRORPLUS['multilib']=http://bear.alienbase.nl/mirrors/people/alien/multilib/14.2/
MIRRORPLUS['alienbob']=http://bear.alienbase.nl/mirrors/people/alien/sbrepos/14.2/x86_64/
MIRRORPLUS['restricted']=http://bear.alienbase.nl/mirrors/people/alien/restricted_sbrepos/14.2/x86_64/
#MIRRORPLUS['slacky']=http://repository.slacky.eu/slackware64-14.2/
# use this to keep the slackpkg+ package updated to the latest stable release
MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+/
# use the development branch to use the mainline version and help develop by reporting bugs.
#MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+dev/
# Slackware current - x86_64
#MIRRORPLUS['multilib']=http://bear.alienbase.nl/mirrors/people/alien/multilib/current/
# Local repository:
#MIRRORPLUS['alienbob']=file://repositories/alien/sbrepos/14.2/x86/
#
# Local packages (you do not need metadata nor 'slackpkg update' command):
#MIRRORPLUS['myrepo']=dir://repositories/mypackages/
# ktown repository
MIRRORPLUS['ktown']=http://bear.alienbase.nl/mirrors/alien-kde/current/latest/x86_64/
#
# Supported Repositories (see /usr/doc/slackpkg+-* for details and notes):
#
#slackpkgplus: http://slakfinder.org/slackpkg+{,dev,1.6,1.7}/
#multilib: http://bear.alienbase.nl/mirrors/people/alien/multilib/{14.0,14.1,14.2,current}/
#alienbob: http://bear.alienbase.nl/mirrors/people/alien/sbrepos/{14.0,14.1,14.2,current}/{x86,x86_64}/
#ktown: http://bear.alienbase.nl/mirrors/alien-kde/{14.1,14.2,current}/{latest,testing}/{x86,x86_64}/
#restricted: http://bear.alienbase.nl/mirrors/people/alien/restricted_sbrepos/{14.0,14.1,14.2,current}/{x86,x86_64}/
#slacky: http://repository.slacky.eu/slackware{,64}-{14.0,14.1,14.2}/
#mleddesktop: http://www.microlinux.fr/microlinux/desktop-{14.1,14.2}-{32,64}bit/
#mledextras: http://www.microlinux.fr/microlinux/extras-{14.1,14.2}-{32,64}bit/
#mles: http://www.microlinux.fr/microlinux/server-{14.0,14.1,14.2}-{32,64}bit/
#msb: http://slackware.uk/msb/{14.0,14.1,14.2,current}/{1.6,1.8,1.10,1.12,1.14,1.15,1.15-gtk3,latest}/{x86,x86_64}/
#csb: http://slackware.uk/csb/{14.1,14.2}/{x86,x86_64}/
#slackers: http://slack.conraid.net/repository/slackware64-current/
#slacke18: http://ngc891.blogdns.net/pub/slacke18/slackware{,64}-{14.1,14.2}/
#studioware: http://studioware.org/files/packages/slackware{,64}-{14.0,14.1,14.2}/
#slackonly: http://panos.slackonly.com/pub/packages/{14.1,14.2,current}-{x86,x86_64}/
#rlworkman: http://rlworkman.net/pkgs/{14.0,14.1,14.2,current}/
#slackel: http://www.slackel.gr/repo/{i486,x86_64}/current/
#connochaetos: http://connochaetos.org/slack-n-free/slack-n-free{,64}-{14.1,14.2}/
#slint: http://slint.fr/packages/{14.0,14.1,14.2}-{i486,x86_64}/
#salixos: http://download.salixos.org/{i486,x86_64}/{14.0,14.1,14.2}/
Quote:
what were you trying to accomplish with that?
that was me being stupid.
Quote:
are those ktown packages for the same version of slackware that you are running?
thanks for that
my problem is in /etc/slackpkg/slackpkgplus.conf
this is what is causing mixed packages
some packages are from slackware 14.2, others from slackbuilds and others installed using slackpkgplus.
should i reinstall every package and build the ones from slackbuilds?
some packages are from slackware 14.2, others from slackbuilds and others installed using slackpkgplus.
should i reinstall every package and build the ones from slackbuilds?
after removing the python folder I did slackpkg install python
It's always better to do a "slackpkg reinstall" if you installed an unwanted or wrong version of a package as it will remove all files from the previous packages then install all the files from the new pacakage. More generally you can use upgradepkg that actually does that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.