Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#14290 closed defect (fixed)

textproc/meld 1.1.4 build errors

Reported by: tim.schaub@… Owned by: mmw@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: multi-python installation Cc: jan.matousek@…, landonf (Landon Fuller)
Port: meld, py-gtk2

Description

I installed MacPorts without trouble, then tried to install the meld port (no other ports installed). This yielded too many errors to report here. After each failure, I ran "port install meld" again and got a bit farther. Messages about conflicting libraries encouraged me to try "port install -f meld". After three forced attempts, the install completed. Apologies for not preserving any of the details - this occurred over several days of attempts.

The end result is that meld appears to be installed, but it doesn't find the required version of py-gtk.

mac$ port search py-gtk2
py-gtk2                        python/py-gtk2 2.12.1       PyGTK is the Python binding to GTK+ 2.x
mac$ sudo port instal pygtk2
Skipping org.macports.activate (py-gtk2 +darwin_9) since this port is already active
--->  Cleaning py-gtk2
mac$ sudo port instal meld
Skipping org.macports.activate (meld ) since this port is already active
--->  Cleaning meld
mac$ meld
No module named pygtk
Meld requires pygtk2.6.0 or higher.

I'll happily provide whatever info is relevant.

This on Mac OS X 10.5.1 using MacPorts 1.6.0.

Attachments (1)

meld-python25.diff (543 bytes) - added by jmroot (Joshua Root) 16 years ago.

Download all attachments as: .zip

Change History (21)

comment:1 Changed 17 years ago by stefan.janecek@…

I am also seeing this. after setting

export PYTHONPATH=/opt/local/lib/python2.5/site-packages:$PYTHONPATH

it seems to find pygtk, but is missing gconf:

$ meld
Traceback (most recent call last):
  File "/opt/local/bin/meld", line 93, in <module>
    import meldapp
  File "/opt/local/lib/meld/meldapp.py", line 28, in <module>
    import prefs
  File "/opt/local/lib/meld/prefs.py", line 52, in <module>
    import gconf
ImportError: No module named gconf

gconf is installed, but the gconf port doesn't seem to contain python bindings. I am unable to find something like a py-gonf port.

Any ideas?

comment:2 Changed 17 years ago by stefan.janecek@…

Small update:

$ find /opt/local/ -name 'gconf.py'

doesn't give any results on my machine. I am using OS X and a fresh install of MacPorts 1.600.

comment:3 Changed 17 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to landonf@…

Assigning to maintainer.

comment:4 Changed 17 years ago by jan.matousek@…

Cc: jan.matousek@… added

Cc Me!

comment:5 in reply to:  4 Changed 16 years ago by martin@…

Replying to jan.matousek@gmail.com:

Cc Me!

comment:6 Changed 16 years ago by mmw@…

Owner: changed from landonf@… to mmw@…
Status: newassigned

comment:7 Changed 16 years ago by mmw@…

Keywords: multi-python installation added

ok, this bug is well identified, sorry for the delay, I got some trouble to sync my port this week-end, but today it seems to be fine, I will also post an additional comment about some dependencies that failed (rerun needed), I will also need of report from users running a non-leopard system

comment:8 Changed 16 years ago by blb@…

FYI I filed #15967 to update meld to 1.2 and use python 2.5.

comment:9 Changed 16 years ago by mmw@…

yep thanks I noticed, here my roadmap

/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py:247: UserWarning: 'licence' distribution option is deprecated; use 'license'

warnings.warn(msg)

Found 1579 functions in libxml2-api.xml Found 53 functions in libxml2-python-api.xml Generated 873 wrapper functions, 547 failed, 212 skipped

