Pygobject build fails - ubuntu-16.04

I am trying to install Pygobject on my 64-bit Ubuntu 16.04 by following instructions given here: https://python-gtk-3-tutorial.readthedocs.io/en/latest/install.html
It recommends using jhbuild to build pygobject. So I install jhbuild (something I've never seen before following instructions given here: https://developer.gnome.org/jhbuild/unstable/getting-started.html.en) which worked out fine.
Initially I had to run jhbuild sysdeps --install to install missing dependencies which took a LONG time. After it was done it said Nothing to install which I presume means it found everything it needed.
Then the
jhbuild bootstrap command said *** success *** [1/1]. OK.
The jhbuild sanitycheck gives no output, (supposedly) meaning all is well.
Then, I run the command jhbuild build pygobject and get error:
Checking if "C_IN in public headers (no arpa/nameser_compat.h needed)"
compiles: NO
Checking if "arpa/nameser_compat.h needed for C_IN" compiles: NO
gio/meson.build:35:6: ERROR: Problem encountered: Could not find
required includes for ARPA C_IN
A full log can be found at
/home/anshulvj/.cache/jhbuild/build/glib/meson-logs/meson-log.txt
*** Error during phase configure of glib: ########## Error running
meson --prefix /home/anshulvj/jhbuild/install --libdir lib -
Dlibmount=false --buildtype=debugoptimized -Dgtk_doc=false
/home/anshulvj/jhbuild/checkout/glib *** [6/10]
[1] Rerun phase configure
[2] Ignore error and continue to build
[3] Give up on module
[4] Start shell
[5] Reload configuration
[6] Go to phase "wipe directory and start over"
choice:
Doesn't matter what I choose, it either ends the build or gives errors like the following, if I choose [2]:
*** Building glib *** [6/10]
ninja
ninja: error: loading 'build.ninja': No such file or directory
*** Error during phase build of glib: ########## Error running ninja
*** [6/10]
.
.
.
and then
configure: error: Package requirements (glib-2.0 >= 2.57.1) were not met:
Requested 'glib-2.0 >= 2.57.1' but version of GLib is 2.48.2
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
*** Error during phase configure of gobject-introspection: ########## Error running /home/anshulvj/jhbuild/checkout/gobject-introspection/autogen.sh --prefix /home/anshulvj/jhbuild/install --disable-Werror --with-python=python3 --disable-static --disable-gtk-doc *** [9/10]
Which is weird because I cannot find anything related to installing glib2.57 or greater online. (https://github.com/GNOME/glib)
The documentation at https://python-gtk-3-tutorial.readthedocs.io/en/latest/install.html does not deal with these errors and I'm completely lost. I googled a lot but did not find anyone who was facing the same issue. If this does not work I'm going to give up on Python3+GTK3+.
Any help/pointers are appreciated.
EDIT: Today I tried installing based on instructions given here https://pygobject.readthedocs.io/en/latest/getting_started.html using pip. It doesn't matter if I use pip or pip3 I get the following error.
(venv) anshulvj#anshulvj-HP-ZBook-15-G3:~/IRS2-415-Python$ pip3 install pygobject
Collecting pygobject
Using cached https://files.pythonhosted.org/packages/e0/e8/1e4f21800015a9ca153969e85fc29f7962f8f82fc5dbc1ecbdeb9dc54c75/PyGObject-3.28.3.tar.gz
Requirement already satisfied: pycairo>=1.11.1 in ./venv/lib/python3.6/site-packages (from pygobject) (1.17.1)
Installing collected packages: pygobject
Running setup.py install for pygobject ... error
Complete output from command /home/anshulvj/IRS2-415-Python/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-kikh0jeu/pygobject/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-6r4kbumk/install-record.txt --single-version-externally-managed --compile --install-headers /home/anshulvj/IRS2-415-Python/venv/include/site/python3.6/pygobject:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/pygtkcompat
copying pygtkcompat/generictreemodel.py -> build/lib.linux-x86_64-3.6/pygtkcompat
copying pygtkcompat/pygtkcompat.py -> build/lib.linux-x86_64-3.6/pygtkcompat
copying pygtkcompat/__init__.py -> build/lib.linux-x86_64-3.6/pygtkcompat
creating build/lib.linux-x86_64-3.6/gi
copying gi/_error.py -> build/lib.linux-x86_64-3.6/gi
copying gi/module.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_option.py -> build/lib.linux-x86_64-3.6/gi
copying gi/types.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_ossighelper.py -> build/lib.linux-x86_64-3.6/gi
copying gi/pygtkcompat.py -> build/lib.linux-x86_64-3.6/gi
copying gi/importer.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_constants.py -> build/lib.linux-x86_64-3.6/gi
copying gi/__init__.py -> build/lib.linux-x86_64-3.6/gi
copying gi/docstring.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_signalhelper.py -> build/lib.linux-x86_64-3.6/gi
copying gi/_propertyhelper.py -> build/lib.linux-x86_64-3.6/gi
creating build/lib.linux-x86_64-3.6/gi/repository
copying gi/repository/__init__.py -> build/lib.linux-x86_64-3.6/gi/repository
creating build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/GLib.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/GObject.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/GIMarshallingTests.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/Gio.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/Pango.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/Gtk.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/__init__.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/Gdk.py -> build/lib.linux-x86_64-3.6/gi/overrides
copying gi/overrides/keysyms.py -> build/lib.linux-x86_64-3.6/gi/overrides
running build_ext
pycairo: new API
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-kikh0jeu/pygobject/setup.py", line 840, in <module>
main()
File "/tmp/pip-install-kikh0jeu/pygobject/setup.py", line 835, in main
zip_safe=False,
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/anshulvj/IRS2-415-Python/venv/lib/python3.6/site-packages/setuptools-28.8.0-py3.6.egg/setuptools/command/install.py", line 61, in run
File "/usr/lib/python3.6/distutils/command/install.py", line 589, in run
self.run_command('build')
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/pip-install-kikh0jeu/pygobject/setup.py", line 684, in run
self._setup_extensions()
File "/tmp/pip-install-kikh0jeu/pygobject/setup.py", line 680, in _setup_extensions
add_pycairo(gi_cairo_ext)
File "/tmp/pip-install-kikh0jeu/pygobject/setup.py", line 665, in add_pycairo
ext.include_dirs += [get_pycairo_include_dir()]
File "/tmp/pip-install-kikh0jeu/pygobject/setup.py", line 582, in get_pycairo_include_dir
include_dir = find_path(find_new_api())
File "/tmp/pip-install-kikh0jeu/pygobject/setup.py", line 532, in find_new_api
import cairo
File "/home/anshulvj/IRS2-415-Python/venv/lib/python3.6/site-packages/cairo/__init__.py", line 1, in <module>
from ._cairo import * # noqa: F401,F403
ImportError: /home/anshulvj/IRS2-415-Python/venv/lib/python3.6/site-packages/cairo/_cairo.cpython-36m-x86_64-linux-gnu.so: undefined symbol: cairo_tee_surface_index
----------------------------------------
Command "/home/anshulvj/IRS2-415-Python/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-kikh0jeu/pygobject/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-6r4kbumk/install-record.txt --single-version-externally-managed --compile --install-headers /home/anshulvj/IRS2-415-Python/venv/include/site/python3.6/pygobject" failed with error code 1 in /tmp/pip-install-kikh0jeu/pygobject/
Could not find much about
ImportError: /home/anshulvj/IRS2-415-Python/venv/lib/python3.6/site-packages/cairo/_cairo.cpython-36m-x86_64-linux-gnu.so: undefined symbol: cairo_tee_surface_index
online. Any help is appreciated.

Related

Using Eclipse CDT with the Firefox Nightly code

I downloaded Mozilla-central and built it. I am able to run Firefox Nightly using ./mach run.
Now I am following the instructions of MDN on how to use Eclipse CDT with Mozilla code.
I downloaded Eclipse CDT on my mac and installed it. When I execute the following command:
./mach build-backend -b CppEclipse
It raises an exception saying: Failed to launch eclipse to import project. Ensure 'eclipse' is in your PATH and try again
I tried to add the eclipse's directory (Applications/Eclipse.app) to my PATH environment variable but I still get the same error.
Here is the complete trace:
0:00.46
/Users/****/src/mozilla-central/obj-ff-dbg/_virtualenvs/init/bin/python
/Users/****/src/mozilla-central/obj-ff-dbg/config.status --backend
CppEclipse Reticulating splines... 0:02.99 File already read.
Skipping:
/Users/****/src/mozilla-central/gfx/angle/targets/angle_common/moz.build
Traceback (most recent call last): File
"/Users/****/src/mozilla-central/obj-ff-dbg/config.status", line 1022,
in
config_status(**args) File "/Users/****/src/mozilla-central/python/mozbuild/mozbuild/config_status.py",
line 146, in config_status
the_backend.consume(definitions) File "/Users/****/src/mozilla-central/python/mozbuild/mozbuild/backend/base.py",
line 143, in consume
self.consume_finished() File "/Users/****/src/mozilla-central/python/mozbuild/mozbuild/backend/cpp_eclipse.py",
line 158, in consume_finished
self._import_project() File "/Users/****/src/mozilla-central/python/mozbuild/mozbuild/backend/cpp_eclipse.py",
line 181, in _import_project
raise Exception("Failed to launch eclipse to import project. " Exception: Failed to launch eclipse to import project. Ensure
'eclipse' is in your PATH and try again
Also, using the command:
./mach ide eclipse
I again get the same message:
Eclipse CDT 8.4 or later must be installed in your PATH. Download:
http://www.eclipse.org/cdt/downloads.php
How can I resolve this issue?
I just need to open Firefox nightly in Eclipse to be able to get the call-graph and navigate through its source code.
Run Eclipse first, then:
1- Command:
ps -ef |grep -i ecli
Output:
501 6410 1 0 2:57pm ?? 0:44.98 /Applications/Eclipse
CPP.app/Contents/MacOS/eclipse 501 6428 6365 0 2:57pm ttys001
0:00.00 grep -i ecli
2- Add the binary to the path:
export PATH=/Applications/Eclipse\ CPP.app/Contents/MacOS/:$PATH
3- Test it:
which eclipse

Light Service Framework Fails to build if original readme followed

If we follow original readme for building LSF, its keep failing at the first step.
As soon as I run "scons" I get:
scons: Reading SConscript files ... Checking c++ compiler support for
-std=c++11 flag... yes Using OpenSSL crypto GTEST_DIR not specified skipping common unit test build GTEST_DIR not specified skipping About
Service unit test build GTEST_DIR not specified skipping alljoyn_core
unit test build
scons: warning: Ignoring missing SConscript
'/home/dms/lighting_alljoyn_poligon/base/config/cpp/SConscript' File
"/home/dms/lighting_alljoyn_poligon/core/service_framework/SConscript",
line 28, in GTEST_DIR not specified skipping LSF unit test
build
scons: warning: Ignoring missing SConscript
'/home/dms/lighting_alljoyn_poligon/core/ajtcl/SConscript' File
"/home/dms/lighting_alljoyn_poligon/core/service_framework/SConscript",
line 164, in AttributeError: 'NoneType' object has no
attribute 'Append': File
"/home/dms/lighting_alljoyn_poligon/core/service_framework/SConstruct",
line 5: env.SConscript('SConscript') File
"/usr/lib/scons/SCons/Script/SConscript.py", line 546: return
_SConscript(self.fs, *files, **subst_kw) File "/usr/lib/scons/SCons/Script/SConscript.py", line 260: exec file
in call_stack[-1].globals File
"/home/dms/lighting_alljoyn_poligon/core/service_framework/SConscript",
line 166: lamp_service_env.Append(LIBPATH = [
lamp_service_env.Dir('../ajtcl') ])
The warnings can be ignored, but at the bottom the append related issues are causing the stop of building process.
By the way I have built alljoyn framework including base services and it works perfect.
Any hint is welcomed!
The problem was in the structure of the files.
The original SConsript file of LSF tries to access ../../base_tcl folder, but the base_tcl folder was located under services/ folder.
I have tried two solutions and both worked:
1. Either you change the path to the base_tcl folder in the SConscript
2. Or the folder base_tcl can moved to the proper path
I think this issue was caused because of version problem. The difference between 15.04 and 15.09

Workaround for dependency on a package with a dash in its name

In one of my setuptools-based Python projects I would like to add a dependency to numpy-stl. That package is on PyPI and depends on numpy. Due to a bug, setuptools is unable to install packages with dashes in their names in some circumstances.
This is a minimal setup.py which reproduces the problem:
import setuptools
setuptools.setup(
install_requires=['numpy-stl'])
Running python setup.py develop produces the following output:
running install
running bdist_egg
running egg_info
writing UNKNOWN.egg-info/PKG-INFO
writing top-level names to UNKNOWN.egg-info/top_level.txt
writing dependency_links to UNKNOWN.egg-info/dependency_links.txt
writing requirements to UNKNOWN.egg-info/requires.txt
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-x86_64/egg
running install_lib
warning: install_lib: 'build/lib' does not exist -- no Python modules to install
creating build/bdist.macosx-10.9-x86_64/egg
creating build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying UNKNOWN.egg-info/PKG-INFO -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying UNKNOWN.egg-info/SOURCES.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying UNKNOWN.egg-info/dependency_links.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying UNKNOWN.egg-info/requires.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying UNKNOWN.egg-info/top_level.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/UNKNOWN-0.0.0-py3.5.egg' and adding 'build/bdist.macosx-10.9-x86_64/egg' to it
removing 'build/bdist.macosx-10.9-x86_64/egg' (and everything under it)
Processing UNKNOWN-0.0.0-py3.5.egg
Copying UNKNOWN-0.0.0-py3.5.egg to /Users/michi/Desktop/STL_Plot/stl_plot/venv/lib/python3.5/site-packages
Adding UNKNOWN 0.0.0 to easy-install.pth file
Installed /Users/michi/Desktop/STL_Plot/stl_plot/venv/lib/python3.5/site-packages/UNKNOWN-0.0.0-py3.5.egg
Processing dependencies for UNKNOWN==0.0.0
Searching for numpy-stl
Reading https://pypi.python.org/simple/numpy-stl/
[... installing numpy-stl and some of its dependencies ...]
Installed /Users/michi/Desktop/STL_Plot/stl_plot/venv/lib/python3.5/site-packages/nine-0.3.4-py3.5.egg
Searching for numpy
Best match: numpy stl-1.7.1
Downloading https://pypi.python.org/packages/source/n/numpy-stl/numpy-stl-1.7.1.tar.gz#md5=fa3a9324418b72a6827f266671198fe1
Processing numpy-stl-1.7.1.tar.gz
Writing /var/folders/r3/lpx2z49s5hs8mmh3vzrgxd9c0000gs/T/easy_install-yvi_spnk/numpy-stl-1.7.1/setup.cfg
Running numpy-stl-1.7.1/setup.py -q bdist_egg --dist-dir /var/folders/r3/lpx2z49s5hs8mmh3vzrgxd9c0000gs/T/easy_install-yvi_spnk/numpy-stl-1.7.1/egg-dist-tmp-72gff1lq
File "build/bdist.macosx-10.9-x86_64/egg/stl2/stl.py", line 41
except RuntimeError, (recoverable, e):
^
SyntaxError: invalid syntax
zip_safe flag not set; analyzing archive contents...
tests.__pycache__.test_convert.cpython-35: module references __file__
removing '/Users/michi/Desktop/STL_Plot/stl_plot/venv/lib/python3.5/site-packages/numpy_stl-1.7.1-py3.5.egg' (and everything under it)
creating /Users/michi/Desktop/STL_Plot/stl_plot/venv/lib/python3.5/site-packages/numpy_stl-1.7.1-py3.5.egg
Extracting numpy_stl-1.7.1-py3.5.egg to /Users/michi/Desktop/STL_Plot/stl_plot/venv/lib/python3.5/site-packages
File "/Users/michi/Desktop/STL_Plot/stl_plot/venv/lib/python3.5/site-packages/numpy_stl-1.7.1-py3.5.egg/stl2/stl.py", line 41
except RuntimeError, (recoverable, e):
^
SyntaxError: invalid syntax
numpy-stl 1.7.1 is already the active version in easy-install.pth
Installing stl2ascii script to /Users/michi/Desktop/STL_Plot/stl_plot/venv/bin
Installing stl2bin script to /Users/michi/Desktop/STL_Plot/stl_plot/venv/bin
Installing stl script to /Users/michi/Desktop/STL_Plot/stl_plot/venv/bin
Installed /Users/michi/Desktop/STL_Plot/stl_plot/venv/lib/python3.5/site-packages/numpy_stl-1.7.1-py3.5.egg
error: The 'numpy' distribution was not found and is required by numpy-stl
(venv)michi ~/.../STL_Plot/stl_plot$
After installing nine, setuptools tries to find a numpy distribution and finds numpy-stl, thinking its the package numpy in version stl and installs numpy-stl again. In the end it detects that numpy is still not installed and gives up.
Is this just the way it is, that setuptools projects cannot depend on packages with dashes in their names, which is about 1/4 of the packages on PyPI? Or is there a workaround which allows setuptools to install such dependencies?

Can't run Celery with Jython 2.7.0 - no module named multiprocessing

The celery documentation states that I should be able to run it with Jython. Unfortunately I just can't get it to work. Here's the error that I get when I try to run it:
Traceback (most recent call last):
File "/home/linoor/jython2.7.0/bin/celery", line 11, in
sys.exit(main())
File "/home/linoor/jython2.7.0/Lib/site-packages/celery/__main__.py", line 29, in main
from celery.bin.celery import main
File "/home/linoor/jython2.7.0/Lib/site-packages/celery/bin/__init__.py", line 3, in
from .base import Option
File "/home/linoor/jython2.7.0/Lib/site-packages/celery/bin/base.py", line 86, in
from celery import VERSION_BANNER, Celery, maybe_patch_concurrency
File "/home/linoor/jython2.7.0/Lib/site-packages/celery/five.py", line 307, in __getattr__
module = __import__(self._object_origins[name], None, None, [name])
File "/home/linoor/jython2.7.0/Lib/site-packages/celery/app/__init__.py", line 14, in
from celery import _state
File "/home/linoor/jython2.7.0/Lib/site-packages/celery/_state.py", line 20, in
from celery.utils.threads import LocalStack
File "/home/linoor/jython2.7.0/Lib/site-packages/celery/utils/__init__.py", line 27, in
from celery.exceptions import CPendingDeprecationWarning, CDeprecationWarning
File "/home/linoor/jython2.7.0/Lib/site-packages/celery/exceptions.py", line 15, in
from billiard.exceptions import ( # noqa
File "/home/linoor/jython2.7.0/Lib/site-packages/billiard/__init__.py", line 60, in
from .process import Process, current_process, active_children
File "/home/linoor/jython2.7.0/Lib/site-packages/billiard/process.py", line 25, in
from multiprocessing import process as _mproc
ImportError: No module named multiprocessing
So I tried installing multiprocessing, but then this happened:
Downloading/unpacking multiprocessing
Downloading multiprocessing-2.6.2.1.tar.gz (108kB): 108kB downloaded
Running setup.py (path:/tmp/pip_build_linoor/multiprocessing/setup.py) egg_info for package multiprocessing
Installing collected packages: multiprocessing
Running setup.py install for multiprocessing
building 'multiprocessing._multiprocessing' extension
error: Compiling extensions is not supported on Jython
Complete output from command /home/linoor/jython2.7.0/bin/jython -c "import setuptools, tokenize;__file__='/tmp/pip_build_linoor/multiprocessing/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-EnQW3c-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.java1.7.0_79-2.7
creating build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/queues.py -> build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/tests.py -> build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/sharedctypes.py -> build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/synchronize.py -> build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/heap.py -> build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/pool.py -> build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/connection.py -> build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/__init__.py -> build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/util.py -> build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/process.py -> build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/reduction.py -> build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/managers.py -> build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/forking.py -> build/lib.java1.7.0_79-2.7/multiprocessing
copying Lib/multiprocessing/patch.py -> build/lib.java1.7.0_79-2.7/multiprocessing
creating build/lib.java1.7.0_79-2.7/multiprocessing/dummy
copying Lib/multiprocessing/dummy/connection.py -> build/lib.java1.7.0_79-2.7/multiprocessing/dummy
copying Lib/multiprocessing/dummy/__init__.py -> build/lib.java1.7.0_79-2.7/multiprocessing/dummy
creating build/lib.java1.7.0_79-2.7/multiprocessing/examples
copying Doc/includes/mp_benchmarks.py -> build/lib.java1.7.0_79-2.7/multiprocessing/examples
copying Doc/includes/mp_synchronize.py -> build/lib.java1.7.0_79-2.7/multiprocessing/examples
copying Doc/includes/mp_workers.py -> build/lib.java1.7.0_79-2.7/multiprocessing/examples
copying Doc/includes/__init__.py -> build/lib.java1.7.0_79-2.7/multiprocessing/examples
copying Doc/includes/mp_newtype.py -> build/lib.java1.7.0_79-2.7/multiprocessing/examples
copying Doc/includes/mp_distributing.py -> build/lib.java1.7.0_79-2.7/multiprocessing/examples
copying Doc/includes/mp_webserver.py -> build/lib.java1.7.0_79-2.7/multiprocessing/examples
copying Doc/includes/mp_pool.py -> build/lib.java1.7.0_79-2.7/multiprocessing/examples
running build_ext
building 'multiprocessing._multiprocessing' extension
error: Compiling extensions is not supported on Jython
From what I read it's not possible to use the package multiprocessing in Jython because it requires C extensions (link to SO question).
So is it at all possible to run celery with Jython after all?
Thanks!
There is a discussion here: https://github.com/celery/celery/issues/96 about running celery on jython using threads instead of multiprocessing

I am trying to install pygraphviz but received the following error

I am trying to install pygraphviz, I tried to do so with the following command but unfortunately it is not working. Can anyone help how to fix it?
C:\Python27\Lib\site-packages\pygraphviz-1.2>python setup.py build -c mingw32
library_path=c:\Program Files (x86)\Graphviz 2.28\bin
include_path=c:\Program Files (x86)\Graphviz 2.28\include\graphviz
running build
running build_py
creating build
creating build\lib.win32-2.7
creating build\lib.win32-2.7\pygraphviz
copying pygraphviz\agraph.py -> build\lib.win32-2.7\pygraphviz
copying pygraphviz\graphviz.py -> build\lib.win32-2.7\pygraphviz
copying pygraphviz\release.py -> build\lib.win32-2.7\pygraphviz
copying pygraphviz\version.py -> build\lib.win32-2.7\pygraphviz
copying pygraphviz\__init__.py -> build\lib.win32-2.7\pygraphviz
creating build\lib.win32-2.7\pygraphviz\tests
copying pygraphviz\tests\test.py -> build\lib.win32-2.7\pygraphviz\tests
copying pygraphviz\tests\__init__.py -> build\lib.win32-2.7\pygraphviz\tests
copying pygraphviz\tests\attributes.txt -> build\lib.win32-2.7\pygraphviz\test
copying pygraphviz\tests\graph.txt -> build\lib.win32-2.7\pygraphviz\tests
copying pygraphviz\tests\layout_draw.txt -> build\lib.win32-2.7\pygraphviz\tes
copying pygraphviz\tests\unicode.txt -> build\lib.win32-2.7\pygraphviz\tests
running build_ext
building 'pygraphviz._graphviz' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\pygraphviz
gcc -mno-cygwin -mdll -O -Wall "-Ic:\Program Files (x86)\Graphviz 2.28\include
raphviz" -Ic:\python27\include -Ic:\python27\PC -c pygraphviz/graphviz_wrap.c
build\temp.win32-2.7\Release\pygraphviz\graphviz_wrap.o
error: command 'gcc' failed: No such file or directory
Missing gcc C compiler? There are some tips for compiling PyGraphviz with Windows at Installing PygraphViz on Windows, Python 2.6