pytorch / pytorch/executorch

executorch 0.4.0: module 'executorch' has no attribute '__version__'

Open
#7,292 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triaged
Dominant language
Python
Stars
5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
581

Description

🐛 Describe the bug

Unable to print package version. The issue is noticed when integrating executorch with Hugging Face optimum.

  1. pip install executorch
  2. python -c "import executorch; print(executorch.version)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'executorch' has no attribute '__version__'
Versions

executorch 0.4.0

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.

Research direction

Reproduce the failure with the reported pip installation and Python command, then inspect how the installed executorch package exposes its version. Done means importing executorch and printing executorch.version succeeds for version 0.4.0 or the supported package version.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.