Bug 198008 - sysutils/py-salt broke when updated to 2014.7.2 (Related with #197597)
Summary: sysutils/py-salt broke when updated to 2014.7.2 (Related with #197597)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-24 20:34 UTC by Andres Montalban
Modified: 2015-05-30 13:14 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (christer.edwards)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Montalban 2015-02-24 20:34:07 UTC
Hey guys,

I have just installed this port on a fresh system and I get this:

root@freebsd-10:~ # salt-call 
Traceback (most recent call last):
  File "/usr/local/bin/salt-call", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2876, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 449, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 745, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 639, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: salt==2014.7.0

----

root@freebsd-10:~ # cat /usr/local/bin/salt-call
#!/usr/local/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'salt==2014.7.0','console_scripts','salt-call'
__requires__ = 'salt==2014.7.0'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('salt==2014.7.0', 'console_scripts', 'salt-call')()
    )

----

If I reinstall the same package it works and the content of /usr/local/bin/salt-call is:

root@freebsd-10:~ # cat /usr/local/bin/salt-call
#!/usr/local/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'salt==2014.7.2','console_scripts','salt-call'
__requires__ = 'salt==2014.7.2'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('salt==2014.7.2', 'console_scripts', 'salt-call')()
    )

----

This same port was working with version 2014.7.1 What can be wrong?

Thanks!
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-02-24 20:34:07 UTC
Maintainer CC'd
Comment 2 Christer Edwards 2015-02-28 18:25:44 UTC
I'm not able to duplicate this. I installed a fresh 10.1 system, installed py27-salt and called 'salt-call' as described below. I simply get the help output as expected.

I've tested with both a fresh install and a pkg upgrade and haven't seen that error.

Is there anything that could be custom about your install or package causing this?
Comment 3 Andres Montalban 2015-03-06 15:08:19 UTC
(In reply to christer.edwards from comment #2)

Hi Christer,

Sorry for the delay, didn't have time to test it again. I have just made a test downloading FreeBSD 10.1 AMD64 ISO and installing it in a VirtualBox machine.

The steps I did to reproduce was:

1) Install base system
2) portsnap fetch && portsnap extract
3) cd /usr/ports/ports-mgmt/portmaster && make install clean
4) pkg install lsof
5) portmaster -G sysutils/py-salt

I have tried this twice and it show me the same error.

Let me know if you need anything else.

Thanks!
Comment 4 Christer Edwards 2015-03-07 01:46:04 UTC
I wonder if it's somehow specific to the port vs the binary package. I created a fresh 10.1 jail, installed py27-salt and was unable to reproduce.

I don't know why it'd be different, but I'll reach out to the committer(s) and see what advice they might have.
Comment 5 Andres Montalban 2015-03-07 11:15:39 UTC
(In reply to christer.edwards from comment #4)

Hi Christer,

I have just tested this using packages and it works ok, so the problem seems to be with the port.

The commands I executed:

- Clean 10.1 amd64 install
- pkg update && pkg install py27-salt-2014.7.2

Let me know if you guys need anything else.

Thanks!
Comment 6 Christer Edwards 2015-04-04 00:47:11 UTC
We just committed 2014.7.3. Can you comment on whether this issue persists in this new release?
Comment 7 Jason Unovitch freebsd_committer freebsd_triage 2015-05-30 02:24:47 UTC
(In reply to Andres Montalban from comment #5)

Andres,
Is this still an issue?  sysutils/py-salt has been updated from 2014.7.3 -> 2014.7.4 -> 2014.7.5 -> 2015.5.1 since this PR was opened.  Additionally, lsof from the replication steps is no longer required in 2015.5.1.

Jason
Comment 8 Andres Montalban 2015-05-30 12:53:29 UTC
(In reply to Jason Unovitch from comment #7)

Hey Jason,

Let me try this today and I will let you guys know.

Sorry for the delay in my reply, I missed the last update.

Thanks!
Comment 9 Andres Montalban 2015-05-30 13:14:37 UTC
Hi,

I have just tested and it works great, I'm closing the ticket.

Thank you for your help!