Opened 2 years ago

Closed 22 months ago

#65777 closed defect (fixed)

py*-torchtext fails to install on arm

Reported by: essandess (Steve Smith) Owned by: cjones051073 (Chris Jones)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc: mascguy (Christopher Nielsen)
Port: py-torchtext

Description

This fails on an arm machine:

sudo port -pNc install py310-torchtext
--->  Computing dependencies for py310-torchtext
Error: Cannot install py310-torchtext for the arch 'x86_64' because
Error: its dependency py310-pytorch does not build for the required arch by default
Error: and does not have a universal variant.

But installing PyTorch just works:

sudo port -pNc install py310-pytorch
--->  Computing dependencies for py310-pytorch
--->  Fetching archive for py310-pytorch
--->  Attempting to fetch py310-pytorch-1.12.0_1+mps.darwin_21.arm64.tbz2 from https://packages.macports.org/py310-pytorch
--->  Attempting to fetch py310-pytorch-1.12.0_1+mps.darwin_21.arm64.tbz2.rmd160 from https://packages.macports.org/py310-pytorch
--->  Installing py310-pytorch @1.12.0_1+mps
--->  Activating py310-pytorch @1.12.0_1+mps

Why would py*-torchtext believe that it's being installed on an x86_64 box when it's being installed on an arm box?

Change History (6)

comment:1 Changed 2 years ago by jmroot (Joshua Root)

Owner: set to cjones051073
Status: newassigned

comment:2 in reply to:  description Changed 2 years ago by jmroot (Joshua Root)

Replying to essandess:

Why would py*-torchtext believe that it's being installed on an x86_64 box when it's being installed on an arm box?

It doesn't, but it does say that it can only build for x86_64: supported_archs x86_64.

comment:3 Changed 2 years ago by essandess (Steve Smith)

comment:4 Changed 2 years ago by garbeware

I managed to install it on Ventura/M1 by changing the line

supported_archs x86_64

to

supported_archs arm64 x86_64

in the file

/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/python/py-torchtext/Portfile

Last edited 2 years ago by garbeware (previous) (diff)

comment:5 Changed 2 years ago by essandess (Steve Smith)

comment:6 Changed 22 months ago by essandess (Steve Smith)

Resolution: fixed
Status: assignedclosed

In ec21e086454a233dd47c37deabb56cb982ded15e/macports-ports (master):

py-torchtext: Add arm64 support

Fixes: #65777

Note: See TracTickets for help on using tickets.