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!
Maintainer CC'd
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?
(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!
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.
(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!
We just committed 2014.7.3. Can you comment on whether this issue persists in this new release?
(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
(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!
Hi, I have just tested and it works great, I'm closing the ticket. Thank you for your help!