General :: When Type"import WxPython" In "python Environment It Returns?

Jan 26, 2011

I have installed wxPython on my Ubuntu 9.10. But when I type"import wxPython" in "python environment it returns the followingerror.Does it need a PATH to be added in ".bashrc"? If so what should I write as a PATH for it?

>>> import wxPython
Traceback (most recent call last):
File "<stdin>", line 1, in <module>

[code]....

View 1 Replies


ADVERTISEMENT

General :: Installation Of Wxpython Source Returns - Error

Jan 19, 2010

I am trying to install wxpython from source package when ran ./configure command it came up with a strange message which says

Code:

Code:

View 8 Replies View Related

General :: Python Script Using Tar From A List Returns Error: Has No Attribute 'startswith'

Apr 4, 2011

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")

[code]....

View 3 Replies View Related

Debian :: Python-pkg-resources Returns Error Code

Apr 9, 2010

The system is Debian Squeeze/Sid with apt.conf set to Squeeze as the default. Most packages are from Squeeze.

I ran apt-get upgrade and it returned an error-code.

It might be it is this bug: Bug#574153: python-pkg-resources: Missing file leaves it unconfigured

I tried aptitude install -f, to hold it and to remove the package python-pkg-resources, but i am getting told the package would be in a very bad stage, and i should re-install it. That doesn't work.

View 1 Replies View Related

Debian :: Python 2.7 Can't See OS Environment Variables

Aug 23, 2015

I'm trying to compile Ardour on jessie amd64 using the Debian source code (there's already an ardour package but I want to use different compile options). I've applied the Debian patches and have all the required dependencies installed.

Scons quits with a KeyError message from python2.7 saying that os.environ['DEB_HOST_ARCH_OS'] is not defined.

Checking with 'dpkg-archtecture -l' shows that DEB_HOST_ARCH_OS=linux, but 'print os.environ["DEB_HOST_ARCH_OS"]' in python says that name 'os' is not defined. The scons script has 'import os' at the top so it should be seeing it.

