Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-02-07, 08:14 AM   #1
IanWorthington
Registered User
 
Join Date: May 2007
Posts: 3
Default kmod-nvidia install failed: "TypeError: Expected a string"

Trying to install the kmod-nvidia drivers on FC6 for a GF6200 and having some problems.

Did a fresh install with "linux i686", then a "yum update", followed by a "yum install kmod-nvidia":


Downloading Packages:
(1/3): livna-config-displ 100% |=========================| 51 kB 00:00
(2/3): xorg-x11-drv-nvidi 100% |=========================| 4.9 MB 00:21
(3/3): kmod-nvidia-1.0.97 100% |=========================| 2.3 MB 00:10
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: livna-config-display ######################### [1/3]
Installing: kmod-nvidia ######################### [2/3]
Installing: xorg-x11-drv-nvidia ######################### [3/3]
Traceback (most recent call last):
File "/usr/sbin/nvidia-config-display", line 146, in ?
app = nvidiaConfigDisplay()
File "/usr/sbin/nvidia-config-display", line 52, in __init__
self.run()
File "/usr/sbin/nvidia-config-display", line 129, in run
self.enable()
File "/usr/sbin/nvidia-config-display", line 67, in enable
self.toggleDriver(currentDriver, self.majorVendor)
File "/usr/lib/python2.4/site-packages/livnaConfigDisplay/ConfigDisplay.py", line 119, in toggleDriver
dev.driver = newDriver
TypeError: Expected a string


Installed: kmod-nvidia.i686 0:1.0.9755-2.2.6.20_1.2948.fc6
Dependency Installed: livna-config-display.noarch 0:0.0.9-1.lvn6 xorg-x11-drv-nvidia.i386 0:1.0.9755-4.lvn6
Complete!


Tried a reboot, followed by a reinstall and got a Transaction Check Error:


yum install kmod-nvidia
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
livna 100% |=========================| 1.1 kB 00:00
core 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 1.2 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for kmod-nvidia to pack into transaction set.
kmod-nvidia-1.0.9755-2.2. 100% |=========================| 19 kB 00:00
---> Package kmod-nvidia.i686 0:1.0.9755-2.2.6.20_1.2944.fc6 set to be installed
--> Running transaction check
--> Processing Dependency: kernel-i686 = 2.6.20-1.2944.fc6 for package: kmod-nvidia
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for kernel to pack into transaction set.
kernel-2.6.20-1.2944.fc6. 100% |=========================| 225 kB 00:01
---> Package kernel.i686 0:2.6.20-1.2944.fc6 set to be installed
--> Running transaction check
--> Populating transaction set with selected packages. Please wait.
---> Package kernel.i686 0:2.6.18-1.2798.fc6 set to be erased
--> Running transaction check

Dependencies Resolved

================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Installing:
kmod-nvidia i686 1.0.9755-2.2.6.20_1.2944.fc6 livna 2.3 M
Removing:
kernel i686 2.6.18-1.2798.fc6 installed 44 M
Installing for dependencies:
kernel i686 2.6.20-1.2944.fc6 updates 16 M

Transaction Summary
================================================== ===========================
Install 2 Package(s)
Update 0 Package(s)
Remove 1 Package(s)

Total download size: 18 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): kmod-nvidia-1.0.97 100% |=========================| 2.3 MB 00:10
(2/2): kernel-2.6.20-1.29 100% |=========================| 16 MB 01:17
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
package kmod-nvidia-1.0.9755-2.2.6.20_1.2948.fc6 (which is newer than kmod-nvidia-1.0.9755-2.2.6.20_1.2944.fc6) is already installed
package kernel-2.6.20-1.2948.fc6 (which is newer than kernel-2.6.20-1.2944.fc6) is already installed


Error Summary
-------------


Anyone know how to get this thing installed properly?

ian
...
IanWorthington is offline   Reply With Quote
Old 05-02-07, 12:45 PM   #2
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: kmod-nvidia install failed: "TypeError: Expected a string"

