-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a program written in python that tells me it requires PyGTK, so I
DLed, ./configure, make, make install and the process seems to go ok. Some
errors but the process finishes so I assumed they weren't fatal errors.
So now I attempt to run my python program and I get;
$ gccp.py
Traceback (most recent call last):
File "./gccp.py", line 9, in ?
import pygtk
ImportError: No module named pygtk
I'm running Slackware 9.1 with a 2.6.6 kernel, and I don't know what other
information would be helpful.
Mark
- --
Remove both wrongs to make the email address right.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAtq9mLVmEOl6/PWERAhQlAJ9tftg6Bul2uBsi+4kxUbOQpXKuyACfV9WG
zC11tY3NhVmBqye0QPiYwoY=
=G1KG
-----END PGP SIGNATURE----- 6 2004
Mark Mitchell wrote: I have a program written in python that tells me it requires PyGTK, so I DLed, ./configure, make, make install and the process seems to go ok. Some errors but the process finishes so I assumed they weren't fatal errors.
It often complains about missing functions, or something.
It compiles though, so I assume, it's built completely. So now I attempt to run my python program and I get; $ gccp.py Traceback (most recent call last): File "./gccp.py", line 9, in ? import pygtk ImportError: No module named pygtk
I'm running Slackware 9.1 with a 2.6.6 kernel, and I don't know what other information would be helpful.
Most probably, pygtk is installed in a directory where python
cannot find it (i.e. the wrong directory). So setting PYTHONPATH
may help. If not:
Did you get python from a Slackware package?
Where's the python standard library?
in /usr/lib/python?.? or /usr/local/lib/python?.? ?
Where did it install pygtk?
/usr/lib/python?.?/site-packages or /usr/local/lib/python?.?/site-packages ?
What's your --prefix for ./configure ?
Greetings,
Holger
Mark Mitchell wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I have a program written in python that tells me it requires PyGTK, so I DLed, ./configure, make, make install and the process seems to go ok. Some errors but the process finishes so I assumed they weren't fatal errors.
So now I attempt to run my python program and I get; $ gccp.py Traceback (most recent call last): File "./gccp.py", line 9, in ? import pygtk ImportError: No module named pygtk
I'm running Slackware 9.1 with a 2.6.6 kernel, and I don't know what other information would be helpful.
Why not try a prepackaged version? http://www.linuxpackages.net/search_...pygtk2&ver=9.1
At least it will give you info on the right thing to do
Pádraig.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2004-05-28, Holger Türk <ht**@gmx.de> wrote:
Mark Mitchell wrote: I have a program written in python that tells me it requires PyGTK, so I DLed, ./configure, make, make install and the process seems to go ok. Some errors but the process finishes so I assumed they weren't fatal errors. It often complains about missing functions, or something. It compiles though, so I assume, it's built completely.
So now I attempt to run my python program and I get; $ gccp.py Traceback (most recent call last): File "./gccp.py", line 9, in ? import pygtk ImportError: No module named pygtk
I'm running Slackware 9.1 with a 2.6.6 kernel, and I don't know what other information would be helpful.
Most probably, pygtk is installed in a directory where python cannot find it (i.e. the wrong directory). So setting PYTHONPATH may help. If not:
Did you get python from a Slackware package?
No, I compiled from source.
Where's the python standard library? in /usr/lib/python?.? or /usr/local/lib/python?.? ?
I have a /usr/lib/python2.3 that has a bunch of .py .pyo .pyc files, and
I also have a;
$ ls -l /usr/local/lib/python2.3/
total 1
drwxr-xr-x 3 root root 192 2004-05-26 23:56 site-packages/
Where did it install pygtk? /usr/lib/python?.?/site-packages or /usr/local/lib/python?.?/site-packages ?
I'm not sure what exactly you're referring to here. Looking at my install
log, I have a number of .py .pyc .pyo files in
usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/ and
usr/local/share/pygtk/2.0/
Is there a single filename or extension I should be looking for?
What's your --prefix for ./configure ?
I didn't use one, just straight ./configure.
Mark
- --
Remove both wrongs to make the email address right.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAt2fPLVmEOl6/PWERAkW2AKCw+gK/pTYQ7JdDTbh4jrO7TvPXiwCfVGBK
Hip5c0CaZ/T9NAuyvZfkfg4=
=8hIu
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2004-05-28, P@draigBrady.com <P@draigBrady.com> wrote: Mark Mitchell wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I have a program written in python that tells me it requires PyGTK, so I DLed, ./configure, make, make install and the process seems to go ok. Some errors but the process finishes so I assumed they weren't fatal errors.
So now I attempt to run my python program and I get; $ gccp.py Traceback (most recent call last): File "./gccp.py", line 9, in ? import pygtk ImportError: No module named pygtk
I'm running Slackware 9.1 with a 2.6.6 kernel, and I don't know what other information would be helpful.
Why not try a prepackaged version? http://www.linuxpackages.net/search_...pygtk2&ver=9.1 At least it will give you info on the right thing to do
Two reasons, 1, I didn't know there was one. I may go that route in the
end. 2, I'd like to learn what I did wrong so that I have a better chance
of having it go flawlessly next time I have to install something like this.
Thanks for the link, though. It's bookmarked.
Mark
- --
Remove both wrongs to make the email address right.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAt2h3LVmEOl6/PWERAjjnAJ9wEZbFbXb6oHb8mmIrzsvgajSs7gCfQod+
Z5PwWZj3RIcUoOme5xcV9vU=
=fZsW
-----END PGP SIGNATURE-----
>>>>> "Mark" == Mark Mitchell <ma***********@wrongbellsouth.net> writes:
Mark> No, I compiled from source.
Try installing with 'python setup.py install' rather than
configure/make install.
Mark Mitchell wrote: Where's the python standard library? in /usr/lib/python?.? or /usr/local/lib/python?.? ? I have a /usr/lib/python2.3 that has a bunch of .py .pyo .pyc files, and
Python got installed with prefix /usr
I also have a; $ ls -l /usr/local/lib/python2.3/ total 1 drwxr-xr-x 3 root root 192 2004-05-26 23:56 site-packages/
Where did it install pygtk? /usr/lib/python?.?/site-packages or /usr/local/lib/python?.?/site-packages ?
I'm not sure what exactly you're referring to here. Looking at my install log, I have a number of .py .pyc .pyo files in usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/ and usr/local/share/pygtk/2.0/
pygtk got installed with prefix /usr/local
_Your_ Python installation doesn't look there by default. What's your --prefix for ./configure ?
I didn't use one, just straight ./configure.
Which means /usr/local.
Try setting PYTHONPATH to
/usr/local/lib/python2.3:\
/usr/local/lib/python2.3/site-packages:\
/usr/local/lib/python2.3/site-packages/gtk-2.0
If that doesn't work, do
../configure --prefix=/usr
instead of
../configure
as Sridhar R already pointed out.
Greetings,
Holger This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mark Stijnman |
last post by:
I would like to be able to have an object accessible as a vector using
the operator, but able to track modifications to its data, so that
it can update other internal data as needed. I figured...
|
by: Markus Ernst |
last post by:
Hi
I wrote a function that "normalizes" strings for use in URLs in a UTF-8
encoded content administration application. After having removed the accents
from latin characters I try to remove all...
|
by: Yves Glodt |
last post by:
Hello,
if I do this:
for row in sqlsth:
________pkcolumns.append(row.strip())
________etc
without a prior:
|
by: bwmiller16 |
last post by:
Guys -
I'm doing a database consistency check for a client and I find that
they're building unique indexes for performance/query reasons where
they could be using non-unique indexes.
Note...
|
by: Academic |
last post by:
I have a MDI form, sometimes child forms and sometimes forms that are
neither
If I close the app the child forms closing and closed event happens followed
by the Mdi form receiving the...
|
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= |
last post by:
PEP 1 specifies that PEP authors need to collect feedback from the
community. As the author of PEP 3131, I'd like to encourage comments
to the PEP included below, either here (comp.lang.python), or...
|
by: archimed7592 |
last post by:
Hi.
for example i have base class A and dirved class B:
struct A
{
virtual void f() { std::cout << "A::f()" << std::endl; }
};
struct B : public A
{
|
by: Fabian Wein |
last post by:
Hi,
is there a way to call a const function from non const function?
I have a non-const
List GetList();
and want my
|
by: asm23 |
last post by:
Hi,I need some help to clarify the warning "initial value of reference
to non-const must be an lvalue".
I'm searching in this groups to find someone has the same situation like
me. I found in...
|
by: puzzlecracker |
last post by:
is it even possible or/and there is a better alternative to accept
input in a nonblocking manner?
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |