LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-23-2016, 12:06 AM   #1
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Rep: Reputation: 37
virt-manager current problem


All dependencies are installed in the correct order.

I had to build

gstreamer1 and gst1-plugins with 14.1 slackbuilds but they complied OK they are not on current. Oh I think orc was also the same.

Anyway it worked better on my current test machine here is some strace that seemed relevant

Code:
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib64/locale/locale-archive", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/bin/Modules/Setup", 0x7fffc6ac6590) = -1 ENOENT (No such file or directory)
stat("/usr/bin/lib64/python2.7/os.py", 0x7fffc6ac6590) = -1 ENOENT (No such file or directory)
stat("/usr/bin/lib64/python2.7/os.pyc", 0x7fffc6ac6590) = -1 ENOENT (No such file or directory)

write(2, "  File \"/usr/share/virt-manager/"..., 83) = 83
open("/usr/share/virt-manager/virtinst/distroinstaller.py", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=16397, ...}) = 0
read(3, "#\n# Copyright 2006-2009, 2013, 2"..., 4096) = 4096
write(2, "    ", 4)                     = 4
write(2, "from . import urlfetcher\n", 25) = 25
close(3)                                = 0
write(2, "  File \"/usr/share/virt-manager/"..., 78) = 78
open("/usr/share/virt-manager/virtinst/urlfetcher.py", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=40565, ...}) = 0
read(3, "#\n# Represents OS distribution s"..., 4096) = 4096
write(2, "    ", 4)                     = 4
write(2, "import requests\n", 16)       = 16
close(3)                                = 0
write(2, "ImportError", 11)             = 11
write(2, ": ", 2)                       = 2
write(2, "No module named requests", 24) = 24
write(2, "\n", 1)                       = 1
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f4f7e5c73b0}, {0x7f4f7e920b10, [], SA_RESTORER, 0x7f4f7e5c73b0}, 8) = 0
close(6)                                = 0
exit_group(1)                           = ?
+++ exited with 1 +++
I realize that using the old stuff could be the problem if so my bad anyone get this to build on current ?

If so how did you do it ?

The stuff from python 2.7 where does it come from ? as that has me puzzled some of it seems pretty standard.

That was not the whole strace in case anyone actually thought it was.
 
Old 04-23-2016, 04:35 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
Patiently wait for the release of Slackware 14.2 then the updates of the SlackBuilds @ slackbuilds.org for 14.2, then upgrade sbopkg, configure it, sync the repository, use sqg to write a queue file for virt-manager then use it to build and install virt-manager.

Until then and as far as I am in concern, you are on your own.

Last edited by Didier Spaier; 04-23-2016 at 04:37 AM.
 
Old 04-23-2016, 05:17 AM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,068

Rep: Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145
Quote:
gstreamer1 and gst1-plugins with 14.1 slackbuilds but they complied OK they are not on current. Oh I think orc was also the same
gstreamer1 (called now gstreamer), gst1-plugins-base (called now gst-plugins-base) and orc are already included in current

- use a SlackBuild repository dedicated to current;

- like Didier writes above build a queue with semiautomatic tools like sqg and then integrate it reading the README of every build script you run
Code:
vala
vte3
spice-protocol
six
pyparsing
celt051
spice
usbredir
spice-gtk
gtk-vnc
qemu
python-requests
python-urllib3
ipaddr-py
tunctl
gnome-python2-gconf
urlgrabber
yajl
libvirt
libvirt-python
libvirt-glib
libosinfo
virt-manager
- read carefully the error you got
Quote:
write(2, "ImportError", 11) = 11
write(2, ": ", 2) = 2
write(2, "No module named requests", 24) = 24
and you will see that you're missing (at least) python-requests.

Last edited by ponce; 04-23-2016 at 07:46 AM.
 
Old 04-23-2016, 10:54 AM   #4
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
Thanks Ponce I was missing python-requests as you observed. I was using the correct repository. For some reason the python-requests never showed up as a prereq for anything else. I usually work backwards from what I want to build on SlackBuilds but for some reason python-requests never was listed as a requirement (or I missed it). Should have checked my build list from before to see if it was there.

It's seems to work now.

I thought I was missing something, just not sure what.

Last edited by TarFile; 04-23-2016 at 10:55 AM.
 
