Ubuntu One :: NoneType Object Has No Attribute Makefile
Oct 21, 2010
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'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 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
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 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 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 just downloaded slackware 13.1(x86) and i'm trying to compile ndiswrapper-1.56 using the slackbuild from slackbuils.org and i'm getting this error:
Code:
Makefile:535: /usr/src/linux-2.6.33.4/arch/i486/Makefile: No such file or directory make[2]: *** No rule to make target `/usr/src/linux-2.6.33.4/arch/i486/Makefile'. Stop. make[1]: *** [modules] Error 2 make: *** [all] Error 2
I've been using the PPA version of banshee, and I got this error - just wondering if anyone else has it too! I'm able to play a song, but when the song finishes and the next one starts I get this error: Banshee Encountered a Fatal Error Object reference not sent to an instance of an object Error details:
Code: An unhandled exception was thrown: Object reference not set to an instance of an object at Hyena.Gui.Theming.GtkTheme.GetCairoTextMidColor (Gtk.Widget) <0x00017> at Banshee.NotificationArea.NotificationAreaService.get_TextLightColor () <0x0002f> at Banshee.NotificationArea.NotificationAreaService.MarkupFormat (string,string[]) <0x00043> at Banshee.NotificationArea.NotificationAreaService.GetByFrom (string,string,string,string) <0x000d7>
Code: #!/usr/bin/python # -*- coding: iso-8859-1 -*- import re # @description "This is a describing text about the file currently documentet"; #DocC documentation prototype
Only ones I can think of seem overly complex, and I'm sure there is a simple solution I am overlooking. I have a class, it has a member who is an object. This object needs to be able to represent an object of different types.
[code]...
Where "surface" could be several different types, which will be set during execution. Hope this is clear enough. I have tried using templates but am getting "data member cannot be a member template". Either I have incorrect syntax, or am not implementing it right. another solution would have one class containing definitions of all possible shapes, But this would take up extra memory. Other solutions I thought of seem too round-about, and seems there is a simpler solution that I have overlooked.
I'm installing a package but that package doesn't has "makeFile" file, it only has "makefile.am" and "makefile.in". therefore when ever i use the "make" command i get: "make: *** No targets specified and no makefile found. Stop."
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?
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
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.
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
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.
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 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
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?
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'