AttributeError: 'str' object has no attribute 'is_storage' Pypsa-Eur

7 views
Skip to first unread message

Sergio

unread,
Jan 14, 2026, 7:22:57 AM (6 days ago) Jan 14
to pypsa
Dear All, 

I just installed the last Pypsa-Eur version, and I'm trying to run a simple France test, and I'm facing this error. Could you help me, please?

  File "/home/sdmontanasalas/.conda/envs/pypsa-eur/lib/python3.12/site-packages/snakemake/cli.py", line 2193, in args_to_api
    dag_api.execute_workflow(

  File "/home/sdmontanasalas/.conda/envs/pypsa-eur/lib/python3.12/site-packages/snakemake/api.py", line 634, in execute_workflow
    workflow.execute(

  File "/home/sdmontanasalas/.conda/envs/pypsa-eur/lib/python3.12/site-packages/snakemake/workflow.py", line 1277, in execute
    self._build_dag()

  File "/home/sdmontanasalas/.conda/envs/pypsa-eur/lib/python3.12/site-packages/snakemake/workflow.py", line 1220, in _build_dag
    async_run(self.dag.init())

  File "/home/sdmontanasalas/.conda/envs/pypsa-eur/lib/python3.12/site-packages/snakemake/common/__init__.py", line 104, in async_run
    return asyncio.run(coroutine)
           ^^^^^^^^^^^^^^^^^^^^^^

  File "/home/sdmontanasalas/.conda/envs/pypsa-eur/lib/python3.12/asyncio/runners.py", line 195, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^

  File "/home/sdmontanasalas/.conda/envs/pypsa-eur/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/sdmontanasalas/.conda/envs/pypsa-eur/lib/python3.12/asyncio/base_events.py", line 691, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^

  File "/home/sdmontanasalas/.conda/envs/pypsa-eur/lib/python3.12/site-packages/snakemake/dag.py", line 246, in init
    await self.file2jobs(file),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/sdmontanasalas/.conda/envs/pypsa-eur/lib/python3.12/site-packages/snakemake/dag.py", line 2609, in file2jobs
    raise MissingRuleException(targetfile)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/sdmontanasalas/.conda/envs/pypsa-eur/lib/python3.12/site-packages/snakemake/exceptions.py", line 423, in __init__
    f"No rule to produce {fmt_iofile(file)} (if you use input "
                          ^^^^^^^^^^^^^^^^

  File "/home/sdmontanasalas/.conda/envs/pypsa-eur/lib/python3.12/site-packages/snakemake/io/fmt.py", line 8, in fmt_iofile
    if f.is_storage:
       ^^^^^^^^^^^^

AttributeError: 'str' object has no attribute 'is_storage'


Fabian Hofmann

unread,
Jan 14, 2026, 7:38:04 AM (6 days ago) Jan 14
to py...@googlegroups.com

Hey Sergio,

this error message is a bug from Snakemake hiding a missing rule exception. I was facing something similar this morning. can you set enable: receive: true in your config and report back if that solved? if so, I would fix it upstream.

Best wishes

Fabian Hofmann

--
You received this message because you are subscribed to the Google Groups "pypsa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pypsa+un...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/pypsa/4f7d7d85-b878-4e18-b3ff-7ac60da42f42n%40googlegroups.com.
-- Dr. Fabian Hofmann Senior Energy System Modeller Open Energy Transition https://openenergytransition.org/ http://fabianhofmann.org/

Sergio

unread,
Jan 14, 2026, 8:52:38 AM (6 days ago) Jan 14
to Fabian Hofmann, py...@googlegroups.com
Fabian, good afternoon

Thanks  for your fast answering, I did it , however I'm facing the same error.  Attached you will find my config and log file.

Sergio

2026-01-14T140008.831776.snakemake.log
config_sergio.yaml
Reply all
Reply to author
Forward
0 new messages