Old 04-23-2016, 11:14 AM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,651

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
It's part of the REQUIRES
Code:
REQUIRES="libosinfo libvirt-glib libvirt-python gnome-python2-gconf tunctl ipaddr-py python-urllib3 python-requests gtk-vnc spice-gtk vte3"
perhaps you are using the old queue file?
better to run sqg -a everytime there's a public update or changes are merged back to master
 
Old 04-23-2016, 11:24 AM   #6
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
Thanks willysr I don't use sqg but I guess it's probably time to start. Must have missed python-requests. I will try to pay better attention in the future.
 
Old 04-23-2016, 11:25 PM   #7
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
I had to go to

https://github.com/Ponce/slackbuilds...t-manager.info

to find that requires. It does not show up in the readme with sbopkg looks like it may be cutoff oh well I got worked out and learned several things thanks for the help.
 
Old 04-24-2016, 12:35 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,068

Rep: Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145
if you haven't done it already you can download a local copy cloning the git repository (I linked above in my previous post another one where I explain how to do it) so it could be easier parsing it.

the *.info files show mandatory dependencies for the relative SlackBuild (the REQUIRES variable), while in the READMEs are listed the optional ones.
 
Old 04-24-2016, 05:26 PM   #9
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
OK that sounds good. Just to make sure though this only involves the requirements and not necessarily the optional things that might be required for whatever it is you want to do.

I need OpenShot but that has lots of optional things that I want to use so in that case I need to do some manual builds to get what I want ?
 
Old 04-24-2016, 07:23 PM   #10
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,651

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
Use sqg to generate the queue file for it and run sbopkg to install it using those queue
 
Old 04-24-2016, 10:35 PM   #11
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
Maybe I am asking the wrong question.

If I put options in for a package in sbopkg will it grab the required packages and install them first ?
 
Old 04-26-2016, 01:18 PM   #12
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
Sorry for the delay. But it really depends on how the package maintainer and the program itself are set up. Most ./configures will autodetect software, so if you have it installed, it will add support for it. Some, like ffmpeg, require you to manually enable options within the configure line.

If the program is set to autodetect optional dependencies, the package maintainer doesn't have to do much other than notify you what the optional dependencies are. You can then ensure they're installed before you install the main program and then all the support will be there. If it is something that requires you to manually specify the options, the package maintainers will usually put checks within the SlackBuild for a certain variable, so with ffmpeg, you could end up with a long line of variables like

Code:
X264=yes BLURAY=yes OPENCV=yes ./ffmpeg.SlackBuild
The latter setups are more difficult to use with tools like sbopkg, so, for me, I'll usually edit the SlackBuild and remove the if/then checks for the variables I desire. I suppose you could also add the variables at the top of the SlackBuild.

For the simpler autodetect configures, as long as you have the optional software installed beforehand, that's all you need to do. If I want to fully automate the building, I'll usually edit the requires line on the .info to change it to contain what I want built. A good example of this for me is kodi. It used to be that libmicrohttpd was an optional dependency. I wanted it to be built automatically with kodi. I also didn't want it to build jdk because 1. it wouldn't work unless I already downloaded the source, and 2. I used Eric's precompiled openjdk. So on the kodi.info REQUIRES line, I removed jdk and added libmicrohttpd and regenerated the queue file with sqg. Then I removed the if/then check in the SlackBuild to see if I specified that WEBSERVER=yes and had it set the needed variable to enable it during the compilation.

This is falls under a bit of the advanced usage of sbopkg. For others, it might be easier to just download those crazy builds manually and run them manually from the CLI.
 
Old 04-26-2016, 01:44 PM   #13
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
I kind of figured that was going to be the case.
 
  


Reply


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
Problem with virt-manager sanaz Linux - Virtualization and Cloud 2 04-09-2013 02:43 PM
virt-manager problem earlfox Linux - Virtualization and Cloud 2 08-08-2012 03:38 AM
configuration problem in virt-manager chuikingman Linux - Server 1 06-05-2011 01:28 PM
LXer: Hacking libvirt/virsh/virt-manager/virt-install at Xen 4.0 Dom0 on top of Ubunt LXer Syndicated Linux News 0 05-06-2010 02:50 PM
LXer: Virt-install&Virt-manager at Xen 4.0-rc8 (2.6.32.10 pvops) Dom0 on top Ubuntu K LXer Syndicated Linux News 0 03-26-2010 09:41 PM

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

All times are GMT -5. The time now is 12:07 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