Closed dacz closed 7 years ago
You miss unox on your host, try to run either
pip install unox
or
sudo pip install unox
Easier said than done:
❯ pip install unox
Collecting unox
Could not find a version that satisfies the requirement unox (from versions: )
No matching distribution found for unox
Help?! :)
Edit:
❯ pip -v install unox
Collecting unox
1 location(s) to search for versions of unox:
* https://pypi.python.org/simple/unox/
Getting page https://pypi.python.org/simple/unox/
Looking up "https://pypi.python.org/simple/unox/" in the cache
No cache entry available
Starting new HTTPS connection (1): pypi.python.org
"GET /simple/unox/ HTTP/1.1" 404 28063
Status code 404 not in [200, 203, 300, 301]
Could not fetch URL https://pypi.python.org/simple/unox/: 404 Client Error: Not Found for url: https://pypi.python.org/simple/unox/ - skipping
Could not find a version that satisfies the requirement unox (from versions: )
Cleaning up...
No matching distribution found for unox
Exception information:
Traceback (most recent call last):
File "/Users/Will/.pyenv/versions/3.4.4/lib/python3.4/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Users/Will/.pyenv/versions/3.4.4/lib/python3.4/site-packages/pip/commands/install.py", line 324, in run
requirement_set.prepare_files(finder)
File "/Users/Will/.pyenv/versions/3.4.4/lib/python3.4/site-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/Users/Will/.pyenv/versions/3.4.4/lib/python3.4/site-packages/pip/req/req_set.py", line 554, in _prepare_file
require_hashes
File "/Users/Will/.pyenv/versions/3.4.4/lib/python3.4/site-packages/pip/req/req_install.py", line 278, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/Users/Will/.pyenv/versions/3.4.4/lib/python3.4/site-packages/pip/index.py", line 514, in find_requirement
'No matching distribution found for %s' % req
pip.exceptions.DistributionNotFound: No matching distribution found for unox
You are using pyenv - you need to fix it. I am using python 2.7, you are using 3.4 - i am not sure if unox is not available for 3.x or whatever, please check the python related docs, i cannot really help with custom python installations, sorry
Actually this doesn't seem to be a version issue, https://pypi.python.org/simple/unox/ just returns a 404. There isn't even any version info being transmitted, it looks like there simply is no package called unox
at all... or am I missing something here?
Sorry, my bad. https://github.com/EugenMayer/docker-sync/blob/master/lib/docker-sync/preconditions.rb#L49
You ar missing macfsevents https://github.com/EugenMayer/docker-sync/blob/master/lib/docker-sync/preconditions.rb#L51
unox has been installed most probably using brew - did you?
No, I hadn't installed this ominous unox
thing. :)
But I just got it to work by running https://github.com/EugenMayer/docker-sync/blob/master/lib/docker-sync/preconditions.rb#L49.
I then tried docker-sync start
again, which then threw the error ImportError: No module named fsevents
.
At that point I remembered that I had installed Python 2.7 using pyenv, and that I already had set the local Python in the project directory to 2.7 as well, but that I hadn't installed macfsevents for that Python yet. So I ran the second command you referenced again and lo and behold docker-sync start
is now working.
Thank you!
well i added some confusion to the mix, so i guess, we are equal :)
Great that it works, happy syncing!
It's all good: ;)
Oh yeah, and I just tried switching back to Python 3.4.4 (pyenv local 3.4.4
) with docker-sync start
then throwing:
Looking for changes
Traceback (most recent call last):
File "/usr/local/bin/unison-fsmonitor", line 278, in <module>
main()
File "/usr/local/bin/unison-fsmonitor", line 212, in main
sendCmd("VERSION", ["1"])
File "/usr/local/bin/unison-fsmonitor", line 84, in sendCmd
raw_cmd += " " + urllib.quote(arg);
AttributeError: 'module' object has no attribute 'quote'
Fatal error: File monitoring helper program not running
After doing a pyenv local 2.7
it works again. So yeah, the Python versions does seem to make the difference. :)
I'm trying to run docker-sync but I'm getting error with fsevents.
Please, can you help me what am I doing wrong?
the error:
docker-sync.yml
docker-compose.yml
I've installed
fswatch
andunison
via brew anddocker-sync
via gem (with sudo).Please, can you help? Thanks!