I'm update Python , but founde problem root@server [~]# yum update There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum
Please install a package which provides this module, or verify that the module is installed correctly.It's possible that the above module doesn't match the current version of Python, which is: 2.6.7 (r267:88850, Jun 7 2011, 12:25:26) [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] If you cannot solve this problem yourself, please go to the yum faq at: [URL]...
in ubuntu 10.10, I have installed python 2.7. I would like to use apt-get to install packages to this version of python but I haven't been able to figure out howThings I have tried without success:changing the symlink at /usr/bin/python to point to /usr/bin/python2.7 - even after doing this apt-get still installs stuff to python2.6.Set up python2.7 as the primary alternative using update-alternatives - doesn't work
I switched from Windows 7 to Linux and when I'm trying to import my database i get error 1044. It used to work when I was using Windows 7. I was able to export the database from my localhost. However, when I try to import it to the other server I get this:#1044 - Access denied for user ' '@'%' to database'.I have been trying for hours to upload my site from the localhost to another server without any luck..I'm using phpmyadmin to import it.
when I save my Google contacts to csv file and import to evolution the contacts are missing most of it's information. some have part of their names etc... how can i add my existing contacts so it's complete. Do i need to save it to a different type of file?
I have a copy of old Eudora mbox files. I need to import them to Thunderbird. When I use the Import function, it does not provide a way to locate the mbox files. I've even installed the OSE Eudora, but, how that looks just like Thunderbird. Forks? Again, Eudora does not provide a way to import the files directly.
I have couple of users in one machine. I can access the /etc/passwd,/etc/shadow and /etc/group files in this box. I have another box. I want to create some user accounts in the second box by just looking in the passwd, shadow and group files in the first box. I would just copy over the corresponding lines into the corresponding for whichever accounts I want to create as new and also change the lines for which I want to update the account information. Is this possible and will also the passwords work fine? Please also let me know there is any good tool for automatically doing this kind of stuff. Both the boxes that I have are Ubuntu machines though one is running Ubuntu 8.04 and the other is 10.04.
I want to import raw High Def video into my computer so I can edit it on Cinelerra. Ubuntu doesn't allow you to use the ieee 1394 cable by default and everything I've tried to make it work, hasn't!!I don't want to go back to windows, pay a ton of money for some video editing software when there is an excellent video editing program already on my computer.]
I am running an openldap server on fedora core 10 and now running into a need of get all users data from Active Directory. Actually I have a php based application which will be using that data from OpenLDAP and it will need to be updated on weekly bases. how can I do it and any script.
I have a function definition in a Python 2.x script which take a tuple as one of its arguments, but 2to3 has no answers nor any of my searching on how to represent the same in Python 3.x
I've upgraded from 10.04 to 11.04, in the process I did not get bookmarks saved. I've have since gone into the 'old' file system and have now gotten the old bookmarks.html file into the 11.04 file system. How do I get them imported into Firefox?
Virgin install of F13. Rsync (copy) notes from backup harddisk of F12 to /home/bill/.gnote. Release notes say "Notes stored in previous versions are automatically migrated from .gnote to .local/share/gnote in the users home directory." Nothing is migrating anywhere. Before I start messing about. I have I missed something dumb?
I've searched a number of forum posts and have seen similar issues but the specifics are different and I haven't yet found a solution. I'm running Gnome on Fedora 13 and clicked "Install Updates." About 513 packages were set to be installed, but I get an error midway through:
Quote: The GPG keys listed for the "RPM Fusion for Fedora Rawhide - Free" repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository.
I've tried installing RPM Fusion keys and get an error saying they require "system >=15" (Fedora 15, I'm guessing?) and I don't recall ever adding these keys manually myself. Or if so, I can't recall what I did to get them in there.
I've read that some people can solve this by using a "--nogpgcheck" at the command line, but I don't know what the command line equivalent will be for this update. Ideally, I'd like to continue using the GUI updater since it offers all the info about the packages. So my hope would be to:
1. Identify the problem gpg keys 2. Install the right ones 3. Run the installer again and see everything work.
i have edited a formula in formula editor and saved that file ... i wanna import that formula into my ppt (odt i think) .. ( i know its dumb question dumbest i ever asked .. i need to prepare my presentation real quick say 1/2 hr from now
I am using TB 3.0.1 on Karmic. I finally took a look at Evolution and I like the contact features. I have been looking for a replacement for ACT (I recently migrated from XP) and this looks like it might fit the bill. Is it possible to import all of my emails, contacts, folders etc from TB into Evolution. I would like to try it out and see if it works for me. I am in sales and need a program to keep track of leads.
Due to this problem, everything that uses python is not working.
/lib/librt.so.1: symbol pthread_barrier_wait, version GLIBC_2.2 not defined in file libpthread.so.0 with link time reference
Please install a package which provides this module, or verify that the module is installed correctly.It's possible that the above module doesn't match the current version of Python, which is: 2.6.2 (r262:71600, Aug 21 2009, 12:22:21) [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)]
Every one would be much familiar dat a python compiler is available with Ubuntu. I found it and i just thought to learn python coz the coding is easier with python. Can someone tell me which one is better- python or java and i should learn which language?
I'm trying to write a script in python to extract data from maillogs in gz format. I wrote a shell script but i now want to do this in python, as thats the preferred method where i work. anyway does anyone know how to specify directory paths for example the maillogs exist in /var/log so i want the script to go to that directory would LOG_DIR="/var/log/" work?
I am using ubuntu hardy and python 2.6.5 (built from sources). For a custom python packager I need to rebuild python interpreter (python executable). I am new to linux and don't have much knowledge of gcc and other stuff. Here is the process:1. Copy python.c as myapp.c. myapp.c is in the same directory (python2.6.5) in which I have all the required files. 2. Using the syntax from makefile of python sources, here is my first command to produce myapp.o
Code: gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I/home/zeno/installed/Python-2.6.5/Include -fPIC -DPy_BUILD_CORE -c myapp.c -o myapp.o This produce myapp.o but throws a warning:
Code: myapp.c:24:2: warning: no newline at end of file Next is to produce the executable or python interpreter: Code: gcc -pthread -Xlinker -export-dynamic -o $@ myapp.o -L. -lpython2.6 -lpthread -ldl -lutil -lm -o myapp This is causing an error: Code: /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main'
How do you get correct ethernet/mac id of your local network card using python script? Most of the article suggests to parse the output of ipconfig /all on windows and ifconfig on linux. I am sure that this solution would work on windows but I am a linux starter and not sure the reliability of ifconfig on linux distros. Couple of other solutions on linux are:
Code:
def getHwAddr(ifname): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) info = fcntl.ioctl(s.fileno(), 0x8927, struct.pack('256s', ifname[:15])) return ''.join(['%02x:' % ord(char) for char in info[18:24]])[:-1]