1

# Both eqs and symbols must be iterable

Package:

sympy

8356

Exception Class:

ValueError

## Raise code

```
"""
The original equations and symbols can be restored using d:
>>> assert [i.xreplace(d) for i in eqs] == eqs
>>> assert [d.get(i, i) for i in s] == syms
"""
if not iterable(eqs) and iterable(symbols):
raise ValueError('Both eqs and symbols must be iterable')
new_symbols = list(symbols)
swap_sym = {}
for i, s in enumerate(symbols):
if not isinstance(s, Symbol) and s not in swap_sym:
swap_sym[s] = Dummy('X%d' % i)
new_symbols[i] = swap_sym[s]
new_f = []
```

## Links to the raise (1)

https://github.com/sympy/sympy/blob/2c83657ff1c62fc2761b639469fdac7f7561a72a/sympy/solvers/solvers.py#L92NO FIXES YET

Just press the button and we will add solution

to this exception as soon as possible

* As many users press the button, the faster we create a fix

### Add a possible fix

Please authorize to post fix