Uploaded image for project: 'SPI'
  1. SPI
  2. SPI-969

multiprocessing python module from pytools incompatible with python 2.7 ?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: High
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None
    • Environment:

      SLC6, Python 2.7

    • Customer:
    • Platforms:
      x86_64-slc6-gcc48-opt
    • Development:

      Description

      {{Hi,

      The multiprocessor python found in pytools looks incompatible with that provided by python 27. (this is true also for LCG_88).

      e.g.:

      lcgenv -p LCG_88 x86_64-slc6-gcc49-opt pytools
      > python
      Python 2.7.13 (default, Mar 15 2017, 12:07:52)
      [GCC 4.9.3] on linux2
      Type "help", "copyright", "credits" or "license" for more information.
      >>> from multiprocessing import Pool
      >>> x = Pool(maxtasksperchild=1)
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      TypeError: Pool() got an unexpected keyword argument 'maxtasksperchild'
      >>> import imp
      >>> imp.find_module('multiprocessing')
      (None, '/cvmfs/sft.cern.ch/lcg/releases/LCG_88/multiprocessing/2.6.2.1/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/multiprocessing', ('', '', 5))
      >>>

      but if we do not set up pytools:

      lcgenv -p LCG_88 x86_64-slc6-gcc49-opt Python
      > python
      Python 2.7.13 (default, Mar 15 2017, 12:07:52)
      [GCC 4.9.3] on linux2
      Type "help", "copyright", "credits" or "license" for more information.
      >>> from multiprocessing import Pool
      >>> x = Pool(maxtasksperchild=1)
      >>>
      >>> import imp
      >>> imp.find_module('multiprocessing')
      (None, '/cvmfs/sft.cern.ch/lcg/releases/LCG_88/Python/2.7.13/x86_64-slc6-gcc49-opt/lib/python2.7/multiprocessing', ('', '', 5))
      >>>

      regards,
      Asoka}}

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            desilva Asoka De Silva
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              PlannedEnd:
              Actual Start:
              Actual End: