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

OOTB syntax error with demo.py #51

Open
duncdrum opened this issue Nov 1, 2019 · 1 comment
Open

OOTB syntax error with demo.py #51

duncdrum opened this issue Nov 1, 2019 · 1 comment

Comments

@duncdrum
Copy link

duncdrum commented Nov 1, 2019

Following the installation instructions in the docs the final step: python demo.py

results in

File "demo.py", line 20
    def page_make_binary_mask(probs: np.ndarray, threshold: float=-1) -> np.ndarray:
                                   ^
SyntaxError: invalid syntax

Similarly python3 demo.py

Traceback (most recent call last):
  File "demo.py", line 6, in <module>
    import cv2
ModuleNotFoundError: No module named 'cv2'
@duncdrum
Copy link
Author

duncdrum commented Nov 4, 2019

after some more testing: the opencv-python dependency does not get installed properly when running the pip install git+https… command of the installation instructions.
conda install also doesn't do the trick, another pip install opencv-python inside the running conda session gets me further, but still leads to opencv related crashes.

Tested on alpine, debian, macOS.

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

1 participant