General :: Importing Python Script
Apr 8, 2011
I am able to import file.py in my C program(main.c), but unable to import this file [url]
Im using centos5.5 with python2.4 using this command to run it: gcc -o output pythonembed.c -lpython2.4
How can i import this script:
[url]
View 4 Replies
ADVERTISEMENT
Mar 5, 2010
I am having a problem with Python. I type "import" and it will not import. It will only import locally.
View 2 Replies
View Related
Jun 9, 2011
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]...
View 10 Replies
View Related
Oct 27, 2010
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
View 3 Replies
View Related
Apr 19, 2011
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.
View 2 Replies
View Related
Jun 22, 2010
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?
View 2 Replies
View Related
Sep 26, 2010
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.
View 1 Replies
View Related
Jun 10, 2010
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.
View 5 Replies
View Related
Aug 3, 2010
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.]
View 4 Replies
View Related
Mar 10, 2010
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.
View 1 Replies
View Related
Mar 22, 2009
I want to be able to do
sudo ./program.py
instead of always having to do
sudo python program.py
What do I need to change?
View 5 Replies
View Related
Nov 30, 2009
I've already used line split stuff to transform my data into something like this in a text file:
Code:
['1', '1', '3', '20.7505207']
['2', '1', '3', '23.0488319']
['3', '1', '3', '-1.5768747']
['4', '1', '3', '-26.4772491']
[code]....
How can I get this on a python program so I can manipulate it as an array?
View 3 Replies
View Related
Jul 17, 2010
Python 3 want situation for python 2?Python 2 become stop?
View 1 Replies
View Related
Jan 7, 2011
yum dependency problem please? I am running Centos 5.5. I need to install python-devel, but when I do so I get:
[Code]....
View 2 Replies
View Related
Mar 4, 2010
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
Code:
def blah(self, (string1, string2))
View 4 Replies
View Related
Mar 30, 2011
How can I upgrade python-2.4.3 to python-2.5?
View 1 Replies
View Related
Aug 28, 2010
How do I import a PDF files contents perfectly into OOo Word Processor?
View 9 Replies
View Related
May 14, 2011
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?
View 6 Replies
View Related
Jul 5, 2010
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?
View 2 Replies
View Related
Jan 22, 2011
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.
View 4 Replies
View Related
Apr 6, 2011
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
View 1 Replies
View Related
Feb 2, 2010
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.
View 2 Replies
View Related
Jul 27, 2010
Does anyone know why OpenProj 1.4 running on Ubuntu 10.04 say its importing my 0.14.4 planner file and just keeps forever trying??
View 1 Replies
View Related
Aug 5, 2010
I'm on Xubuntu 10.04 and I'd like to import some CDs as MP3 via exaile. Right now, I'm getting this error:
Code:
Exception in thread Thread-12:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
[Code].....
View 3 Replies
View Related
May 5, 2010
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)]
View 1 Replies
View Related
Oct 15, 2010
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?
View 5 Replies
View Related
Nov 20, 2009
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?
View 1 Replies
View Related
Oct 26, 2010
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'
[Code]...
View 1 Replies
View Related
Nov 23, 2010
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]
[code].....
View 2 Replies
View Related
Oct 31, 2009
How do copy a file from one location to another using python script? How do i execute the shell script within python script?
View 1 Replies
View Related