You could always install the official driver package instead.
netllama is offline   Reply With Quote
Old 05-02-07, 01:23 PM   #3
IanWorthington
Registered User
 
Join Date: May 2007
Posts: 3
Default Re: kmod-nvidia install failed: "TypeError: Expected a string"

I tried that first, yesterday, and was led down a seemingly never ending chain of dependency gotchas. I finally gave up when I was informed I would have to download the (kernel?) source and devl packages without being told what they were called nor where to find them.

In the end I decided to wipe the slate clean and start afresh, but I'll willing to try again if you can tell me what I need to download.

<rant type=sad>
I'm very computer-savvy -- its been my profession for over 20 years now -- but a relative newbie at linux, and I'm aghast that downloading compilers and os source seems to be considered business as usual to install nvidia graphics cards. Maybe its just as bad for ATI cards, I have no idea, but surely this can't help penetration of linux in the marketplace? Maybe its ok for corporate but for soho? This is back to, or even worse than, the bad old days of early Windows and OS/2. Please tell me I'm mistaken?
</rant>

ian
...
IanWorthington is offline   Reply With Quote
Old 05-02-07, 01:42 PM   #4
adamk75
Registered User
 
Join Date: Nov 2006
Posts: 228
Lightbulb Re: kmod-nvidia install failed: "TypeError: Expected a string"

Many distributions provide packages for various 3rd party drivers. If a distribution does provide a package for a particular driver, or if the user has problems with that particular package, then the only option is to compile the driver from source.

Since nearly every distribution makes it easy to install the necessary kernel header files and development packages, I really don't see this as a huge problem, though I think it'd be good for distributions to install such things by default.

Adam
adamk75 is offline   Reply With Quote
Old 05-02-07, 01:48 PM   #5
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: kmod-nvidia install failed: "TypeError: Expected a string"

IanWorthington,
The sticky posts on this forum explaining precisely what is required to install the NVIDIA driver in Fedora Core.
netllama is offline   Reply With Quote
Old 05-02-07, 03:04 PM   #6
IanWorthington
Registered User
 
Join Date: May 2007
Posts: 3
Default Re: kmod-nvidia install failed: "TypeError: Expected a string"

Forget to mention I tried that yesterday but it had some a problem with pkgconfig thatprevente it from completing.

But trying it again today seems clean:


[root@fc6 ~]# yum -y install kernel-devel xorg-x11-server-sdk pkgconfig
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package kernel-devel.i686 0:2.6.20-1.2948.fc6 set to be installed
---> Package xorg-x11-server-sdk.i386 0:1.1.1-47.8.fc6 set to be updated
--> Running transaction check
--> Processing Dependency: xorg-x11-proto-devel for package: xorg-x11-server-sdk
--> Processing Dependency: xorg-x11-util-macros for package: xorg-x11-server-sdk
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package xorg-x11-util-macros.i386 0:1.0.2-4.fc6 set to be updated
---> Package xorg-x11-proto-devel.i386 0:7.1-9.fc6 set to be updated
--> Running transaction check
--> Processing Dependency: mesa-libGL-devel for package: xorg-x11-proto-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package mesa-libGL-devel.i386 0:6.5.1-9.fc6 set to be updated
--> Running transaction check
--> Processing Dependency: libX11-devel for package: mesa-libGL-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package libX11-devel.i386 0:1.0.3-7.fc6 set to be updated
--> Running transaction check
--> Processing Dependency: libXau-devel for package: libX11-devel
--> Processing Dependency: libXdmcp-devel for package: libX11-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package libXdmcp-devel.i386 0:1.0.1-2.1 set to be updated
---> Package libXau-devel.i386 0:1.0.1-3.1 set to be updated
--> Running transaction check

Dependencies Resolved

