Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Try using ` from .odsrw import ODSFileExtractor` with '.' operator before module name. Commented Nov 8, 2023 at 23:21
  • Does this answer your question? Python can't find module in the same folder Commented Nov 8, 2023 at 23:23
  • did you try to use from .ods_extractor import ODSFileExtractor or from . import ODSFileExtractor instead of from odsrw import ODSFileExtractor . To use import odsrw you would have to add path src to environment variable PYTHONPATH or to sys.path (in code before import) Commented Nov 9, 2023 at 13:23
  • @furas The sys.path.append('./src') did it, all other options you suggested unfortunately aren't recognized by Python. I don't know why that's the only way, but if it's like that I think my project structure altogether may be flawed. Commented Nov 9, 2023 at 16:23