[rtems-docs commit] Version change, forgot to add wscript to the commit.
Chris Johns
chrisj at rtems.org
Thu Feb 7 17:28:41 UTC 2019
On 8/2/19 11:09 pm, Sebastian Huber wrote:
> After the update I get:
>
> File "/home/EB/sebastian_h/git-rtems-docs/wscript", line 67, in build
> ver_version, ver_date, ver_released = version.get(ctx, rtems_major_version)
> AttributeError: 'module' object has no attribute 'get'
It works on MacOS, FreeBSD 11.2-p5 and sync.rtems.org (docs.rtems.org shows the
patch I pushed built).
I wonder if you are loading a different `version.py`.
On MacOS with Python2 I have:
$ python
Python 2.7.10 (default, Aug 17 2018, 19:45:58)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import os.path
>>> sys.path.append(os.path.abspath('common'))
>>> import version
>>> version.__file__
'/Users/chris/development/rtems/docs/rtems-docs.git/common/version.pyc'
>>> version.__dict__['get']
<function get at 0x107b69410>
And on FreeBSD 11.2-p5 with python3 I have:
$ python3
Python 3.6.6 (default, Oct 2 2018, 01:22:29)
[GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)] on
freebsd11
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import os.path
>>> sys.path.append(os.path.abspath('common'))
>>> import version
>>> version.__file__
'/opt/work/chris/rtems/docs/rtems-docs.git/common/version.py'
>>> version.__dict__['get']
<function get at 0x8007b7730>
What are you seeing?
Chris
More information about the devel
mailing list