Missing type converters: xmlRelaxNGValidityErrorFunc *:2 xmlXPathObjectPtr:22 const htmlEntityDesc *:2 xmlOutputMatchCallback:1 xmlElementContentPtr *:1 xmlStructuredErrorFunc:3 xmlSchematronValidCtxtPtr:2 xmlParserInputBufferCreateFilenameFunc:2 xmlSchemaValType:2 size_t:1 xmlEnumerationPtr:5 xmlSchemaWildcardPtr:1 xmlXIncludeCtxtPtr:4 xmlRelaxNGValidityErrorFunc:2 xmlSAXHandler *:4 ...:1 xmlShellReadlineFunc:1 xmlDict *:1 xmlAutomataPtr:19 xmlParserInputPtr:17 xmlCatalogAllow:2 xmlExpNodePtr:3 xmlElementContent *:1 xmlCharEncodingOutputFunc:1 xmlDictPtr:10 xmlTextWriterPtr:77 const htmlElemDesc *:1 xmlIDPtr:1 xmlSchemaValPtr:13 xmlInputMatchCallback:1 xmlElementTablePtr:2 xmlChar :15 xmlXPathCompExprPtr:5 xmlTextReaderErrorFunc:1 xmlExternalEntityLoader:2 xmlNotationTablePtr:2 xmlXPathVariableLookupFunc:1 xmlParserNodeInfoPtr:1 xmlExpCtxtPtr:14 xmlPatternPtr:8 xmlC14NIsVisibleCallback:1 xmlDeregisterNodeFunc:2 va_list:1 xmlSchemaTypePtr:9 htmlStatus:1 xmlRegisterNodeFunc:2 xmlAttributeType:2 xmlRefPtr:1 xmlCharEncodingHandler *:4 xmlNotationPtr:3 xmlSaveCtxtPtr:8 xmlRegExecCallbacks:1 xmlNsPtr *:1 xmlLocationSetPtr:6 xmlSchemaSAXPlugPtr:1 xmlModulePtr:4 xmlEnumerationPtr *:2 xmlShellCtxtPtr:10 xlinkNodeDetectFunc:2 xmlRefTablePtr:1 xmlStreamCtxtPtr:4 xmlSchemaValidityErrorFunc *:2 xmlChRangeGroupPtr:1 xmlAttributeTablePtr:2 xmlSchematronParserCtxtPtr:5 xmlCatalogPrefer:1 xmlParserNodeInfoSeqPtr:3 xmlSchematronPtr:2 xmlNodePtr *:2 xmlInputReadCallback:7 char :5 xmlCharEncoding:13 xmlRegExecCtxtPtr:5 xmlElementContentType:2 void *:85 xmlTextReaderErrorFunc *:1 xmlSAXHandlerPtr *:1 xmlEntityReferenceFunc:1 xmlDocPtr *:1 xmlBufferAllocationScheme:3 xmlSchemaValidityErrorFunc:2 xmlDOMWrapCtxtPtr:5 xmlOutputWriteCallback:2 xmlSchemaFacetPtr:7 xlinkHandlerPtr:2 xmlXPathFuncLookupFunc:1 htmlElemDesc *:3 xmlCharEncodingHandlerPtr:7 xmlCharEncodingInputFunc:1 xmlFeature:1 const xmlParserNodeInfo *:1 xmlNodeSetPtr:32 xmlEntitiesTablePtr:3 xmlIDTablePtr:1 xmlXPathFunction:4 xmlOutputBufferCreateFilenameFunc:2 xmlElementContentPtr:8 xmlElementTypeVal:1 xlinkType:1 xmlGenericErrorFunc *:1 running build running build_py creating build creating build/lib.macosx-10.3-i386-2.5 copying libxml2.py -> build/lib.macosx-10.3-i386-2.5 copying drv_libxml2.py -> build/lib.macosx-10.3-i386-2.5 running build_ext building 'libxml2mod' extension creating build/temp.macosx-10.3-i386-2.5 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_REENTRANT=1 -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c libxml2-py.c -o build/temp.macosx-10.3-i386-2.5/libxml2-py.o unable to execute -DNDEBUG: No such file or directory error: command '-DNDEBUG' failed with exit status 1

---> Staging p5-getopt-long into destroot You must install or activate this package with '-f' (force) as it needs to overwrite files installed by the perl5.8 port ---> Installing p5-getopt-long 2.37_0 ---> Activating p5-getopt-long 2.37_0 Error: Target org.macports.activate returned: Image error: /opt/local/lib/perl5/5.8.8/Getopt/Long.pm is being used by the active perl5.8 port. Please deactivate this port first, or use the -f flag to force the activation.


---> Configuring py25-numpy ---> Building py25-numpy with target build Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-numpy/work/numpy-1.1.0" && /opt/local/bin/python2.5 setup.py build " returned error 1 Command output: Running from numpy source directory. non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2_5237 blas_opt_info:

FOUND:

extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)] extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']

lapack_opt_info:

FOUND:

extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)] extra_compile_args = -msse3?

running build running scons customize UnixCCompiler Could not locate executable -DNDEBUG error: Could not find compiler executable info for scons


---> Building metacity with target all ...

i686-apple-darwin9-gcc-4.0.1: /usr/X11/lib/libXdamage.1.1.0.dylib: No such file or directory make[4]: * [wm-tester] Error 1 make[3]: * [all-recursive] Error 1 make[2]: * [all] Error 2 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

nasty

sudo ln -s libXdamage.1.dylib libXdamage.1.1.0.dylib


---> Activating py-cairo 1.4.12_2+darwin_9 Error: Target org.macports.activate returned: Image error: /opt/local/include/pycairo/pycairo.h is being used by the active py25-cairo port. Please deactivate this port first, or use the -f flag to force the activation. Error: The following dependencies failed to build: py-gnome py-gtk2 py-cairo py-gobject py-orbit Error: Status 1 encountered during processing.


---> Activating py-gobject 2.14.1_0+darwin_9 Error: Target org.macports.activate returned: Image error: /opt/local/include/pygtk-2.0/pygobject.h is being used by the active py25-gobject port. Please deactivate this port first, or use the -f flag to force the activation. Error: The following dependencies failed to build: py-gnome py-gtk2 py-gobject py-orbit Error: Status 1 encountered during processing.


---> Fetching py-gtk2 ---> Attempting to fetch pygtk-2.12.1.tar.bz2 from http://mandril.creatis.insa-lyon.fr/linux/gnome.org/sources/pygtk/2.12/ ---> Verifying checksum(s) for py-gtk2 ---> Extracting py-gtk2 ---> Configuring py-gtk2 ---> Building py-gtk2 with target all ---> Staging py-gtk2 into destroot ---> Installing py-gtk2 2.12.1_0+darwin_9 ---> Activating py-gtk2 2.12.1_0+darwin_9 Error: Target org.macports.activate returned: Image error: /opt/local/bin/pygtk-codegen-2.0 is being used by the active py25-gtk port. Please deactivate this port first, or use the -f flag to force the activation. Error: The following dependencies failed to build: py-gnome py-gtk2 py-orbit


--> Activating py-gnome 2.18.2_0 Error: Target org.macports.activate returned: Image error: /opt/local/include/gnome-python-2.0/pygnomevfs.h is being used by the active py25-gnome port. Please deactivate this port first, or use the -f flag to force the activation. Error: The following dependencies failed to build: py-gnome Error: Status 1 encountered during processing.


---> Building meld with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_meld/work/meld-1.1.4" && make all " returned error 2 Command output: make -C po make[1]: Nothing to be done for `all'. make -C help for lang in C; do \

make -C $lang all ; \

done

scrollkeeper-preinstall meld-C.omf meld-C.omf.install ERROR: Cannot parse meld-C.omf.install. Is it valid? make[2]: * [all] Error 2 make[1]: * [all] Error 2 make: * [all] Error 2

Error: Status 1 encountered during processing.

.PHONY : all all $(OMF_NAME).install : $(OMF_NAME)

scrollkeeper-preinstall $(INST_XML) $(OMF_NAME)

# comment #$(OMF_NAME).install

and hop

/opt/local/bin/python2.5 /opt/local/bin/meld &

meld -> #! /usr/bin/env python

to

#! /opt/local/bin/python2.5

comment:10 Changed 16 years ago by nox@…

Seems related to #13452.

comment:11 Changed 16 years ago by nox@…

Keywords: meld py-gtk2 removed
Port: meld py-gtk2 added

comment:12 in reply to:  description Changed 16 years ago by me@…

Same error trying to run TermRoom: http://code.google.com/p/termroom/ -- 22:46:56 reed@epee:~/Downloads$ ./termroom.py vim Traceback (most recent call last):

File "./termroom.py", line 19, in <module>

import gconf

ImportError: No module named gconf --

Any status on getting this fixed?

comment:13 Changed 16 years ago by mmw@…

Resolution: fixed
Status: assignedclosed

to fix this the only way is to run the interpreter you want,

there is no fix against this except the ability to think and decide

/opt/local/bin/python termroom.py

comment:14 Changed 16 years ago by mmw@…

multi-python install is really not a good idea, I think a meeting is needed between every python-related port maintainers, the best way to fix this is to talk

-mmw

Changed 16 years ago by jmroot (Joshua Root)

Attachment: meld-python25.diff added

comment:15 Changed 16 years ago by jmroot (Joshua Root)

Cc: landonf@… added
Resolution: fixed
Status: closedreopened

Shouldn't the patch I've just attached fix this?

comment:16 in reply to:  15 Changed 16 years ago by mmw@…

Replying to jmr@…:

Shouldn't the patch I've just attached fix this?

reinplace "s|#! /usr/bin/env python|#! ${prefix}/bin/python2.5|" ${worksrcpath}/meld

Hi Landon,

yep in a certain way yes but it makes your pkg python2.5 dependent, and you have to register it as well for instance, if the user decides to update to 2.6 and meld stays compatible with 2.6 and decide to remove 2.5...

I think we have to find a rule on this, and be more didactic in the wiki, William (for other reasons) was upset about some user requests (loop) about some other forge related projects, this is the same problem we need to communication, as you also noticed a bunch of ports are somehow broken, maybe it's time to audit per platform

py25-meld

#!/usr/bin/sh ${prefix}/bin/python2.5 meld $@

py26-meld

#!/usr/bin/sh ${prefix}/bin/python2.6 meld $@

comment:17 Changed 16 years ago by jmroot (Joshua Root)

I'm not landonf, I just thought he should be CC'd as he's the maintainer. :-)

Meld is already dependent on python 2.5 since it depends on py25-gnome and py25-gtk.

comment:18 in reply to:  17 Changed 16 years ago by mmw@…

Replying to jmr@…:

I'm not landonf, I just thought he should be CC'd as he's the maintainer. :-)

Meld is already dependent on python 2.5 since it depends on py25-gnome and py25-gtk.

Sorry :), it doesn't change my previous comment it should be great to organize some virtual meetings, and create working groups, there 's a serious work to do especially before py-gtk, it should be good to resolve some issues with GTK and Gnome.

Cheers!

-mmw

comment:19 Changed 16 years ago by blb@…

Resolution: fixed
Status: reopenedclosed

jmr's patch applied in r48024 (maintainer timeout).

As far as a more general improvement for python and modules, that would be #16723.

comment:20 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.