How do I make this visible to python (I'm assuming this problem is specific to the jessie python2.7 installation and not python in general)?

View 1 Replies View Related

General :: How To Set Default Version Of WxPython In Ubuntu

Jan 26, 2011

I have installed wxPython on my Ubuntu 9.10. But when I type "import wxPython" in "python environment it returns the following error.It tries to run the previously installed one not the new one. (The new version is 2.6).Does it need a PATH to be added in ".bashrc"? If so what should I write as a PATH for it?

View 3 Replies View Related

General :: Set The Default Version Of WxPython In Ubuntu?

Jan 26, 2011

I have installed wxPython on my Ubuntu 9.10. But when I type "import wxPython" in "python environment it returns the following
error.

Does it need a PATH to be added in ".bashrc"? If so what should I write as a PATH for it?

------------------------------------------
>>> import wxPython
Traceback (most recent call last):
File "<stdin>", line 1, in <module>

[Code]....

View 1 Replies View Related

General :: Get Apt-get To Install Python Packages For A Different Version Of Python?

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

Ubuntu :: 11.04 WXPython Errors In Editra

Jun 21, 2011

I've recently upgraded to natty narwhal and made a clean install of many programs. For the most part, only a few programs needed any real fixing. Editra, however, does not seem to launch, and it looks to be a wxpython error:

Code:
Traceback (most recent call last):
File "/usr/bin/editra", line 79, in <module>
main()
File "/usr/bin/editra", line 74, in main
import Editra
File "/usr/local/lib/python2.7/dist-packages/Editra/src/Editra.py", line 59, in <module>
import profiler .....

I'm have the latest version of wxpython, python setuptools, and editra itself.

View 1 Replies View Related

CentOS 5 :: WxPython Fails To Import After Upgrade To 5.5

May 20, 2010

Wanted to double check if I've done something stupid in my update, or whether this is a known issue.

$ python
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in ?

[code]....

View 1 Replies View Related

General :: How To Delete Carriage Returns In Vi

Jan 13, 2010

i assumed :i insert mode would allow to simply back space, no appearently not? it seems none of the websites anywhere on earth mention how to delete a carriage return in vi.

View 3 Replies View Related

General :: Command Returns Too Much Of System Time

Aug 20, 2009

I use the time command to measure the wall-clock time of a GPU implementation of an algorithm. When I time the CPU execution of the algorithm time returns a negligible sys time. However, when I time the GPU execution time returns a sys time that is around 20-30% of the total time. If that time was comparable with the negligible sys time of the CPU I would achieve a speedup of a few times higher.

I suspect that the increased sys time is because of the GPU usage, which, I assume, takes some time for the OS because of the drivers etc. I am not sure though, and it is important to figure this out because it will improve my results a lot if I can ignore the sys time and use just the user time for speedup calculations. Also, is there a way to see, in detail, what is the sys running and takes so much time. I am thinking that I might be able to see if it is the driver indeed that causes this delay.

View 6 Replies View Related

General :: Grep - A-Z - Returns Unmatched Lines ?

Feb 21, 2011

Does anyone know why something like:

echo lowercase | grep [A-Z]

Would still return the lowercase line even tho there is no match?

Using --color will show there is no match but the line is still returned.

I am still new but from what i've learned this should not work like that. ubuntu 10.10

View 13 Replies View Related

General :: Nc -v Somehost.example.com 22 - Returns - Nc - Getaddrinfo - Name Or Service Not Known

Nov 24, 2010

I have this issue: "nc -v <ip-address> 22" works fine, but "nc -v <fqdn> 22" fails with error message "nc: getaddrinfo: Name or service not known". However, "host <fqdn>" works fine, so name resolution works. So I have a working name resolution, but nc (netcat) doesn't seems to be using it or something. Same kind of issue with "ping <fqdn>". Does anyone know how come name resolution works, but utilities such as nc and ping doesn't?

View 2 Replies View Related

Programming :: Make Python Programs Run Without Entering The Command Python?

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

Programming :: Python - Get Text File Data Into An Array On Python?

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

General :: Shell Script Returns Error When Using 'source'

Mar 21, 2011

For some reason the script below works fine when I run it directly but when I run is using source, I get a not found error?

With source: (line 11 is where the 'test' statement is)

Quote:

gtonder@sydlnx03:~> source set_aliases.sh -v 11:31AM
1
set_aliases.sh

[Code].....

View 6 Replies View Related

General :: Using / Usr / Bin / Time Always Returns 0 When Getting Maximum Resident Memory?

Mar 5, 2010

First time here at LQ, so if the post is in the wrong place, this is a bit programming related. I've been trying to find the maximum resident memory of a process in a memory constraint situation.

Instead of using top, or ps, which gives me real-time snapshot at the memory usage of a process, is there a way to determine the maximum resident memory used by a process? /usr/bin/time seem to provide this functionality within the format string

[Code]...

The minor page-fault is suspicious, does that mean memory is being used.. but not recorded? if so, how can I know how much memory is being mapped?

View 3 Replies View Related

General :: Change Boot Sequence - Returns A Blank Screen

Sep 26, 2010

I want to change the Boot sequence in Ubuntu 10.04.

In the past I have used

Quote:

But with 10.04 this returns a blank screen. I assume something has changed.

View 3 Replies View Related

General :: Startvnc, Arch, E17, Returns Error, Picture Inside?

Mar 20, 2011

When I type the command

Code:
startvnc
I get the following error

[code]....

View 8 Replies View Related

General :: SSH Command Mode - Flow Of Execution Returns To Bash Shell

Aug 13, 2009

I want to use ssh to execute a command and to wait endlessly to log everything (in file) that comes as a stream of the connected server. But unfortunately, in the manual its written "If command is specified, it is executed on the remote host instead of a login shell"

So what happens is that when I specify my command:
ssh user@server "my_command"

It executed the command and the flow of execution returns to bash shell. So basically my session ends right after the command is executed. This happens only in case I specify command in the command line. If I login into ssh manually and then type "my_command", then the session doesn't end. I want the ssh not to exit, because after "my_command" executes, I want to capture everything in the session.

View 3 Replies View Related

Software :: Python 3 Want Situation For Python 2 And Become Stop?

Jul 17, 2010

Python 3 want situation for python 2?Python 2 become stop?

View 1 Replies View Related

CentOS 5 :: Yum - Python-devel / Python Dependency

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

General :: Boot Disk - Returns Kernel Panic - Not Syncing Cpu Context Corrupt

Mar 6, 2010

I am a Windows 7 user. I have two machines a laptop & a new bench top. Both machines run & boot Windows 7 very well. I use a very good program to clone my Hard Drive to an external USB drive. called Macrium Reflect. It is free and is a dream to use & very fast. This program creates a Linux based boot disk, which will allow you to find a backup clone file on an external drive to restore your hard drive. It works a treat on my laptop & has saved my bacon many times when I have messed things up fiddling with the registry etc.

The problem I am having is that my new desktop will not boot from the start up CD & returns the error kernel panic,not syncing cpu context corrupt. & then just tries to reboot again. I don't know what this problem relates to whether it is the computer hardware or the Linux CD or both. My laptop with the same OS does not have a problem, It is an Acer Aspire 5920G with 1.6ghz Intel dual core processor & 2gig Ram. The bench top has an Intel Dual core 3.3ghz processor, Zotac mother board & 4gig of Ram. both machines are running 32 bit OS.

I have browsed through the posts on this forum with people having the same error at boot, but as I am not using Linux & only using a boot CD I didn't think it appropriate to but into their threads. So I am hoping if some one can tell me is this a hardware issue or a Linux/New dual core CPU/ or Bios/Mother board issue. If it is a Linux issue then my Laptop surely would not boot would it? My bench top is only a week old and guaranteed, should I be sending it from Adelaide back to Sydney(purchased online from MWave) for fault inspection? or just take to a local Technician for a diagnosis. I am not having any hardware problem running Windows 7.

View 4 Replies View Related

Ubuntu Installation :: Wxpython For Python2.5 In Presence Of Python2.6?

Dec 21, 2010

I would like to install wxpython2.8 for python2.5, which I installed as an alternative version in the presence of the standard python2.6 using xubuntu 10.04 lucid lynx (see the end of this thread for how I did it).how would I do this without the installation going for the standard 2.6 version? I found some notes to that on the web:

[URL]

I tried those, but somehow my wxpython installation got borked and would not do anything afterwards.

View 4 Replies View Related

Programming :: Python 2.x - Represent The Same In Python 3.x

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

CentOS 5 :: Upgrade Python-2.4.3 To Python-2.5?

Mar 30, 2011

How can I upgrade python-2.4.3 to python-2.5?

View 1 Replies View Related

General :: Access The Dbxml From The Command Line And It Returns Command Not Found?

Apr 30, 2011

I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found

path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found

Can someone point me in the right direction

View 1 Replies View Related

General :: When Adding Snbpasswd It Returns "failed To Find Entry For User Root"?

Apr 12, 2011

When adding snbpasswd it returns "failed to find entry for user root",who knows why?

View 1 Replies View Related

General :: Python Crash In Fedora 12

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







Copyrights 2005-15 www.BigResource.com, All rights reserved