Why can't I import gtk (pygtk) module? It appears gtk module want X
perms? import gtk
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line
37, in ? from _gtk import *
RuntimeError: could not open display 2 7667 -s*******@spawar .navy.mil <se******@spawa r.navy.mil>: Why can't I import gtk (pygtk) module? It appears gtk module want X perms?
import gtk
Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line 37, in ? from _gtk import * RuntimeError: could not open display
You have to run the pyshell under the right permissions. Are you
trying to import pygtk from the root/toor account ?
ngw se******@spawar .navy.mil wrote: Why can't I import gtk (pygtk) module? It appears gtk module want X perms?
import gtk
Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line 37, in ? from _gtk import * RuntimeError: could not open display
An error like this usually happens when X security is on, or the
display name isn't known.
#before you run it, try (for csh):
setenv DISPLAY host:0.0
#where host is your computers name
#If that doesn't get it, do:
xhost + This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jeremy C. Reed |
last post by:
Configuring gramps (genealogy software) says:
checking Python bindings for gtk... ok
checking Python bindings for GNOME... ok
checking Python bindings for gconf... Traceback (most recent call last):
File "conftest.py", line 17, in ?
import gnome.gconf
ImportError: No module named gconf
cat: conftest.out: No such file or directory
configure: error:
|
by: neutrinman |
last post by:
why does the following error occur?
def quit_time():
data_file = shelve.open("data.dat", "c")
data_file = datetime.datetime.today()
print data_file
raw_input("enter")
Traceback (most recent call last):
|
by: Dean R. Henderson |
last post by:
I added a new ASP.NET page to an existing project and I get the following error when trying to display the page:
Parser Error Message: Could not load type '<ASP.NET Project Name>.<Page Name>'.
Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="<Page Name>.aspx.vb" Inherits="<ASP.NET Project Name>.<Page Name>" %>
I copied this page to another project and after adjusting some Import references was able to display the page...
|
by: aomighty |
last post by:
I wanted to write the following code:
import shelve
try:
db = shelve.open(file, "r")
except SomeError:
print "Oh no, db not found"
Only, I'm not sure what SomeError should be. I tried error,
anydbm.error, shelve.open.anydb.error, etc. but can't find it. Things
|
by: Petr Jakes |
last post by:
Hi
my script is working well when I am running it from the terminal
window. While I am trying to start it as a Cron job, I am getting an
Error described bellow:
My configuration: Pentium III, Python 2.4.1, Fedora Core4
Thanks for your comments.
Petr Jakes
File "/root/eric/analyza_dat_TPC/htmlgenerator.py", line 7, in ?
| |
by: jimmy |
last post by:
Hi again,
sorry for posting two questions so close together but im working on a
school project which is due in soon and running into some difficulties
implementing the database parts. I have the code below which when
executed generates the following error message: 'There is already an
open datareader with this command which must be closed first'
Private Sub MainMenu_Load(ByVal sender As System.Object, ByVal e As
|
by: Zytan |
last post by:
I have public methods in a form. The main form calls them, to update
that form's display. This form is like a real-time view of data that
is changing.
But, the form may not exist (it is created / destroyed at user
request). I can check form != null to prevent incorrect access.
But, the form could disappear immediately after the check, before the
method is run. Or someone could click 'close' when it's in the middle
of an update. ...
|
by: kickingthehabbit |
last post by:
Hi All new to all of this
I just downloaded reactor server.
everything works fine except
Mysql - SQL import files.
I am trying to import file createdb.sql I open DB and try and import with SQL
when I try and import it comes back with
|
by: sebastian.noack |
last post by:
Hi,
is there a way to or at least a reason why I can not use tarfile to
create a gzip or bunzip2 compressed archive in the memory?
You might might wanna answer "use StringIO" but this isn't such easy
as it seems to be. ;) I am using Python 2.5.2, by the way. I think
this is a bug in at least in this version of python, but maybe
StringIO isn't just file-like enough for this "korky" tarfile module.
But this would conflict with its...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |