Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pywatchman error on FreeBSD #176

Closed
tony opened this issue Oct 22, 2015 · 4 comments
Closed

Pywatchman error on FreeBSD #176

tony opened this issue Oct 22, 2015 · 4 comments

Comments

@tony
Copy link

tony commented Oct 22, 2015

$ freebsd-version -ku; uname -apKU 
11.0-CURRENT
11.0-CURRENT
FreeBSD x230 11.0-CURRENT FreeBSD 11.0-CURRENT #0: Wed Oct  7 17:47:58 CDT 2015     root@x230:/usr/obj/usr/src/sys/MYKERNEL  amd64 amd64 1100080 1100080

$ pkg info watchman
watchman-3.0.0
Name           : watchman
Version        : 3.0.0
Installed on   : Thu Oct 22 09:46:52 CDT 2015
Origin         : sysutils/watchman
Architecture   : freebsd:11:x86:64
Prefix         : /usr/local
Categories     : sysutils
Licenses       : APACHE20
Maintainer     : linpct@gmail.com
WWW            : https://facebook.github.io/watchman/
Comment        : File alteration monitoring service
Shared Libs required:
        libpcre.so.1
Annotations    :
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 163KiB
Description    :
Watchman exists to watch files and record when they change.  It can also
trigger actions (such as rebuilding assets) when matching files change.

WWW: https://facebook.github.io/watchman/


$ watchman-make -p '**/*.py' --make './run-tests.py' -t test
Traceback (most recent call last):
  File "/usr/home/tony/study/python/tmuxp/.env/bin/watchman-make", line 171, in <module>
    required=['cmd-watch-project', 'wildmatch'])
  File "/usr/home/tony/study/python/tmuxp/.env/lib/python2.7/site-packages/pywatchman/__init__.py", line 509, in capabilityCheck
    capabilities.synthesize(res, opts)
NameError: global name 'opts' is not defined

If this is related to packaging / an update needed on the FreeBSD package end of things, I'll file a ticket on that end.

@wez
Copy link
Contributor

wez commented Oct 22, 2015

Yeah, 3.0 is relatively old. The python errors may go away if you reinstall pywatchman from pip, but it will require a newer version of watchman to successfully run watchman-make and watchman-wait.

If you can file a ticket with the ports bits to update to the v4.1.0 tag and release, that would be great

@tony
Copy link
Author

tony commented Oct 22, 2015

Built 4.1.0 from source and it's working great so far on 11-CURRENT.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203961

@wez
Copy link
Contributor

wez commented Oct 31, 2015

I'm going to close this issue since you're up and running and 4.1.0 is pending in ports.
Thanks for reporting this!

@wez wez closed this as completed Oct 31, 2015
@tony
Copy link
Author

tony commented Nov 1, 2015

@wez 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants