ARMmbed / yotta

DEPRECATED: yotta build; better software
Apache License 2.0
164 stars 64 forks source link

added reference to python-jsonschema in FC22 #719

Closed meriac closed 7 years ago

meriac commented 8 years ago

@autopulated Fixes the following runtime bugs in yotta:

Fatal Exception, yotta=0.13.1
Traceback (most recent call last):
  File "/usr/bin/yotta", line 4, in <module>
    yotta.main()
  File "/usr/lib/python2.7/site-packages/yotta/main.py", line 206, in main
    status = args.command(args, following_args)
  File "/usr/lib/python2.7/site-packages/yotta/link.py", line 28, in execCommand
    c = validate.currentDirectoryModule()
  File "/usr/lib/python2.7/site-packages/yotta/lib/validate.py", line 60, in currentDirectoryModule
    from yotta.lib import component
  File "/usr/lib/python2.7/site-packages/yotta/lib/component.py", line 21, in <module>
    from yotta.lib import pack
  File "/usr/lib/python2.7/site-packages/yotta/lib/pack.py", line 22, in <module>
    import jsonschema
ImportError: No module named jsonschema

and yotta build:

[meri@nuc uvisor-helloworld-v8m]$ yt build
info: get versions for uvisor-lib
info: download uvisor-lib@1.0.12 from the public module registry
Fatal Exception, yotta=0.13.1
Traceback (most recent call last):
  File "/usr/bin/yt", line 4, in <module>
    yotta.main()
  File "/usr/lib/python2.7/site-packages/yotta/main.py", line 206, in main
    status = args.command(args, following_args)
  File "/usr/lib/python2.7/site-packages/yotta/build.py", line 46, in execCommand
    status = installAndBuild(args, following_args)
  File "/usr/lib/python2.7/site-packages/yotta/build.py", line 98, in installAndBuild
    install_status = install.execCommand(args, [])
  File "/usr/lib/python2.7/site-packages/yotta/install.py", line 62, in execCommand
    return installDeps(args, c)
  File "/usr/lib/python2.7/site-packages/yotta/install.py", line 119, in installDeps
    test = {'own':'toplevel', 'all':True, 'none':False}[args.install_test_deps]
  File "/usr/lib/python2.7/site-packages/yotta/lib/component.py", line 651, in satisfyDependenciesRecursive
    test = test
  File "/usr/lib/python2.7/site-packages/yotta/lib/component.py", line 436, in __getDependenciesRecursiveWithProvider
    _processed = _processed
  File "/usr/lib/python2.7/site-packages/yotta/lib/component.py", line 436, in __getDependenciesRecursiveWithProvider
    _processed = _processed
  File "/usr/lib/python2.7/site-packages/yotta/lib/component.py", line 415, in __getDependenciesRecursiveWithProvider
    test = test
  File "/usr/lib/python2.7/site-packages/yotta/lib/component.py", line 309, in __getDependenciesWithProvider
    specs = self.getDependencySpecs(target=target)
  File "/usr/lib/python2.7/site-packages/yotta/lib/component.py", line 162, in getDependencySpecs
    if _truthyConfValue(target.getConfigValue(conf_key)) or conf_key in target.getSimilarTo_Deprecated():
  File "/usr/lib/python2.7/site-packages/yotta/lib/target.py", line 298, in getConfigValue
    import jsonpointer
ImportError: No module named jsonpointer
autopulated commented 8 years ago

I'm perplexed by this, as jsonschema and jsonpointer are both listed in setup.py:

https://github.com/ARMmbed/yotta/blob/master/setup.py#L64 https://github.com/ARMmbed/yotta/blob/master/setup.py#L69

Does pip install yotta fail or give any warnings?

autopulated commented 8 years ago

@meriac bump :)

meriac commented 8 years ago

@autopulated I seldom have to install yotta fresh - normally I do yotta-cli updates including all sub-dependencies. I occasionally get problems with yotta-cli updates which are usually fixed by updating pip. Having said all that, I can't remember anything out of order, but I will watch more closely in future.