-----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 2007
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: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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: 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: 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,...
|
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...
|
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...
|
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...
| |