Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edmPythonConfigToCppValidation does not support Services #18425

Closed
fwyzard opened this issue Apr 20, 2017 · 9 comments
Closed

edmPythonConfigToCppValidation does not support Services #18425

fwyzard opened this issue Apr 20, 2017 · 9 comments

Comments

@fwyzard
Copy link
Contributor

fwyzard commented Apr 20, 2017

running edmPythonConfigToCppValidation over this file FastTimerService_cfi.py

import FWCore.ParameterSet.Config as cms

FastTimerService = cms.Service( "FastTimerService",
    printEventSummary = cms.untracked.bool(True),
    highlightModules  = cms.untracked.VPSet(
        cms.PSet(
            label   = cms.untracked.string('filters'),
            modules = cms.untracked.vstring('sampleFilter', 'sampleFilterMany')
        )
    )
)

results in

Traceback (most recent call last):
  File "/cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_9_0_0/bin/slc7_amd64_gcc630/edmPythonConfigToCppValidation", line 250, in <module>
    raise RuntimeError("No module found in file '"+filename+"'")
RuntimeError: No module found in file 'FastTimerService_cfi.py'

A workaround is simply to change cms.Service to cms.EDProducer.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 20, 2017

A new Issue was created by @fwyzard Andrea Bocci.

@davidlange6, @Dr15Jones, @smuzaffar can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor

assign core

@cmsbuild
Copy link
Contributor

New categories assigned: core

@Dr15Jones,@smuzaffar you have been requested to review this Pull request/Issue and eventually sign? Thanks

@kpedro88
Copy link
Contributor

@Dr15Jones could we just change this line?

if isinstance(config[item], _Module):

to

if isinstance(config[item], _TypedParameterizable):

@Dr15Jones
Copy link
Contributor

You can go ahead and make the pull request.

@kpedro88
Copy link
Contributor

see #19885

@kpedro88
Copy link
Contributor

@Dr15Jones I think this can be closed now

@Dr15Jones
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

This issue is fully signed and ready to be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants