Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#77834 - [python-pytorch] missing python-sympy dependency

Attached to Project: Community Packages
Opened by Carlos Aznarán (carlosal1015) - Monday, 13 March 2023, 00:31 GMT
Last edited by Torsten Keßler (tpkessler) - Monday, 27 March 2023, 11:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Konstantin Gizdov (kgizdov)
Torsten Keßler (tpkessler)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


Description: Since where X=1,...,6. python-sympy is a dependency.

Additional info:
* v2.0.0-rc1

Steps to reproduce:
$ sudo pacman -Syu
$ sudo pacman -S python-pytorch
$ python
>>> import torch
File "/usr/lib/python3.10/site-packages/torch/", line 1465, in <module>
from . import _meta_registrations
File "/usr/lib/python3.10/site-packages/torch/", line 7, in <module>
from torch._decomp import _add_op_to_registry, global_decomposition_table, meta_table
File "/usr/lib/python3.10/site-packages/torch/_decomp/", line 169, in <module>
import torch._decomp.decompositions
File "/usr/lib/python3.10/site-packages/torch/_decomp/", line 10, in <module>
import torch._prims as prims
File "/usr/lib/python3.10/site-packages/torch/_prims/", line 33, in <module>
from torch._subclasses.fake_tensor import FakeTensor, FakeTensorMode
File "/usr/lib/python3.10/site-packages/torch/_subclasses/", line 3, in <module>
from torch._subclasses.fake_tensor import (
File "/usr/lib/python3.10/site-packages/torch/_subclasses/", line 13, in <module>
from torch._guards import Source
File "/usr/lib/python3.10/site-packages/torch/", line 78, in <module>
class ShapeGuard(NamedTuple):
File "/usr/lib/python3.10/site-packages/torch/", line 79, in ShapeGuard
expr: sympy.Expr
NameError: name 'sympy' is not defined
This task depends upon

Closed by  Torsten Keßler (tpkessler)
Monday, 27 March 2023, 11:02 GMT
Reason for closing:  Implemented
Additional comments about closing:  python-pytorch-2.0.0-1 in [community-testing] has sympy as dep.
Comment by Toolybird (Toolybird) - Saturday, 18 March 2023, 20:54 GMT
dupe  FS#77895