Giter Site home page Giter Site logo

Comments (5)

Danthewaann avatar Danthewaann commented on June 18, 2024 1

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.

Danthewaann avatar Danthewaann commented on June 18, 2024

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.

ricardogffcouto avatar ricardogffcouto commented on June 18, 2024

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.

ricardogffcouto avatar ricardogffcouto commented on June 18, 2024

These steps fixed my problem! Thanks :)

from snooker-ball-tracker.

Danthewaann avatar Danthewaann commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.