__version__ = 'unknown'

I just installed bokeh from source but I’m getting the below error from my webserver:

import bokeh.plotting as plt
File “C:\dev\code\bokeh\bokeh_init_.py”, line 16, in
from .util.version import version; version
File “C:\dev\code\bokeh\bokeh\util\version.py”, line 36, in
base_version = base_version()
File “C:\dev\code\bokeh\bokeh\util\version.py”, line 34, in base_version
return VERSION_PAT.search(version).group(1)
AttributeError: ‘NoneType’ object has no attribute ‘group’

If I look at the error in the debugger I see that version is ‘unknown’.

Curiously, if I import in ipython it works fine:

In [1]: import bokeh

In [2]: import bokeh.plotting as plt

In [3]: bokeh.version

Out[3]: ‘0.12.0dev9-43-g560acd8’

I fixed it by just hard-coding version

Thanks,

Dave

Dave,

that's weird, can you report the value of

  In [3]: from bokeh._version import get_versions

  In [4]: get_versions()
  Out[4]:
  {'full': 'fa5151cf9e47adceac83942e0e32bccb4dcb35a2-dirty',
   'version': '0.12.0dev9-307-gfa5151c-dirty'}

Also what platform, etc? Is "git" on your path? dev environments try to use git (via versioneer) to report a "commit" version

Bryan

···

On May 26, 2016, at 2:25 AM, [email protected] wrote:

I just installed bokeh from source but I'm getting the below error from my webserver:

    import bokeh.plotting as plt
  File "C:\dev\code\bokeh\bokeh\__init__.py", line 16, in <module>
    from .util.version import __version__; __version__
  File "C:\dev\code\bokeh\bokeh\util\version.py", line 36, in <module>
    __base_version__ = base_version()
  File "C:\dev\code\bokeh\bokeh\util\version.py", line 34, in base_version
    return VERSION_PAT.search(__version__).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

If I look at the error in the debugger I see that __version__ is 'unknown'.

Curiously, if I import in ipython it works fine:

In [1]: import bokeh

In [2]: import bokeh.plotting as plt

In [3]: bokeh.__version__

Out[3]: '0.12.0dev9-43-g560acd8'

I fixed it by just hard-coding __version__

Thanks,
Dave

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/2e4db4c2-bc81-444e-a16a-4e8eaf9540a8%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

It’s a webserver running under a restricted account without git on the path. Adding git to the path fixes the problem.

Thanks,

Dave

···

On Friday, 27 May 2016 02:17:21 UTC+10, Bryan Van de ven wrote:

Dave,

that’s weird, can you report the value of

    In [3]: from bokeh._version import get_versions



    In [4]: get_versions()

    Out[4]:
    {'full': 'fa5151cf9e47adceac83942e0e32bccb4dcb35a2-dirty',

     'version': '0.12.0dev9-307-gfa5151c-dirty'}

Also what platform, etc? Is “git” on your path? dev environments try to use git (via versioneer) to report a “commit” version

Bryan

On May 26, 2016, at 2:25 AM, [email protected] wrote:

I just installed bokeh from source but I’m getting the below error from my webserver:

import bokeh.plotting as plt

File “C:\dev\code\bokeh\bokeh_init_.py”, line 16, in

from .util.version import __version__; __version__

File “C:\dev\code\bokeh\bokeh\util\version.py”, line 36, in

__base_version__ = base_version()

File “C:\dev\code\bokeh\bokeh\util\version.py”, line 34, in base_version

return VERSION_PAT.search(__version__).group(1)

AttributeError: ‘NoneType’ object has no attribute ‘group’

If I look at the error in the debugger I see that version is ‘unknown’.

Curiously, if I import in ipython it works fine:

In [1]: import bokeh

In [2]: import bokeh.plotting as plt

In [3]: bokeh.version

Out[3]: ‘0.12.0dev9-43-g560acd8’

I fixed it by just hard-coding version

Thanks,

Dave


You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/2e4db4c2-bc81-444e-a16a-4e8eaf9540a8%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.