Opened 16 years ago

Closed 15 years ago

#17667 closed defect (worksforme)

py25-libxml2 failed to build with ValueError

Reported by: vpribish@… Owned by: sfiera@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: hvrmeer@…, blb@…, simon@…
Port: py25-libxml2

Description

I've tried the usual tricks of cleaning and retrying but this error persists:

vpribish@wopr:~ $ sudo port clean --work py25-libxml2
--->  Cleaning py25-libxml2
vpribish@wopr:~ $ sudo port install py25-libxml2
--->  Fetching py25-libxml2
--->  Verifying checksum(s) for py25-libxml2
--->  Extracting py25-libxml2
--->  Applying patches to py25-libxml2
--->  Configuring py25-libxml2
--->  Building py25-libxml2
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-libxml2/work/libxml2-python-2.6.21" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xmllib.py:9: DeprecationWarning: The xmllib module is obsolete.  Use xml.sax instead.
  warnings.warn("The xmllib module is obsolete.  Use xml.sax instead.", DeprecationWarning)
/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py:248: 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 
Traceback (most recent call last):
  File "setup.py", line 208, in <module>
    data_files=data_files,
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py", line 125, in setup
    dist.parse_config_files()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 378, in parse_config_files
    filenames = self.find_config_files()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 339, in find_config_files
    check_environ()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/util.py", line 208, in check_environ
    os.environ['PLAT'] = get_platform()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/util.py", line 78, in get_platform
    cfgvars = get_config_vars()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/sysconfig.py", line 493, in get_config_vars
    func()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/sysconfig.py", line 375, in _init_posix
    elif map(int, cfg_target.split('.')) > map(int, cur_target.split('.')):
ValueError: invalid literal for int() with base 10: ''

Error: Status 1 encountered during processing.
vpribish@wopr:~ $

Change History (8)

comment:1 Changed 16 years ago by blb@…

This is the first of two tickets recently filed (next is #17668) with that error message

ValueError: invalid literal for int() with base 10: ''

I can't reproduce it here. What version of python25 do you have installed and do you have the python_select port installed with it set for python25?

port installed python25
ls -l /opt/local/bin/python

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

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

The 'clean and retry' workaround should no longer be needed as of MacPorts 1.7.0.

comment:3 Changed 16 years ago by blb@…

Cc: hvrmeer@… simon@… blb@… added

Cc reporter of dups #17668 and #18236.

comment:4 Changed 16 years ago by blb@…

What's interesting is that the section of distutils/sysconfig.py where this is occurring, is code that is processing MACOSX_DEPLOYMENT_TARGET. It's splitting MACOSX_DEPLOYMENT_TARGET on '.' so should be comparing, eg. 10 to 10 and 5 to 5. Instead it is failing to convert what it gets from the split to an integer, so it must not be seeing 10.5 in that.

cfg_target should be coming from ${prefix}/lib/python2.5/config/Makefile and cur_target from the environment (which is set by port). For anyone who is experiencing this issue, can you attach that Makefile to this ticket for review?

comment:5 Changed 16 years ago by simon@…

Cc: simon@… removed

Cc Me!

comment:6 Changed 16 years ago by simon@…

Cc: simon@… added

Cc Me!

comment:7 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:8 Changed 15 years ago by blb@…

Resolution: worksforme
Status: newclosed

Closing, lack of response.

Note: See TracTickets for help on using tickets.