You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I created a python package containing a pybind11 module and added an version attribute.
`PYBIND11_MODULE(NAME, m) {
m.attr("version") = VERSION_STR;
}`
my
__init__.py
is:is:
from . import *
when I import the package I use
from <package-name> import *
Then I try
__version__
and get
module ... has no attribute '__version__'
If I use
from <package-name> import __version__
than I can read the
__version__
string.any reason why import * will not import pybind11.attr ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions