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

Details

Description: Since https://github.com/pytorch/pytorch/blob/v2.0.0-rcX/setup.py 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/__init__.py", line 1465, in <module>
from . import _meta_registrations
File "/usr/lib/python3.10/site-packages/torch/_meta_registrations.py", 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/__init__.py", line 169, in <module>
import torch._decomp.decompositions
File "/usr/lib/python3.10/site-packages/torch/_decomp/decompositions.py", line 10, in <module>
import torch._prims as prims
File "/usr/lib/python3.10/site-packages/torch/_prims/__init__.py", line 33, in <module>
from torch._subclasses.fake_tensor import FakeTensor, FakeTensorMode
File "/usr/lib/python3.10/site-packages/torch/_subclasses/__init__.py", line 3, in <module>
from torch._subclasses.fake_tensor import (
File "/usr/lib/python3.10/site-packages/torch/_subclasses/fake_tensor.py", line 13, in <module>
from torch._guards import Source
File "/usr/lib/python3.10/site-packages/torch/_guards.py", line 78, in <module>
class ShapeGuard(NamedTuple):
File "/usr/lib/python3.10/site-packages/torch/_guards.py", 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 

Loading...