Skip to content

Commit

Permalink
fix: ModuleNotFoundError for unstructured metrics folder (#1819)
Browse files Browse the repository at this point in the history
### Summary
Fix `ModuleNotFoundError: No module named 'unstructured.metrics'` where
the unstructured/metrics folder is not discoverable from a package
import since its missing an __init__.py file.
  • Loading branch information
shreyanid authored Oct 20, 2023
1 parent 15b6969 commit bdf1925
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 0.10.25-dev6
## 0.10.25-dev7

### Enhancements

Expand All @@ -16,6 +16,8 @@
* **Fix chunks breaking on regex-metadata matches.** Fixes "over-chunking" when `regex_metadata` was used, where every element that contained a regex-match would start a new chunk.
* **Fix regex-metadata match offsets not adjusted within chunk.** Fixes incorrect regex-metadata match start/stop offset in chunks where multiple elements are combined.
* **Map source cli command configs when destination set** Due to how the source connector is dynamically called when the destination connector is set via the CLI, the configs were being set incorrectoy, causing the source connector to break. The configs were fixed and updated to take into account Fsspec-specific connectors.
* **Fix metrics folder not discoverable** Fixes issue where unstructured/metrics folder is not discoverable on PyPI by adding
an `__init__.py` file under the folder.

## 0.10.24

Expand Down
2 changes: 1 addition & 1 deletion unstructured/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.10.25-dev6" # pragma: no cover
__version__ = "0.10.25-dev7" # pragma: no cover
Empty file.

0 comments on commit bdf1925

Please sign in to comment.