Coder Social home page Coder Social logo

hologram-io / spacebridge Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 5.0 447 KB

This client allows you to use the Hologram Spacebridge service to create an inbound authenticated tunnel to your device

Home Page: https://hologram.io/docs/guide/cloud/spacebridge-tunnel

License: GNU Lesser General Public License v2.1

Python 96.09% Shell 3.26% Batchfile 0.65%
iot python

spacebridge's People

Contributors

dependabot[bot] avatar domamato avatar rbalik avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spacebridge's Issues

build fails on python (3.8?) 3.9 due to known bug in pyinstaller

When the build code gets down to the PYZ step, it fails saying 'TypeError: an integer is required (got type bytes)'

3498 INFO: checking PYZ
3501 INFO: Building PYZ because out00-PYZ.toc is non existent
3504 INFO: Building PYZ (ZlibArchive) /home/swood/src/spacebridge/build/spacebridge/out00-PYZ.pyz
Traceback (most recent call last):
  File "/home/swood/src/spacebridge/ve/bin/pyinstaller", line 8, in <module>
    sys.exit(run())
  File "/home/swood/src/spacebridge/ve/lib/python3.9/site-packages/PyInstaller/__main__.py", line 92, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "/home/swood/src/spacebridge/ve/lib/python3.9/site-packages/PyInstaller/__main__.py", line 46, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "/home/swood/src/spacebridge/ve/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 791, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "/home/swood/src/spacebridge/ve/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 737, in build
    exec(text, spec_namespace)
  File "<string>", line 17, in <module>
  File "/home/swood/src/spacebridge/ve/lib/python3.9/site-packages/PyInstaller/building/api.py", line 98, in __init__
    self.__postinit__()
  File "/home/swood/src/spacebridge/ve/lib/python3.9/site-packages/PyInstaller/building/datastruct.py", line 161, in __postinit__
    self.assemble()
  File "/home/swood/src/spacebridge/ve/lib/python3.9/site-packages/PyInstaller/building/api.py", line 128, in assemble
    self.code_dict = {
  File "/home/swood/src/spacebridge/ve/lib/python3.9/site-packages/PyInstaller/building/api.py", line 129, in <dictcomp>
    key: strip_paths_in_code(code)
  File "/home/swood/src/spacebridge/ve/lib/python3.9/site-packages/PyInstaller/building/utils.py", line 624, in strip_paths_in_code
    consts = tuple(
  File "/home/swood/src/spacebridge/ve/lib/python3.9/site-packages/PyInstaller/building/utils.py", line 625, in <genexpr>
    strip_paths_in_code(const_co, new_filename)
  File "/home/swood/src/spacebridge/ve/lib/python3.9/site-packages/PyInstaller/building/utils.py", line 632, in strip_paths_in_code
    return code_func(co.co_argcount, co.co_kwonlyargcount, co.co_nlocals, co.co_stacksize,
TypeError: an integer is required (got type bytes)

Some searching on this error discovered it was a known problem on some platforms in older versions of pyinstaller:

pyinstaller/pyinstaller#4265

I tried putting in the latest version of pyinstaller in the requirements.txt but then started getting an error about sbgui not found. I am not as familiar with python but will look more at it later to see what else I can figure out.

pip install -r requirements.txt fails with errors

~/src/spacebridge $ sudo pip install -r requirements.txt
[sudo] password for swood:
Downloading/unpacking easygui==0.97.4 (from -r requirements.txt (line 1))
Downloading easygui-0.97.4-py2.py3-none-any.whl (78kB): 78kB downloaded
Downloading/unpacking paramiko==2.3.1 (from -r requirements.txt (line 2))
Downloading paramiko-2.3.1-py2.py3-none-any.whl (182kB): 182kB downloaded
Downloading/unpacking PyInstaller==3.3 (from -r requirements.txt (line 3))
Downloading PyInstaller-3.3.tar.gz (3.5MB): 3.5MB downloaded
Running setup.py (path:/tmp/pip-build-C46OWp/PyInstaller/setup.py) egg_info fo
r package PyInstaller

no previously-included directories found matching 'bootloader/build'
no previously-included directories found matching 'bootloader/.waf-*'
no previously-included directories found matching 'bootloader/.waf3-*'
no previously-included directories found matching 'bootloader/waf-*'
no previously-included directories found matching 'bootloader/waf3-*'
no previously-included directories found matching 'bootloader/_sdks'
no previously-included directories found matching 'bootloader/.vagrant'
warning: no previously-included files found matching 'bootloader/.lock-waf*'
no previously-included directories found matching 'doc/source'
no previously-included directories found matching 'doc/_build'
warning: no previously-included files matching '*.tmp' found under directory

'doc'
no previously-included directories found matching 'old'
no previously-included directories found matching 'scripts'
no previously-included directories found matching 'tests/scripts'
no previously-included directories found matching '.github'
warning: no previously-included files found matching '.'
warning: no previously-included files found matching '
.yml'
warning: no previously-included files found matching '*~'
warning: no previously-included files found matching '.directory'
Downloading/unpacking requests==2.18.4 (from -r requirements.txt (line 4))
Downloading requests-2.18.4-py2.py3-none-any.whl (88kB): 88kB downloaded
Requirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.7 in /usr/
lib/python2.7/dist-packages (from paramiko==2.3.1->-r requirements.txt (line 2))
Downloading/unpacking bcrypt>=3.1.3 (from paramiko==2.3.1->-r requirements.txt (
line 2))
Downloading bcrypt-3.1.4.tar.gz (42kB): 42kB downloaded
Running setup.py (path:/tmp/pip-build-C46OWp/bcrypt/setup.py) egg_info for pac
kage bcrypt

warning: no previously-included files found matching 'requirements.txt'
warning: no previously-included files found matching 'tasks.py'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'wheel-scripts'
warning: no previously-included files found matching 'Jenkinsfile'
warning: no previously-included files found matching '.jenkins'
warning: no previously-included files matching '*' found under directory '.j

enkins'
warning: no previously-included files matching '*' found under directory 'wh
eel-scripts'
no previously-included directories found matching '.travis'
Downloading/unpacking pynacl>=1.0.1 (from paramiko==2.3.1->-r requirements.txt (
line 2))
Downloading PyNaCl-1.2.1.tar.gz (3.3MB): 3.3MB downloaded
Running setup.py (path:/tmp/pip-build-C46OWp/pynacl/setup.py) egg_info for packag
e pynacl
Download error on https://pypi.python.org/simple/cffi/: [Errno -2] Name or serv
ice not known -- Some packages may not be found!
Couldn't find index page for 'cffi' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [Errno -2] Name or service n
ot known -- Some packages may not be found!
No local packages or download links found for cffi>=1.4.1
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip-build-C46OWp/pynacl/setup.py", line 251, in
"Programming Language :: Python :: 3.6",
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 262, in in
it

self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 287, in fetc
h_build_eggs
replace_conflicting=True,
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 631, in resolv
e
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 874, in best_m
atch
return self.obtain(req, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 886, in obtain
return installer(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 338, in fetc
h_build_egg
return cmd.easy_install(req)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", l
ine 630, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requi
rement.parse('cffi>=1.4.1')
Complete output from command python setup.py egg_info:
Download error on https://pypi.python.org/simple/cffi/: [Errno -2] Name or serv
ice not known -- Some packages may not be found!

Couldn't find index page for 'cffi' (maybe misspelled?)

Download error on https://pypi.python.org/simple/: [Errno -2] Name or service not k
nown -- Some packages may not be found!

No local packages or download links found for cffi>=1.4.1

Traceback (most recent call last):

File "", line 17, in

File "/tmp/pip-build-C46OWp/pynacl/setup.py", line 251, in

"Programming Language :: Python :: 3.6",

File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 262, in init

self.fetch_build_eggs(attrs['setup_requires'])

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 287, in fetch_bu
ild_eggs

replace_conflicting=True,

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 631, in resolve

dist = best[req.key] = env.best_match(req, ws, installer)

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 874, in best_match

return self.obtain(req, installer)

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 886, in obtain
return installer(requirement)

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 338, in fetch_bu
ild_egg

return cmd.easy_install(req)

File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line
630, in easy_install

raise DistutilsError(msg)

distutils.errors.DistutilsError: Could not find suitable distribution for Requireme
nt.parse('cffi>=1.4.1')


Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-C46OWp/
pynacl
Storing debug log for failure in /root/.pip/pip.log

Button and dropdown rendering issue on Mac OS Mojave (10.14.3)

When I run the SpaceBridge gui on my Mac, the buttons don't render properly (unless I resize the window). This seems to be an issue with tkinter.

I was able to update testgui.py using the resize hack here, but I'm not sure how to update sbgui.py in a similar way.

Some screenshots of what the issue looks like:

Screen Shot 2019-03-07 at 8 30 03 AM

Screen Shot 2019-03-07 at 8 25 44 AM

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.