Comments (12)
I believe command support has been added with fmf-0.5.
OTOH, above you seem to have just called ls with argument show
, which is unrelated to fmf.
from fmf.
fmf show
ERROR Unable to walk through the 'show' directory.
from fmf.
(venv)➜ standard-test-roles git:(master_copr_build) ✗ fmf show
ERROR Unable to walk through the 'show' directory.
(venv)➜ standard-test-roles git:(master_copr_build) ✗ which fmf
~/tmp/venv/bin/fmf
(venv)➜ standard-test-roles git:(master_copr_build) ✗ pip list
Package Version
---------- -------
fmf 0.5.1
pip 10.0.1
PyYAML 3.12
setuptools 0.9.8
(venv)➜ standard-test-roles git:(master_copr_build) ✗ fmf ls
ERROR Unable to walk through the 'ls' directory.
from fmf.
$ fmf show
/testing
test: 0151753773
$ cat .fmf/version
1
Please make sure you are on version 0.5 (commit 76cc950, now HEAD), the behaviour you are seeing seems like the old version, where there were no commands for fmf, just specifying the path.
from fmf.
cat .fmf/version ~/.fmf/version
1
1
✗ which fmf
~/tmp/venv/bin/fmf
strace fmf ls 2>&1 | head -n 1
execve("/home/astepano/tmp/venv/bin/fmf", ["fmf", "ls"], [/* 39 vars */]) = 0
from fmf.
fmf 0.5.1
installed from pip
from fmf.
If I remove RPM package fmf it recognises commands. But it is real bug. Because it ignores virtualenv. Doesn't allow to use in production env.
from fmf.
I'm not sure how the script can ignore virtual environment. It is just importing the python module in the standard way:
import fmf.cli
import fmf.base
import fmf.utils
Is there any extra action or setup needed to make it working with virtualenv?
from fmf.
I do not know.
With installed RPM:
$ fmf ls
ERROR Unable to walk through the 'ls' directory.
$ ipython
In [1]: import fmf
In [2]: fmf??
Type: module
String form: <module 'fmf' from '/home/astepano/tmp/venv/lib/python2.7/site-packages/fmf/__init__.pyc'>
File: ~/tmp/venv/lib/python2.7/site-packages/fmf/__init__.py
Source:
""" Flexible Metadata Format """
I can investigate this issue if you want.
from fmf.
Could you please try to reproduce this bug?
It is easy.
- Have installed RPM
- Initialise new python virtualenv.
- Install the latest fmf in virtualenv.
from fmf.
I believe this is caused by fmf
being hashed by bash:
> which fmf
/tmp/fmf/bin/fmf
> type fmf
fmf is hashed (/usr/bin/fmf)
> hash -l
builtin hash -p /tmp/fmf/bin/pip pip
builtin hash -p /usr/bin/fmf fmf
builtin hash -p /usr/bin/vim vim
> hash -r
> fmf ls
/download/test
/download/requirements/no-clobber
/download/requirements/server-response
...
Try to clean your hash using hash -r
.
from fmf.
I am using zsh.
When I use bash there is no such error.
Okay, it seems some inconsistency in shell.
from fmf.
Related Issues (20)
- sources are bad in cases of definition of data in upper level HOT 2
- ref is trimmed into 8 char. HOT 4
- Allow filter by values containing colon (e.g. module:stream) HOT 2
- Drop support for Python 2 HOT 2
- Checkout of the default branch fails on Rawhide HOT 4
- implement programatic expansion of metadata - macros HOT 2
- [RFE] Allow allways True condition for adjust: when HOT 5
- Allow prepending in adjust HOT 1
- [RFE] Enable using of adjust at any level HOT 1
- Add JSON schema validation functionality HOT 2
- Fail to parse fmf files on s390x HOT 7
- Traceback when defining context in a test plan HOT 4
- Use `--depth 1` when cloning git repos with no `ref` specified
- Use schema-based validation for FMF's objects consumed by FMF itself
- Context operator != matching not defined dimension
- Support for `.dot` directories for storing plans HOT 15
- Add type annotations to fmf code HOT 1
- Case-sensitivity of context adjusting is unclear HOT 4
- Add distro and arch info to guests.yaml
- Merging for nested dictionaries defined in root HOT 1
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 fmf.