Giter Site home page Giter Site logo

taxi's People

Contributors

abey79 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

taxi's Issues

Does not work with Raspberry Pi Touchscreen

Hello!

I'm having trouble getting Taxi to work with the Raspberry Pi Touchscreen (the official TFT one). It works fine with the mouse, but tapping doesn't do anything. Here is the startup log:

[INFO   ] [Logger      ] Record log in /home/axidraw5/.kivy/logs/kivy_21-08-15_18.txt
INFO:kivy:[Logger      ] Record log in /home/axidraw5/.kivy/logs/kivy_21-08-15_18.txt
[INFO   ] [Kivy        ] v2.0.0
INFO:kivy:[Kivy        ] v2.0.0
[INFO   ] [Kivy        ] Installed at "/opt/venv-taxi/lib/python3.7/site-packages/kivy/__init__.py"
INFO:kivy:[Kivy        ] Installed at "/opt/venv-taxi/lib/python3.7/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.7.3 (default, Jan 22 2021, 20:04:44) 
[GCC 8.3.0]
INFO:kivy:[Python      ] v3.7.3 (default, Jan 22 2021, 20:04:44) 
[GCC 8.3.0]
[INFO   ] [Python      ] Interpreter at "/opt/venv-taxi/bin/python"
INFO:kivy:[Python      ] Interpreter at "/opt/venv-taxi/bin/python"
[INFO   ] [Factory     ] 186 symbols loaded
INFO:kivy:[Factory     ] 186 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2 (img_pil, img_ffpyplayer ignored)
INFO:kivy:[Image       ] Providers: img_tex, img_dds, img_sdl2 (img_pil, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2(['text_pango'] ignored)
INFO:kivy:[Text        ] Provider: sdl2(['text_pango'] ignored)
[INFO   ] [Window      ] Provider: sdl2
INFO:kivy:[Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
INFO:kivy:[GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
INFO:kivy:[GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'2.1 Mesa 19.3.2'>
INFO:kivy:[GL          ] OpenGL version <b'2.1 Mesa 19.3.2'>
[INFO   ] [GL          ] OpenGL vendor <b'Broadcom'>
INFO:kivy:[GL          ] OpenGL vendor <b'Broadcom'>
[INFO   ] [GL          ] OpenGL renderer <b'V3D 4.2'>
INFO:kivy:[GL          ] OpenGL renderer <b'V3D 4.2'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 1
INFO:kivy:[GL          ] OpenGL parsed version: 2, 1
[INFO   ] [GL          ] Shading version <b'1.20'>
INFO:kivy:[GL          ] Shading version <b'1.20'>
[INFO   ] [GL          ] Texture max size <4096>
INFO:kivy:[GL          ] Texture max size <4096>
[INFO   ] [GL          ] Texture max units <16>
INFO:kivy:[GL          ] Texture max units <16>
[INFO   ] [Window      ] auto add sdl2 input provider
INFO:kivy:[Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard allowed, single mode, docked
INFO:kivy:[Window      ] virtual keyboard allowed, single mode, docked
[INFO   ] disabling XY motors
INFO:kivy:disabling XY motors
[INFO   ] [ProbeSysfs  ] device match: /dev/input/event4
INFO:kivy:[ProbeSysfs  ] device match: /dev/input/event4
[INFO   ] [HIDInput    ] Read event from </dev/input/event4>
INFO:kivy:[HIDInput    ] Read event from </dev/input/event4>
[INFO   ] [ProbeSysfs  ] device match: /dev/input/event0
INFO:kivy:[ProbeSysfs  ] device match: /dev/input/event0
[INFO   ] [HIDInput    ] Read event from </dev/input/event0>
INFO:kivy:[HIDInput    ] Read event from </dev/input/event0>
[INFO   ] [Base        ] Start application main loop
INFO:kivy:[Base        ] Start application main loop
[INFO   ] [HIDMotionEvent] using <raspberrypi-ts>
INFO:kivy:[HIDMotionEvent] using <raspberrypi-ts>
[INFO   ] [HIDMotionEvent] <raspberrypi-ts> range ABS X position is 0 - 799
INFO:kivy:[HIDMotionEvent] <raspberrypi-ts> range ABS X position is 0 - 799
[INFO   ] [HIDMotionEvent] using <Logitech USB Optical Mouse>
INFO:kivy:[HIDMotionEvent] using <Logitech USB Optical Mouse>
[INFO   ] [HIDMotionEvent] <raspberrypi-ts> range ABS Y position is 0 - 479
INFO:kivy:[HIDMotionEvent] <raspberrypi-ts> range ABS Y position is 0 - 479
[INFO   ] [HIDMotionEvent] <raspberrypi-ts> range position X is 0 - 799
INFO:kivy:[HIDMotionEvent] <raspberrypi-ts> range position X is 0 - 799
[INFO   ] [HIDMotionEvent] <raspberrypi-ts> range position Y is 0 - 479
INFO:kivy:[HIDMotionEvent] <raspberrypi-ts> range position Y is 0 - 479
[INFO   ] [GL          ] NPOT texture support is available
INFO:kivy:[GL          ] NPOT texture support is available

It seems to detect it but doesn't do anything on touch events.

Install

Trying to get this installed on my raspberry pi 4 but running into the following error after running this step in your instructions. Any ideas?

Command: pip install git+https://github.com/plottertools/taxi#egg=tax

Error message:
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see pypa/pip#5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting taxi
Cloning https://github.com/plottertools/taxi to /tmp/pip-install-4s4euflv/taxi_d014491f54df4b09bb093a15881bdcc2
Running command git clone -q https://github.com/plottertools/taxi /tmp/pip-install-4s4euflv/taxi_d014491f54df4b09bb093a15881bdcc2
Installing build dependencies ... done
Getting requirements to build wheel ... done
ERROR: Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 180, in _main
status = self.run(options, args)
File "/usr/local/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
return func(self, options, args)
File "/usr/local/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 318, in run
requirement_set = resolver.resolve(
File "/usr/local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 103, in resolve
r = self.factory.make_requirement_from_install_req(
File "/usr/local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 429, in make_requirement_from_install_req
cand = self._make_candidate_from_link(
File "/usr/local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 200, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "/usr/local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 306, in init
super().init(
File "/usr/local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 151, in init
self.dist = self._prepare()
File "/usr/local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 234, in _prepare
dist = self._prepare_distribution()
File "/usr/local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 317, in _prepare_distribution
return self._factory.preparer.prepare_linked_requirement(
File "/usr/local/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 508, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "/usr/local/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 570, in _prepare_linked_requirement
dist = _get_prepared_distribution(
File "/usr/local/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 60, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(finder, build_isolation)
File "/usr/local/lib/python3.9/site-packages/pip/_internal/distributions/sdist.py", line 34, in prepare_distribution_metadata
self._setup_isolation(finder)
File "/usr/local/lib/python3.9/site-packages/pip/_internal/distributions/sdist.py", line 88, in _setup_isolation
reqs = backend.get_requires_for_build_wheel()
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/wrappers.py", line 168, in get_requires_for_build_wheel
return self._call_hook('get_requires_for_build_wheel', {
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/wrappers.py", line 275, in _call_hook
raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 86, in _build_backend
obj = import_module(mod_path)
File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 972, in _find_and_load_unlocked
File "", line 228, in _call_with_frames_removed
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/tmp/pip-build-env-rffw7ajn/overlay/lib/python3.9/site-packages/setuptools/init.py", line 18, in
from setuptools.dist import Distribution
File "/tmp/pip-build-env-rffw7ajn/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 38, in
from setuptools import windows_support
File "/tmp/pip-build-env-rffw7ajn/overlay/lib/python3.9/site-packages/setuptools/windows_support.py", line 2, in
import ctypes
File "/usr/local/lib/python3.9/ctypes/init.py", line 8, in
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'

Create ~/.taxi_svgs at startup

Small issue, but Taxi seems to assume that a folder ~/.taxi_svgs exists at startup. It crashes if it doesn't. It should probably create it if it doesn't exist.

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.