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

error while installing openni2 using brew #307

Open
demolen opened this issue Apr 26, 2023 · 5 comments
Open

error while installing openni2 using brew #307

demolen opened this issue Apr 26, 2023 · 5 comments

Comments

@demolen
Copy link

demolen commented Apr 26, 2023

Last 15 lines from /Users/xxxx/Library/Logs/Homebrew/openni2/02.python:
2023-04-26 09:33:53 +0000

python
Packaging/Harvest.py
out
x64

File "/private/tmp/openni2-20230426-7247-oxun0m/OpenNI2-2.2.0-debian/Packaging/Harvest.py", line 338
print 'Usage: ' + sys.argv[0] + ' <x86|x64|Arm>'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

@paulwetzel
Copy link

Same problem here, if you take a look at the code, this error does exist in the main branch of the original repository, and I am unaware of some python magic to print without parentheses, so this I likely some bug with them

@SeleDreams
Copy link

i had this same issue trying to install it on my mac with brew, what's the workaround at this time ?

@paulwetzel
Copy link

@SeleDreams Using brew edit, you can edit the original code before running installation, if you add the parentheses at this point, you should have a working version.

@BenFranzi
Copy link

You need to update the brew install script to use Python2
Run brew edit openni2 and on line 32 update the following

system "python", "Packaging/Harvest.py", "out", "x64"

to

system "python2", "Packaging/Harvest.py", "out", "x64"

@colinpin
Copy link

@paulwetzel running into the same issue, could you elaborate a bit on the fix? I am using the brew edit openni2 but I seem to be editing a different file, i can't find where the () is missing.

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

No branches or pull requests

5 participants