Fedora :: Update - Attribute Error Object Has No Attribute 'rsplit'
Aug 30, 2009
Recently installed Fedora 11 from CD on eeepc900HA. Update manager suggested 402 updates available. trying to update I get the following traceback error report:
Traceback (most recent call last):
On trying this process a second time after having selected specific packages I noticed that a prepare machine for upgrade package (not selected by me) seemed to be where the process stalled.
Trying a third time with attempt to upgrade some (random) python packages I get the same result via a system/admin/upgrade or download software .
Traceback (most recent call last): File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 1830, in _runYumTransaction rpmDisplay=rpmDisplay) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 3813, in processTransaction pkgs = self._downloadPackages(callback) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 3837, in _downloadPackages probs = self.downloadPkgs(dlpkgs) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1372, in downloadPkgs self.plugins.run('predownload', pkglist=pkglist) File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 177, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/presto.py", line 577, in predownload_hook (problems, more) = downloadPkgs(conduit, pinfo, download_pkgs) File "/usr/lib/yum-plugins/presto.py", line 419, in downloadPkgs cb.start(text="<delta rebuild>", size=rebuild_size) File "/usr/lib/python2.6/site-packages/urlgrabber/progress.py", line 129, in start self._do_start(now) File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2551, in _do_start self.updateProgress(name, 0.0, "", "") File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2593, in updateProgress pkg = self._getPackage(name) File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2534, in _getPackage sections = name.rsplit('-', 2) AttributeError: 'NoneType' object has no attribute 'rsplit'
i'm having an error when running a python script that uses the python-twisted-web components... i get the impression that this program was developed and tested in a debian environment. heres the readout:
Quote:
Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line 1165, in run self.mainLoop()
I use fedora 8 & had previously tried to upgrade to 10, unsuccessfully. From then onwards, yum & rpm have refused to work. I tried deleting & rebuilding rpm database but it doesnt solve anything. Here is the error when I run yum
Code:
# yum update Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True)
Which command should I use programmatically (in ldap.h) to change only ONE of the attributes above? say i only want to change the userPassword from value secret -> notasecret
I don't know whether this is happening because my machine is behind an HTTP proxy, or for some other reason. When I enter my Ubuntu One account name and pass into "Connect to Ubuntu One" and click Connect, I get this code error instantly:
Code: 'NoneType' object has no attribute 'makefile' If I enter nothing or invalid data into these fields, a red icon is displayed immediately, but the error above appears with valid and accurate data in the fields. If this is a proxy issue, why doesn't the application honor the system-wide proxy settings?
I wrestling with a new slackware install and I've got a problem with exaile. It was built with sbopkg, and doesn't work. It doesn't start at all from the menu (in Xfce,) and provides the following error message when started from Terminal:
Code: INFO : Loading Exaile 0.3.2.0... INFO : Loading settings... Traceback (most recent call last): File "/usr/lib64/exaile/exaile.py", line 52, in <module> main() File "/usr/lib64/exaile/exaile.py", line 49, in main exaile = main.Exaile() File "/usr/lib64/exaile/xl/main.py", line 96, in __init__self.__init() File "/usr/lib64/exaile/xl/main.py", line 132, in __init self.__show_splash() File "/usr/lib64/exaile/xl/main.py", line 260, in __show_splash import xlgui File "/usr/lib64/exaile/xlgui/__init__.py", line 53, in <module> from xlgui import devices, guiutil, icons, preferences, queue File "/usr/lib64/exaile/xlgui/devices.py", line 34, in <module> from xlgui import collection File "/usr/lib64/exaile/xlgui/collection.py", line 36, in <module> from xlgui.widgets import dialogs File "/usr/lib64/exaile/xlgui/widgets/dialogs.py", line 452, in <module> class MessageBar(gtk.InfoBar): AttributeError: 'module' object has no attribute 'InfoBar'
Any attempt to run yum produces the following error:
Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.main(sys.argv[1:]) AttributeError: 'module' object has no attribute 'main'
It doesn't matter what command line arguments I use I get the same.I've spent a day or so searching on Google but not had any luck in identifying what is causing this problem.
I am trying to scan a website for http references (links) with this script:
Code:
from urllib import urlopen import re current_site = urlopen("http://en.wikipedia.org/wiki/").read() search = re.search('href="[a-zA-Z0-9]"', current_site)
[code]....
I get the following error message:
Code: Traceback (most recent call last): File "C:UsersadminDesktopcrawler.py", line 8, in <mo print search.group(0) AttributeError: 'NoneType' object has no attribute 'group' I have googled the error
I am in Ubuntu 10.04 with its standard desktop environment. Exaile was working great. Now, suddenly it refuses to work. It brings up the splash/loading image and then dies. It works fine under a different user account. I completely restarted, completely uninstalled, completely reinstalled through the Ubuntu Software Center. No luck. I then tried to run it via a terminal.
Here was the output: wmeler@ubuntu1004:~$ exaile INFO : Loading Exaile 0.3.1.1... INFO : Loading settings... INFO : Setting up deferred idle manager function... INFO : Loading plugins... INFO : Loading collection... INFO : Loading devices... Traceback (most recent call last): File "/usr/lib/exaile/exaile.py", line 52, in <module> main() File "/usr/lib/exaile/exaile.py", line 49, in main exaile = main.Exaile() File "/usr/lib/exaile/xl/main.py", line 84, in __init__self.__init() File "/usr/lib/exaile/xl/main.py", line 189, in __init location=os.path.join(xdg.get_data_dirs()[0], "covers")) File "/usr/lib/exaile/xl/cover.py", line 121, in __init__self.load() File "/usr/lib/exaile/xl/cover.py", line 330, in load data = pickle.load(f) EOFError Exception in thread Thread-4:Traceback (most recent call last): File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner self.run() File "/usr/lib/python2.6/threading.py", line 484, in run self.__target(*self.__args, **self.__kwargs) File "/usr/lib/exaile/xl/hal.py", line 66, in connect logger.warning("Failed to connect to HAL," AttributeError: 'NoneType' object has no attribute 'warning'
I already posted a link in the ubuntuusers.de Forum (german) [URL].. But I haven't found a solution yet. The problem is, that I wanna set an Emblem in Nautilus via a Script that is called by cron. The problem happens in that line
Code: /usr/bin/gvfs-set-attribute -t stringv /path/to/file metadata::emblems minus14 thats the error: Error setting attribute: Setting attribute metadata::emblems not supported I already tried to call the script via /etc/crontab and /var/spool/cron/crontabs/meles, i tired it with Code: /path/to/script
create a tar file from a list? My script returns the error: AttributeError: 'list' object has no attribute 'startswith' I want to create a compressed tar file containing the directory /usr/lib and the files in the list assigned to variable b.
code:
import tarfile tar = tarfile.open("backup.gz", "w:gz")
I have two touch screen monitors tha tI'm configuring for a dual-head display.That is working.For the touch screens it's a bit more complicated, each touch screen requires that I apply a specific config file for each individual TS (touch screen). Each config file is unique to it display. for that I'm using xinput to apply those configuration.My problem here is that the TSs are the same model and show up under udev and xinput under the same the same name minus the different hardware IDs whish is the only way that I can currently distiguish them.So far I've experimented with tweaking the udev rules for a particular TS with no luck (more than likely because I might be doing it wrong).I ned to be able to tell the two appart when I apply the configurations in xinput so I can write a script that will do this automatically for me.
After installing F11, I installed OpenLdap with the command "yum -y install openldap*" And added the password obtained through the command "slappasswd -s password -h {MD5}" into /etc/openldap/slapd.conf. Also, I specified the domain information within the file on "suffix" and "rootdn". I also modified the domain name in both /etc/openldap/ldap.conf and /etc/ldap.conf. I copied the Copied the /usr/share/doc/openldap-servers-2.4.15/DB_CONFIG.example to /var/lib/ldap/DB_CONFIG. Then started the server with the command /etc/rc.d/init.d/ldap start I then was able to create and delete OU's and CN's with the help of ldapadd and ldapdelete. I also created PERSON records using the base.ldif file with the content ;
Everything is OK until I try to add a person with an email address in the "mail" attribute. The error message is ;
*************************** adding new entry "cn=user1, ou=domain, dc=example, dc=com ldap_add: Object class violation (65) additional info: attribute 'mail' not allowed ***************************
This error message is appearing also with "uid" attribute. I have searched some forums and found some suggestions to include the line "include /etc/openldap/schema/inetorgperson.scheme" in the file /etcopenldap/slapd.conf, which is already in.
I am trying to get Yumextender to work and I get a error window. The traceback is: Code: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 1314, in dispatcher self.parse_command(args[0], args[1:]) File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 1242, in parse_command self.get_packages(args[0], args[1] File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 71, in newFunc return func(*args, **kwargs) ..... File "/usr/lib/yum-plugins/auto-update-debuginfo.py", line 42, in enable_debuginfo_repos for opt, repoexp in opts.repos: AttributeError: Values instance has no attribute 'repos' I messed with some repos but with yum update it checks and says 0 Updates
While booting my Linux System (Red hat Enterprises edition 5.1) I am getting a messsage as below , the message is getting generated during file checking on first boot. Extended attribute block 18875430 has reference count 2 , should be 1. and after this system remains in the same sate.
After a update that has gone bad I can't use yum anymore, I have already reinstalled the latest versions of yum and python from the RedHat site but no luck.
My error: Loaded plugins: rhnplugin, security Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 309, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 157, in main base.getOptionsConfig(args) File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig self.conf File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 664, in <lambda> conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 253, in _getConfig self.plugins.run('init') File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/rhnplugin.py", line 145, in init_hook Repo = RhnRepo(channel) File "/usr/lib/yum-plugins/rhnplugin.py", line 243, in __init__ self.metadata_cookie = 'cookie' AttributeError: can't set attribute
In my project, there is a requirement for adding one more attribute for file properties which keeps track of previous file copies(Copy history). So how can we accomplish this? can we add/store this information in inode structure?
Just tried to test ea support by running setfattr on a test file and received an error message to the effect that this function is not supported. Is that corrects and if so how do I turn on ea support?
Basically, i have a clustered filesystem using GlusterFS. This is ultimately going to host a very large number of files.
It is mainly used as a storage destination for backups, and historical copies of files.
Remote servers sync using unison every few minutes. A local script will run over the whole filesystem once per hour looking for new files/folders, and files that have been updated based on their timestamp.
99% of filesystem access is browsing the directory structure, listing directory contents and checking the modification times of files. Access to the actual content of a file is minimal. Only a tiny fraction of the filesystem is actually modified from hour to hour.
GlusterFS alone is quite slow when browsing the directory structure. (ie. "ls -Rl /data") The speed of things for actually transferring file content is sufficient for my requirements.
What I need is to vastly improve performance when running operations such as "ls -Rl /data". (/data is the mount point)
I believe the best way to do this is to implement caching. The cache options within GlusterFS are simply not sufficient here.
My first thought was to re-export the GlusterFS mount with NFS, and then mount the NFS share and set the cache on the client to a very long expiry. (like 86400 = 24 hours) It is my understanding that any change made to a file using the mount point will invalidate the cache entry for that file. (it is only mounted in one place, so no changes possible at the back end.)
I did this using the kernel based NFS server, but ran into major problems with the "Stale NFS" errors which from reading is due to a problem related to FUSE that doesnt sound like its going to be fixed soon. Aside from the Stale errors, this did provide a suitable boost in performance.
I tried the beta of GlusterFS that has the integrated NFS server (so presumably, no FUSE) but I could not get this to compile properly on our servers.
Finally, I tried using the Gluster patched version of unfs3 that uses boost to talk to Gluster instead of FUSE. Now this works, but for some reason the NFS client cache doesnt seem to cache anymore.
One last thing that I was looking at is the possibility of running a simple cache layer in front of either GlusterFS or NFS. I believe Cache-FS is the tool for the job but I have been unable to get that to work - I believe it is disabled in my kernel or something. (mount command says cachefs is unknown)
I am running Ubuntu 8.04 on most servers, but have upgraded one to 10.04 to try and get around Kernel limitations. My servers are all 32 bit (I know, not recommended for GlusterFS) and its very difficult for me to change this. (its a live system)
I quite simply need to add a cache for the directory structure information, and then maybe export this with NFS so that it can be mounted on a *single* server. (the cache can be on the server where it is mounted if required, but due to the large size of the cache - it may be better to have a server dedicated for the cache)
I am running GlusterFS 3.0.5 in a replicate/distribute manner.
I am trying to find a workaround for incorrect grouping of windows in Docky, and I believe the problem lies with the WMClass attribute that is set for each window. However, I do not know how to view this attribute for open windows. Is there any way to do this?
I have a bunch of files on a usb stick that have just the e attribute set. So I can't chattr them, rm -f fails and chmod fails, all whether as user or root. How can I get rid of the e attribute? Failing that, how can I get rid of the files?
Does linux kernel 2.6 support suid & guid?. I just read somewhere that "latest linux kernels does not support suid & guid as it can pose a security risk if the setuid attribute is assigned to executable programs that are not carefully designed". I need a confirmation about what I say is correct or if not please correct me.
All I want to do is fade some text in and out via the opacity attribute, and change the text when it hits zero. My script changes the text on time, but ignores the formatting effects. I'm not worried at this stage about the else statement in the startFadeEffect() function. I just want the fade effect to work here the way it should.
I'm using libxml2 to handle/manipulate some XML files. In order to check the consistency of a XML file, I have a DTD and I'm using the xmlValidateDtd method to compute the check.
However, when an error occures during the check (for example an attribute is missing in a XML tag), then libxml2 writes the error on the stdout/stderr. For exemple:
Code:
/home/XML/FreeFour.xml:18: element CA: validity error : Element CA does not carry attribute maxlength
The method return the right result (true or false depending on the check result), but occurring errors are written on the stdout/stderr, and I actually don't want that.
A minor problem became a huge quasi-catastrophe yesterday when I was doing the upgrade from Maverick to Natty on this machine. One of the packages I head had a malformed attribute ("Priority" was stated as "Normal", when it should be "Standard")This made the upgrade process stop, and nothing I could come up with would make it resume. The system asked to reboot, and that's where the problems began, because the computer was rendered unusable.After I found and corrected the above problem (by manualy editing the offending bit on /var/lib/dpkg/available the process went on, but by this time things were really screwed up, I had to manually install unity before I could have an usable machine again.So, beware this error, and maybe the developers could make a more robust error detection trap for this kind of problem, allowing the upgrade to continue (it was a non-essential package).