Coder Social home page Coder Social logo

meshtastak's People

Contributors

db-spl avatar

Stargazers

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

Watchers

 avatar  avatar

meshtastak's Issues

Getting AttributeError: module 'meshtastic' has no attribute 'StreamInterface'

After running the install command, manually installing the meshtastic module for python and trying to run the command to start meshtasTAK, I get the following:

$ python3 -m meshtasTAK
Opening TAK Server

send a connect
Flush the server response
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/freetak/.local/lib/python3.8/site-packages/meshtasTAK/__main__.py", line 164, in <module>
    interface = meshtastic.StreamInterface()
AttributeError: module 'meshtastic' has no attribute 'StreamInterface'
send ping
read the ping response

Then I'm dumped back to the command prompt. I'm wondering if an update to the meshtastic python module no longer supports this way of using the StreamInterface. No clue, just speculating.

Is there anything I can do to correct this?

Crash without after read

After read response the prosses crash

send a connect

Flush the server response
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/dist-packages/meshtasTAK/main.py", line 164, in
interface = meshtastic.StreamInterface('/dev/ttyUSB0')
File "/usr/local/lib/python3.7/dist-packages/meshtastic/init.py", line 440, in init
"StreamInterface is now abstract (to update existing code create SerialInterface instead)")
Exception: StreamInterface is now abstract (to update existing code create SerialInterface instead)
send ping
read the ping response
b'\n<__group name="takpak.mkcot" role="Team Member" />'

missing documentation about installation

pip install https://github.com/DeltaBravo15/meshtasTAK/archive/master.zip

/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
Collecting https://github.com/DeltaBravo15/meshtasTAK/archive/master.zip
  Using cached https://github.com/DeltaBravo15/meshtasTAK/archive/master.zip
Requirement already satisfied (use --upgrade to upgrade): meshtasTAK==0.1.2 from https://github.com/DeltaBravo15/meshtasTAK/archive/master.zip in /home/ubuntu/.local/lib/python3.8/site-packages
Requirement already satisfied: takpak@ https://github.com/pinztrek/takpak/archive/master.zip from https://github.com/pinztrek/takpak/archive/master.zip in /home/ubuntu/.local/lib/python3.8/site-packages (from meshtasTAK==0.1.2) (0.5)
Building wheels for collected packages: meshtasTAK
  Building wheel for meshtasTAK (setup.py) ... done
  Created wheel for meshtasTAK: filename=meshtasTAK-0.1.2-py3-none-any.whl size=28087 sha256=cb46d3a2188ed976b096d4977d9538a0f44c34f3eba3bf9e81ab8ac6449fae18
  Stored in directory: /tmp/pip-ephem-wheel-cache-v3v4cl_y/wheels/e7/c1/82/bd2e18c745d53f446284cf82b93254075f2d3479fbead5f4a0
Successfully built meshtasTAK

i try to start and return
/usr/bin/python: No module named mestasTAK

Implement "platform"

Include "cot_platform="meshtasTAK" in calls to takpak's mkcot() method to identify as "meshtasTAK" without altering takpak code.

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.