FS#59884 - [hy] missing dependencies from setuptools/the AUR

Attached to Project: Community Packages
Opened by Bozo (patate) - Thursday, 30 August 2018, 20:04 GMT
Last edited by Morten Linderud (Foxboron) - Saturday, 29 December 2018, 15:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Morten Linderud (Foxboron)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

Running hy fails complaining about missing packages:

- pkg_resources
- funcparserlib

It is strange to me that hy does not depend on python-setuptools if it is needed for running it. Even more strange is the fact that funcparserlib is also needed but only available in AUR AFAIK.

Steps to reproduce:

Although I use docker below, there is nothing specific about docker. It's just a mean to convey the idea that my system is fairly fresh.

Also, a full terminal session is attached for your convenience.

1. Fresh Arch install

$ docker pull base/archlinux:latest
$ docker run -it base/archlinux /bin/sh

2. Update package database

# pacman -Syu

3. Install hy

# pacman -S hy

4. Try to run hy

# hy
[traceback about ]

5. Install python-setuptools

# pacman -S python-setuptools

6. Try to run hy

# hy
[traceback about funcparserlib]
This task depends upon

Closed by  Morten Linderud (Foxboron)
Saturday, 29 December 2018, 15:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with 0.15.0-2
Comment by Bozo (patate) - Thursday, 30 August 2018, 20:05 GMT
This wouldn't be the internet if I didn't forget the attachment.
Comment by Aleksei (nesk_bugs) - Wednesday, 03 October 2018, 17:15 GMT
Indeed, even helloworld.hy doesn't work:
echo '(print "I was going to code in Python syntax, but then I got Hy.")' > test.hy
hy test.hy
Traceback (most recent call last):
File "/usr/bin/hy", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3112, in <module>
@_call_aside
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3096, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3125, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 578, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 895, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 781, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'funcparserlib>=0.3.6' distribution was not found and is required by hy
Comment by Alexander F. Rødseth (xyproto) - Friday, 07 December 2018, 11:32 GMT
I can confirm that hy does not start here after installing it.

Loading...