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

Weird names in dir(podio) #512

Closed
jmcarcell opened this issue Nov 6, 2023 · 1 comment
Closed

Weird names in dir(podio) #512

jmcarcell opened this issue Nov 6, 2023 · 1 comment

Comments

@jmcarcell
Copy link
Member

jmcarcell commented Nov 6, 2023

Both locally and with the stacks I get the following:

>>> dir(podio)
['Backend',
...
 'GenericParameter',
 'GenericParameters',
...
 'versio']

and then with either GenericParameter or versio:

>>> podio.GenericParameter

AttributeError: <namespace cppyy.gbl.podio at 0x540d300> has no attribute 'GenericParameter'. Full details:
  type object 'podio' has no attribute 'GenericParameter'
  'podio::GenericParameter' is not a known C++ class
  'GenericParameter' is not a known C++ template
  'GenericParameter' is not a known C++ enum

Those GenericParameter and versio when both GenericParameters and version exist feels like a bug to me. Doing podio.<TAB> will show these weird names and not version, for example. This already happens with from ROOT import podio.

@jmcarcell
Copy link
Member Author

jmcarcell commented Nov 21, 2023

It doesn't this is happening anymore after #511:

>>> dir(podio)

['EventStore',
 'Frame',
 '__all__',
 '__builtins__',
 '__cached__',
 '__doc__',
 '__file__',
 '__loader__',
 '__name__',
 '__package__',
 '__path__',
 '__spec__',
 '__version__',
 'base_reader',
 'base_writer',
 'frame',
 'frame_iterator',
 'podio',
 'reading',
 'root_io',
 'sio_io']

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

No branches or pull requests

1 participant