google-code-export / pywebkitgtk

Automatically exported from code.google.com/p/pywebkitgtk
Other
1 stars 0 forks source link

ImportError: No module named webkit #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./autogen.sh
2. make
3. make install
4. python demos/webrowser.py

What is the expected output? What do you see instead?

Traceback (most recent call last):
  File "demos/webbrowser.py", line 26, in <module>
    import webkit
ImportError: No module named webkit

The webrowser doesn't start.

Libraries have been installed in:
   /usr/local/lib/python2.5/site-packages/gtk-2.0

What version of the product are you using? On what operating system?

Webkit from SVN
pywebkitgtk from SVN

Ubuntu 8.04 - Hardy Heron 

Please provide any additional information below.

Original issue reported on code.google.com by ecarre...@gmail.com on 3 Aug 2008 at 12:15

GoogleCodeExporter commented 9 years ago
If I copy webbrowser.py to /usr/local/lib/python2.5/site-packages/gtk-2.0 and 
then
run ./webbrowser.py it starts whithout any problems.

But I can't run it from other path.

Original comment by ecarre...@gmail.com on 3 Aug 2008 at 1:32

GoogleCodeExporter commented 9 years ago
If I run ./autogen.sh --prefix=/usr
make
make install
python demos/webbrowser.py

It runs without any problem too.

Original comment by ecarre...@gmail.com on 3 Aug 2008 at 1:43

GoogleCodeExporter commented 9 years ago
If you want to run demos/webbrowser.py after using only ./autogen.sh, you 
should use
the following:

PYTHONPATH=.libs python demos/webbrowser.py

That's telling python to look for webkit.so in .libs and not in the default 
/usr or
/usr/local.

Let me know if that fixes your problem.

Original comment by jmalo...@gmail.com on 3 Aug 2008 at 8:29

GoogleCodeExporter commented 9 years ago
Resolving as WontFix as I don't really have to do anything here. Please reopen 
if Comment 3 doesn't solve this 
problem.

Thanks for the report.

Original comment by jmalo...@gmail.com on 4 Aug 2008 at 12:51