Comments (8)
@marc-hb thanks for tracking that down and apologies for not finding it myself. It hadn't occurred to me to look specifically at pyocd.
from west.
What command did you run when you got that?
Wonder if it's trying to say that PyYAML 3.12 is installed but pykwalify isn't, and pykwalify wants PyYAML 3.11
, for whatever reason. Can't reproduce it at least.
What versions does pip3 list
list for PyYAML and pykwalify?
from west.
Looking around, neither Zephyr's nor West's requirements.txt specifies a pykwalify version number. But Zephyr's specifies PyYAML==3.12
.
Could there be a problem in the Python environment?
Perhaps re-running after pip3 install -U pykwalify
will help?
from west.
I'm going to close this as a Python 2 problem given that multiple people have run west without this issue across all supported platforms. @nashif please reopen if you continue to have problems.
from west.
@mbolivar I'm running into this issue when trying west debug
. Specifically it is
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (PyYAML 5.4.1 (/home/kt/.local/lib/python3.8/site-packages), Requirement.parse('pyyaml<7.0,>=6.0'), {'cmsis-pack-manager'})
I'm using a docker which installs python packages using requirements.txt file from the zephyr project. Looking specifically at requirements-base.txt It look like they expectation is PyYAML 5.1 but the exception seems to be looking for PyYAML 7.0. Its not clear if this is a catastrophic error ? My debugger is not connecting to my board but I'm not sure if its because this exception.
Any help here would be appreciated.
from west.
Hi, west's setup.py file only requires PyYAML>=5.1
. A larger version should be fine. I'm not sure where your pip issues are coming from, sorry.
from west.
HI @mbolivar thanks for you comment. Last question. The error is being reported by west debug
. Here is the full error
It wasn't pip that was complaining. Do you know what could be generating that requirement of >6.0 and <7.1 for PyYAML ? To me it looks like west.
kt@c2a5c55913ea:~/src$ west debug
-- west debug: rebuilding
ninja: no work to do.
-- west debug: using runner pyocd
-- runners.pyocd: pyOCD GDB server running on port 3333
GNU gdb (crosstool-NG 1.24.0.378_e011758) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-build_pc-linux-gnu --target=arm-zephyr-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/kt/src/build/zephyr/zephyr.elf...
Traceback (most recent call last):
File "/home/kt/.local/bin/pyocd", line 5, in <module>
from pyocd.__main__ import main
File "/home/kt/.local/lib/python3.8/site-packages/pyocd/__init__.py", line 21, in <module>
from . import gdbserver
File "/home/kt/.local/lib/python3.8/site-packages/pyocd/gdbserver/__init__.py", line 17, in <module>
from .gdbserver import GDBServer
File "/home/kt/.local/lib/python3.8/site-packages/pyocd/gdbserver/gdbserver.py", line 40, in <module>
from ..rtos import RTOS
File "/home/kt/.local/lib/python3.8/site-packages/pyocd/rtos/__init__.py", line 30, in <module>
load_plugin_classes_of_type('pyocd.rtos', RTOS, ThreadProvider)
File "/home/kt/.local/lib/python3.8/site-packages/pyocd/core/plugin.py", line 88, in load_plugin_classes_of_type
plugin = entry_point.load()()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2444, in load
self.require(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2467, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 792, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (PyYAML 5.4.1 (/home/kt/.local/lib/python3.8/site-packages), Requirement.parse(
'pyyaml<7.0,>=6.0'), {'cmsis-pack-manager'})
from west.
Do you know what could be generating that requirement of >6.0 and <7.1 for PyYAML ? To me it looks like west.
...
pkg_resources.ContextualVersionConflict: (PyYAML 5.4.1 (/home/kt/.local/lib/python3.8/site-packages), Requirement.parse('pyyaml<7.0,>=6.0'), {'cmsis-pack-manager'})
That really didn't take long to find:
https://github.com/pyocd/cmsis-pack-manager/blob/65b3e3eb5/setup.cfg#L40
from west.
Related Issues (20)
- Support `west manifest --resolve` and `--freeze` with `manifest.project-filter` HOT 1
- Follow up work for `manifest.project-filter` implementation
- west init: CLI argument to automatically setup new workspace from template HOT 11
- `already defined as extension command`-error prints wrong spec HOT 1
- Introduce absolute path variant of zephyr.base HOT 13
- west cannot process a git branch name containing a single quote ' HOT 8
- west init access denied on windows HOT 2
- git: Add support for sparse checkout HOT 5
- Investigate if the performance of submodule update could be improved HOT 7
- west update loops infinitely over the first repository HOT 14
- West Re-Implementation - git ws
- west update - AttributeError: 'NoneType' object has no attribute 'err' HOT 1
- menuconfig aborting due to Kconfig warnings HOT 4
- Allow using reference repositories to share objects HOT 8
- Allow import of optional projects from manifest file HOT 7
- Moving from Zephyr 3.2.99 to 3.5.99: `west` cannot find its configuration file HOT 3
- --mr documents argument to be a revision HOT 1
- `pip install` fails on MSYS2 HOT 3
- Infinite loop when building in a moved directory HOT 4
- `die_if_no_git` not listed under west API HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from west.