pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wip/py-torch: Suggestions needed



On Fri, Jul 15, 2022 at 07:52:32PM +0200, Roland Illig wrote:
> Am 15.07.2022 um 18:55 schrieb Mayuresh:
> > I have committed wip-pytorch in WIP state.
> 
> Where did you commit it? I don't see any directory matching "*py*torc*".

Sorry, forgot push, done now. wip/py-torch

> > url2pkg exited with errors and left the following line
> 
> What did you do before you got these error messages?
> What were the exact error messages?

url2pkg https://github.com/pytorch/pytorch/archive/refs/tags/v1.12.0.tar.gz > out 2> err

err:

fetch: ``-r'' requires ``-f distinfo''.
fetch: Falling back to non-resume fetch.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
Traceback (most recent call last):
  File "/usr/local/netbsd/work/wip/py-torch/work/pytorch-1.12.0/setup.py", line 221, in <module>
    from setuptools.dist import Distribution
ModuleNotFoundError: No module named 'setuptools.dist'; 'setuptools' is not a package
Traceback (most recent call last):
  File "/usr/pkg/bin/url2pkg", line 1296, in <module>
    main(sys.argv, Globals())
  File "/usr/pkg/bin/url2pkg", line 1286, in main
    Adjuster(g, url, initial_lines).adjust()
  File "/usr/pkg/bin/url2pkg", line 1238, in adjust
    self.adjust_python_module()
  File "/usr/pkg/bin/url2pkg", line 1026, in adjust_python_module
    self.read_dependencies(cmd, env, self.abs_wrksrc, 'py-', '${PYPKGPREFIX}-')
  File "/usr/pkg/bin/url2pkg", line 795, in read_dependencies
    output: bytes = subprocess.check_output(args=cmd, shell=True,
  File "/usr/pkg/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/pkg/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '/usr/pkg/bin/python3.10 setup.py build' returned non-zero exit status 1.

out:

===> Cleaning for pytorch-1.12.0
=> Bootstrap dependency digest>=20211023: found digest-20211023
WARNING: [license.mk] Every package should define a LICENSE.
=> Fetching pytorch-1.12.0.tar.gz
=> Checksum BLAKE2s OK for pytorch-1.12.0.tar.gz
=> Checksum SHA512 OK for pytorch-1.12.0.tar.gz
===> Installing dependencies for pytorch-1.12.0
=> Tool dependency cwrappers>=20150314: found cwrappers-20180325
=> Tool dependency checkperms>=1.1: found checkperms-1.12
===> Skipping vulnerability checks.
===> Overriding tools for pytorch-1.12.0
===> Extracting for pytorch-1.12.0

> 
> > When setup.py runs following error occurs:
> 
> Is this "runs" during url2pkg or when you build the package?

When I build.

-- 
Mayuresh


Home | Main Index | Thread Index | Old Index