Ubuntu :: Python Interactive Session: "help()", Then "modules" Freezes Python?
Jan 12, 2011
This problem has to do with Python's interactive help (To get to the interactive help, just type help() at any interactive session). I like to browse all my installed Python modules, to see if I can find something that would be useful for my hobby programming projects. However, recently, typing modules (which is the command to list all installed modules) freezes the interactive session.
View 1 Replies
ADVERTISEMENT
Apr 22, 2011
I would like to run an interactive python script in tty1 on startup. This script requires user input outputs relevant data.I also need this script to be run as root as it accesses USB devices (and has to detach kernel drivers).It is an infinite-loop script, so I also want to be able to ctrl+alt+F to tty2 to actually login if needed
View 1 Replies
View Related
Jan 4, 2011
I am trying to import some Python modules into Ubuntu 10.10 (PySCeS and PyDSTool). If I download the modules and extract them into a directoy in my home directory, open that directory in terminal, and then import them into python (>>>import module_x) then it loads fine. However, if I am outside of the directories then it always returns an error saying the module is not found. I have tried putting the modules into usr/local/lib/python2.6/site-packages or dist-packages and usr/shared/pyshared etc but it never sees any of my modules. It also does this with modules installed from the repository. They are always "not found" but if placed manually in the working directory they are.
View 2 Replies
View Related
Apr 28, 2010
Recently I have compiled python 2.6.5 on ubuntu "hardy" 8.04. The script was as simple as it could be:
Code:
./configure --enable-shared
make
[code]....
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
Jan 22, 2011
The whole day was more or less spent reinstalling a basic Gnome Ubuntu system. Everything went swimmingly until I started with the XBMC part of the installation. After wrestling with PPAs and apt-get for hours I finally got it installed, but then it all turned awkward in a hurry. It simply refused to start up. I clicked the icon and nothing happened for a good few seconds. The screen then flickered black for an instant, but after that nothing. I started from a terminal and it showed an error message saying it couldn't import Python's os and shutil modules. I found that mighty strange since both modules are part of the Python Standard Library.
Finally, in a bizarre twist, it turns out this doesn't seem to be a XBMC problem, suddenly apt-get started complaining too. TL,DR: I (nor the system) can't import any Standard Library modules in Python in Ubuntu! Is this a path problem? Or have I actually managed to uninstall some vital python packages, if so which ones? I am running Ubuntu 10.10, but I don't think this is necessarily a Ubuntu specific problem. Here are some dumps to show the error messages: (I forgot to copy the XBMC error message, but it looked exactly the same as these below, i.e., it couldn't import the os module) First from apt-get:
Code:
tv@tv:/usr/lib$ sudo apt-get autoremove
[sudo] password for tv:
Reading package lists... Done
Building dependency tree
[code]....
View 1 Replies
View Related
Jan 14, 2010
I am trying to build a Python module (pyfits) but I get the following error:
# python setup.py install
/home/steve/src/pyfits-2.2.2/stsci_distutils_hack.py:239: DeprecationWarning: os.popen3 is deprecated. Use the subprocess module.
[code]....
View 2 Replies
View Related
Apr 15, 2011
python can get anylink or any tutorials which is having few basic eg. and could help as a guide too. bcaz whatever now i have like "byte of python" which i feel difficult bcaz it lack in having eg. for modules of xml.so please help me by providing any better options
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
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
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
Jul 3, 2009
Wrote a python script to check for, fetch, and install Slack security fixes. Works fine...except for when the package has a little size on it. Once FTP.retrbinary finishes, it just kinda sits there and acts like it forgot what it was doing, when it should be killing curses and running upgradepkg. This happened before with the Seamonkey package and is now happening again with php, which is only 7 mb.
View 1 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
Nov 30, 2009
Fedora 12 officially uses Python 2.6, good. But the Google AppEngine still goes by Python 2.5 and is showing import errors while i try to start the SDK. Here is the stack trace.
[URL]
View 3 Replies
View Related
Apr 17, 2010
I am experiencing a 5-10 minute delay when trying to ssh into my ubuntu server.
root@localhost's password:
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session. HANG
I've tried using the option UseDNS No in my my sshd_Config but to no success. I've tried reinstalling ubuntu fresh, but still it hangs upon trying to ssh from any machine. I am running Ubuntu 9.10 server.
View 7 Replies
View Related
Sep 6, 2010
Possible Duplicate:Forward SSH traffic through a middle machine.I am looking to get an interactive ssh session on a remote machine, but must login via a gateway.For example, right now I do the following:
@local % ssh <user>@<gateway>
@gateway % ssh <user>@<remote>
Is it possible to achieve the same thing in a single command from my local machine? I have tried:
@local % ssh <user>@<gateway> 'ssh <user>@<remote>`
From the output i am indeed able to login, but do not get an interactive session. I took inspiration for this attempt from using ssh to run a command remotely.
View 1 Replies
View Related
Feb 25, 2011
I am trying to write a perl script which will give an interactive session to a user to execute command on the server. I have written a small script to do this :
Code: !/usr/bin/perl -w
use strict;
use Net::SSH::Perl;
my $host = '192.168.1.1';
my $username = 'user';
my $login_passwd = 'test123';
[Code]...
View 2 Replies
View Related
Mar 27, 2010
It says in my package manager that i have both 2.5 and 2.6 installed. I'm trying to clean up my laptop, can i delete one of them or do i need both?
View 3 Replies
View Related
Dec 15, 2010
Just installed Python 3 but every time I enter Python at the terminal I get 2.6. How do I use 3.1
View 2 Replies
View Related
Jul 30, 2011
I already have the Python 2.6 interpreter installed on my system. I was reading A Byte of Python, and it said to get Python 3.1. So I typed in 'sudo apt-get install python3.1' in the terminal, followed the prompts and it installed. However, now I can't find it anywhere. I go either to the PyCrust of PyShell and it still says I'm using version 2.6.6. Any advice?
View 2 Replies
View Related
Jun 10, 2010
I tried to downloaded and installed from the Internet directly but it gives me error message. Also I tried to downloaded it from Ubuntu but when I go to the software package and click on python it show me hundreds of python types. I'm a beginner and I need to use Python for my class this summer, I only need to use python GUI. how to install python on Ubuntu and also how to find it after installation.
View 6 Replies
View Related
Jun 19, 2010
I've done command line work in Linux, so I need a refresher.I have downloaded and extracted Python 3.1.2. How do I install? All of the HELP and README files are a little vague for me. but when I type in "./configure" in a terminal session, it says "command not found".
View 2 Replies
View Related
Jun 28, 2010
Ive recently needed to downgrade to python2.5 so i added the main repository for karmic. Then i downgraded _tkinter to the karmic version and installed python2.5. Previously i had gotten import _tkinter to work in python2.6 by doing the same procedure as above expect with python 2.6. However, now _tkinter isn't working, giving me the error 'no module named _tkinter'.
View 1 Replies
View Related
Oct 23, 2010
how to install Python 2.6 on Ubuntu 8.04, I checked and the latest ver. on the ubuntu repository is 2.5 I need 2.6 I just compiled it using the following guide.[URL] I just didn't get how to set my PATH I followed all the steps that were there exactly.
View 2 Replies
View Related
Nov 17, 2010
i have been trying to set up vim for python development but i cant seem to find vim-python package has it been removed or has it been combined with some other package
View 1 Replies
View Related
Dec 23, 2010
I am super new to Linux and Ubuntu. I am trying to install python and I downloaded it from the website. I do not know how to actually install it though. I have Ubuntu 10.10.
View 6 Replies
View Related
Jun 12, 2011
I am running a linux server with Ubuntu 10.04. It runs a deluge daemon. Deluge 1.2.2 with python 2.6. I have the client running in Ubuntu 11.04.
The problem is, some of the plugins require python 2.6 while I have 2.7. After some digging I have found that 11.04 supports and has installed python 2.6 /usr/bin/python2.6
I have edited all the deluge files
Code:
/usr/local/bin/deluge
/usr/local/bin/deluge-gtk
/usr/local/bin/deluge-console
[Code].....
View 4 Replies
View Related