Comments (5)
I've been able to fix the __path__
issue (I'll get it committed soon), however another issue arises:
if you are installing pyqt5
through pipenv
it will install version 5.15.4
.
For some reason opencv-python
will not work with this version of pyqt5.
You can get the gui to work by installing opencv-python-headless
instead of opencv-python
. (However cli.py
will no longer work as it relies on the gui components of opencv that don't get installed in opencv-python-headless
.
I'll have to rework cli.py
to create a small window using pyqt5
to display images instead, but for now you can get gui.py
to work with the workaround above.
from snooker-ball-tracker.
Hi @ricardogffcouto.
How are you running the app?
The attributes that are available from the settings.py
file are:
['JSONEncoder', 'SnookerColour', '__DEFAULT_SETTINGS', '__SETTINGS', '__SettingsJSONEncoder', '__builtins__', '__cached__', '__doc__', '__file__', '__getattr__', '__loader__', '__name__', '__package__', '__settings_object_hook', '__spec__', 'json', 'load', 'np', 'save']
So trying to access __path__
from settings.py
will fail in this case.
from snooker-ball-tracker.
So, step by step:
- pipenv install pyqt5 (to create a virtual environment for the project with Python 3.8.5 & pyqt5)
- pipenv shell
- python setup.py install
- python -m snooker_ball_tracker.gui
from snooker-ball-tracker.
These steps fixed my problem! Thanks :)
from snooker-ball-tracker.
Will target some work to rework cli.py
and to swap over to using opencv-python-headless
by default.
from snooker-ball-tracker.
Related Issues (5)
- Issue with 'poetry install' when installing required modules and dependencies HOT 1
- After installing package running demo programs complain that libmagic is not present HOT 2
- BallTracker' object has no attribute 'perform_init_ops' HOT 4
- Selecting "None" on the Detect Color dropdown closes the program HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snooker-ball-tracker.