Title: Issue when importing EIAClient: "ModuleNotFoundError: No module named 'eia.data'" · Issue #2 · datons/python-eia · GitHub
Open Graph Title: Issue when importing EIAClient: "ModuleNotFoundError: No module named 'eia.data'" · Issue #2 · datons/python-eia
X Title: Issue when importing EIAClient: "ModuleNotFoundError: No module named 'eia.data'" · Issue #2 · datons/python-eia
Description: When I download the notebook in the description and try to install it after installing python-eia, I run into the following issue when running: from eia import EIAClient -------------------------------------------------------------------...
Open Graph Description: When I download the notebook in the description and try to install it after installing python-eia, I run into the following issue when running: from eia import EIAClient ---------------------------...
X Description: When I download the notebook in the description and try to install it after installing python-eia, I run into the following issue when running: from eia import EIAClient ---------------------------...
Opengraph URL: https://github.com/datons/python-eia/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue when importing EIAClient: \"ModuleNotFoundError: No module named 'eia.data'\"","articleBody":"When I download the notebook in the description and try to install it after installing python-eia, I run into the following issue when running:\n\n`from eia import EIAClient`\n\n```\n---------------------------------------------------------------------------\nModuleNotFoundError Traceback (most recent call last)\nCell In[9], [line 1](vscode-notebook-cell:?execution_count=9\u0026line=1)\n----\u003e [1](vscode-notebook-cell:?execution_count=9\u0026line=1) from eia import EIAClient\n\nFile ~/.local/lib/python3.10/site-packages/eia/__init__.py:9\n 7 from .client import EIAClient, EIAError\n 8 from .cache import CacheConfig\n----\u003e [9](https://vscode-remote+codespaces-002bcuddly-002ddoodle-002d54x76p5w6qrfv44j.vscode-resource.vscode-cdn.net/workspaces/python-for-time-series-forecasting-5246009/data/EIA/Scripts/~/.local/lib/python3.10/site-packages/eia/__init__.py:9) from . import catalog\n 11 __version__ = \"0.1.0\"\n 12 __all__ = [\"EIAClient\", \"EIAError\", \"CacheConfig\", \"catalog\"]\n\nFile ~/.local/lib/python3.10/site-packages/eia/catalog.py:85\n 81 from eia.catalog_manager import EIACatalogManager as _EIACatalogManager\n 83 _mgr = _EIACatalogManager()\n---\u003e [85](https://vscode-remote+codespaces-002bcuddly-002ddoodle-002d54x76p5w6qrfv44j.vscode-resource.vscode-cdn.net/workspaces/python-for-time-series-forecasting-5246009/data/EIA/Scripts/~/.local/lib/python3.10/site-packages/eia/catalog.py:85) ROUTES: dict[str, RouteInfo] = {r.route: r for r in _mgr._load_routes()}\n 86 RECIPES: dict[str, Recipe] = {r.id: r for r in _mgr._load_recipes()}\n 89 # ── Convenience functions ──────────────────────────────────────────────\n\nFile ~/.local/lib/python3.10/site-packages/eia/catalog_manager.py:69, in EIACatalogManager._load_routes(self)\n 66 if self._routes is not None:\n 67 return self._routes\n---\u003e [69](https://vscode-remote+codespaces-002bcuddly-002ddoodle-002d54x76p5w6qrfv44j.vscode-resource.vscode-cdn.net/workspaces/python-for-time-series-forecasting-5246009/data/EIA/Scripts/~/.local/lib/python3.10/site-packages/eia/catalog_manager.py:69) data = self._read_yaml(\"routes.yaml\")\n 70 routes: list[RouteInfo] = []\n 71 for entry in data.get(\"routes\", []):\n\nFile ~/.local/lib/python3.10/site-packages/eia/catalog_manager.py:60, in EIACatalogManager._read_yaml(filename)\n 57 @staticmethod\n 58 def _read_yaml(filename: str) -\u003e dict:\n 59 \"\"\"Read a YAML file from the ``eia.data`` package.\"\"\"\n---\u003e [60](https://vscode-remote+codespaces-002bcuddly-002ddoodle-002d54x76p5w6qrfv44j.vscode-resource.vscode-cdn.net/workspaces/python-for-time-series-forecasting-5246009/data/EIA/Scripts/~/.local/lib/python3.10/site-packages/eia/catalog_manager.py:60) ref = importlib.resources.files(\"eia.data\").joinpath(filename)\n 61 with importlib.resources.as_file(ref) as path:\n 62 return yaml.safe_load(path.read_text(encoding=\"utf-8\"))\n\nFile /usr/local/lib/python3.10/importlib/_common.py:22, in files(package)\n 17 def files(package):\n 18 # type: (Package) -\u003e Traversable\n 19 \"\"\"\n 20 Get a Traversable resource from a package\n 21 \"\"\"\n---\u003e [22](https://vscode-remote+codespaces-002bcuddly-002ddoodle-002d54x76p5w6qrfv44j.vscode-resource.vscode-cdn.net/usr/local/lib/python3.10/importlib/_common.py:22) return from_package(get_package(package))\n\nFile /usr/local/lib/python3.10/importlib/_common.py:66, in get_package(package)\n 60 def get_package(package):\n 61 # type: (Package) -\u003e types.ModuleType\n 62 \"\"\"Take a package name or module object and return the module.\n 63 \n 64 Raise an exception if the resolved module is not a package.\n 65 \"\"\"\n---\u003e [66](https://vscode-remote+codespaces-002bcuddly-002ddoodle-002d54x76p5w6qrfv44j.vscode-resource.vscode-cdn.net/usr/local/lib/python3.10/importlib/_common.py:66) resolved = resolve(package)\n 67 if wrap_spec(resolved).submodule_search_locations is None:\n 68 raise TypeError(f'{package!r} is not a package')\n\nFile /usr/local/lib/python3.10/importlib/_common.py:57, in resolve(cand)\n 55 def resolve(cand):\n 56 # type: (Package) -\u003e types.ModuleType\n---\u003e [57](https://vscode-remote+codespaces-002bcuddly-002ddoodle-002d54x76p5w6qrfv44j.vscode-resource.vscode-cdn.net/usr/local/lib/python3.10/importlib/_common.py:57) return cand if isinstance(cand, types.ModuleType) else importlib.import_module(cand)\n\nFile /usr/local/lib/python3.10/importlib/__init__.py:126, in import_module(name, package)\n 124 break\n 125 level += 1\n--\u003e [126](https://vscode-remote+codespaces-002bcuddly-002ddoodle-002d54x76p5w6qrfv44j.vscode-resource.vscode-cdn.net/usr/local/lib/python3.10/importlib/__init__.py:126) return _bootstrap._gcd_import(name[level:], package, level)\n\nModuleNotFoundError: No module named 'eia.data'\n\n```\nI can't find anyone else having this issue. Do I need to install an older version for this to work?","author":{"url":"https://github.com/dajsfiles","@type":"Person","name":"dajsfiles"},"datePublished":"2026-05-14T21:32:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2/python-eia/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b5de095c-e024-9102-dbf2-175497604042 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A856:26D6B:1388C4D:1C9FB4D:6A60A699 |
| html-safe-nonce | 67e5f3623f25d2729a340e08949830d78426632e0572aefd27aedfe3f08227d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODU2OjI2RDZCOjEzODhDNEQ6MUM5RkI0RDo2QTYwQTY5OSIsInZpc2l0b3JfaWQiOiI1NDc0OTY0OTc2MzA1MjE5MjI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 29024b52943708141adb7e31b41d071a19ad9a4b15a098b48b031966398a5a90 |
| hovercard-subject-tag | issue:4449445413 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/datons/python-eia/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee0b90292005fd1ec29d5eba1f2176021d3d993235636dbea5e64606fe5c53fc/datons/python-eia/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee0b90292005fd1ec29d5eba1f2176021d3d993235636dbea5e64606fe5c53fc/datons/python-eia/issues/2 |
| og:image:alt | When I download the notebook in the description and try to install it after installing python-eia, I run into the following issue when running: from eia import EIAClient ---------------------------... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dajsfiles |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5142d23feb6a650085422edf60d68c93777dfa6c4b0c9151eb464d3e4969f618 |
| turbo-cache-control | no-preview |
| go-import | github.com/datons/python-eia git https://github.com/datons/python-eia.git |
| octolytics-dimension-user_id | 130396938 |
| octolytics-dimension-user_login | datons |
| octolytics-dimension-repository_id | 990102697 |
| octolytics-dimension-repository_nwo | datons/python-eia |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 990102697 |
| octolytics-dimension-repository_network_root_nwo | datons/python-eia |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c55ed501f6bbf0f43900d14552f6a9bd0bec6757 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width