================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Installing:
kernel-devel i686 2.6.20-1.2948.fc6 updates 4.8 M
xorg-x11-server-sdk i386 1.1.1-47.8.fc6 updates 363 k
Installing for dependencies:
libX11-devel i386 1.0.3-7.fc6 updates 665 k
libXau-devel i386 1.0.1-3.1 core 11 k
libXdmcp-devel i386 1.0.1-2.1 core 7.6 k
mesa-libGL-devel i386 6.5.1-9.fc6 updates 464 k
xorg-x11-proto-devel i386 7.1-9.fc6 core 247 k
xorg-x11-util-macros i386 1.0.2-4.fc6 core 8.2 k

Transaction Summary
================================================== ===========================
Install 8 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 6.5 M
Downloading Packages:
(1/8): mesa-libGL-devel-6 100% |=========================| 464 kB 00:04
(2/8): libXdmcp-devel-1.0 100% |=========================| 7.6 kB 00:00
(3/8): kernel-devel-2.6.2 100% |=========================| 4.8 MB 00:35
(4/8): libX11-devel-1.0.3 100% |=========================| 665 kB 00:04
(5/8): xorg-x11-proto-dev 100% |=========================| 247 kB 00:01
(6/8): xorg-x11-util-macr 100% |=========================| 8.2 kB 00:00
(7/8): xorg-x11-server-sd 100% |=========================| 363 kB 00:02
(8/8): libXau-devel-1.0.1 100% |=========================| 11 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: libXau-devel ######################### [1/8]
Installing: xorg-x11-util-macros ######################### [2/8]
Installing: kernel-devel ######################### [3/8]
Installing: xorg-x11-proto-devel ######################### [4/8]
Installing: libXdmcp-devel ######################### [5/8]
Installing: mesa-libGL-devel ######################### [6/8]
Installing: libX11-devel ######################### [7/8]
Installing: xorg-x11-server-sdk ######################### [8/8]

Installed: kernel-devel.i686 0:2.6.20-1.2948.fc6 xorg-x11-server-sdk.i386 0:1.1.1-47.8.fc6
Dependency Installed: libX11-devel.i386 0:1.0.3-7.fc6 libXau-devel.i386 0:1.0.1-3.1 libXdmcp-devel.i386 0:1.0.1-2.1

mesa-libGL-devel.i386 0:6.5.1-9.fc6 xorg-x11-proto-devel.i386 0:7.1-9.fc6 xorg-x11-util-macros.i386 0:1.0.2-4.fc6
Complete!
[root@fc6 ~]# yum -y update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
No Packages marked for Update/Obsoletion
[root@fc6 ~]# reboot


I did as many of the following chcons as I could find similar files for but only the first exsists as stated, so I did libglx.so and libGL.so.1. /usr/lib/tls/ is empty.

# chcon -t texrel_shlib_t /usr/lib/xorg/modules/drivers/nvidia_drv.so
# chcon -t texrel_shlib_t /usr/lib/xorg/modules/extensions/libglx.so.1.0.9631
# chcon -t texrel_shlib_t /usr/lib/tls/libnvidia-tls.so.1
# chcon -t texrel_shlib_t /usr/lib/libGLcore.so.1.0.9631

Logging back in System>Administration>Display>Hardware now has "Video Card: Unknown video" displayed and Configure shows that "nvidia - Vendor-supplied driver for nvidia cards" is selected. I'm able to choose betwen 640x480 and 800x600 only, but after logging out/in I'm back to 640x480.

Any suggestions where I go from here?

ian
...
IanWorthington is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regression with 295.33 and GeForce GT 240 maro NVIDIA Linux 16 06-29-12 07:47 PM
Mageia 2 Cannot Install 71.86.15 for Riva TNT/TNT2 kbulgrien NVIDIA Linux 3 06-29-12 09:27 AM
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 09:35 PM
Red Hat null(limbo beta 3), guide to install Nvidia Drivers utiel NVIDIA Linux 21 09-30-02 06:32 PM

All times are GMT -5. The time now is 01:15 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.