IOError: [Errno 2] No such file or directory: 'src/_version.py'

Open
#7 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
cli, tooling

Research direction

Start with the auto_version entry point and read_targets in auto_version/auto_version_tool.py, then reproduce the failure using pip install pyautoversion followed by auto_version. Check how the default configuration selects src/_version.py. Done means a target project without that file no longer fails unexpectedly, with the default target behavior matching the issue discussion.

Written by the indexing model from the issue text.

Description

pip install pyautoversion
auto_version
/lib/python2.7/site-packages/auto_version/auto_version_tool.py", line 93, in read_targets
    with open(target) as fh:
IOError: [Errno 2] No such file or directory: 'src/_version.py'

It would seem the _version.py file does not exist

edit:
This is where the target project doesn't have that file. Ideally this failure would not occur. Perhaps the default config should not contain any targets at all.

Dominant language
Python
Stars
5
Forks
5
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ARMmbed/autoversion

All issues in ARMmbed/autoversion

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.