Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8432439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:07:37+00:00 2026-06-10T06:07:37+00:00

In installed standalone jython on my ubuntu 12.04, run it, but if I try

  • 0

In installed standalone jython on my ubuntu 12.04, run it, but if I try to import gtk, I get no module named gtk when in python console it works.

Update:

I have done

>> sys.path.insert(1,"/usr/lib/python2.7/dist-packages/gtk-2.0")

and

>> sys.path.insert(1,'/usr/lib/python2.7/dist-packages")

and now is is

    from glib._glib import *
ImportError: No module named _glib

when:

argon@vprime:/usr/lib/python2.7$ find | grep _glib
./dist-packages/gi/_glib
./dist-packages/gi/_glib/option.pyc
./dist-packages/gi/_glib/option.py
./dist-packages/gi/_glib/_glib.so
./dist-packages/gi/_glib/__init__.pyc
./dist-packages/gi/_glib/__init__.py
./dist-packages/glib/_glib.so
./dist-packages/twisted/internet/test/test_glibbase.pyc
./dist-packages/twisted/internet/test/test_glibbase.py
./dist-packages/twisted/internet/_glibbase.py
./dist-packages/twisted/internet/_glibbase.pyc
./dist-packages/_dbus_glib_bindings.so

so, glib/_glib is under dist-packages and I have no idea what is wrong…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:07:39+00:00Added an answer on June 10, 2026 at 6:07 am

    Not all modules are compatible between Jython and CPython (the standard Python interpreter). In particular, modules that are compiled to native bytecode, generally written in C/++ (or with Cython), cannot be loaded in Java, because it uses its own Virtual Machine (JVM) which cannot understand native bytecode.

    Many native/binary modules in CPython will have a name prefixed with an underscore, like _glib above.

    You have at least two options:

    • Use Jython and a Java GTK package.
    • Use CPython, and if you need to talk to Java, use one of the packages that interface between CPython and the JVM (e.g. jpype, py4j).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed Python 3.x (besides Python 2.x on Ubuntu) and slowly started to pair
I've created a standalone java application using Netbeans. The application works in ubuntu 10.04
I installed XAMPP to run PHP from eclipse. I have a standalone MySQL server
I am trying to get zookeeper to work in standalone mode for python api
I installed the following software into my laptop: Microsoft .NET Framework 4 (Standalone Installer)
Installed both SonataMediaBundle, SonataNewsBundle and SonataAdminBundle (and much more but these matter). When posting
Installed rubyinstaller-1.8.7-p358.exe, then tried to install jammit , but the config.gem command isn't being
I installed clojure-mode and slime using the emacs starter kit and I get this
I am on MacOSX Snow Leopard and I'm using python 2.6.5 installed with macports.
I've installed the coldfusion 9 server locally (the development standalone edition) I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.