by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 05:53
    virtuald commented #676
  • 04:53
    virtuald synchronize #676
  • 04:53

    virtuald on pyi-fixes

    Upgrade robotpy-build dependency Upgrade github actions (compare)

  • 04:49

    virtuald on master

    Update to latest robotpy-build Upgrade github actions Remove raw function pointers fr… (compare)

  • 04:49

    robotpy-bot on 2020.1.3

    (compare)

  • 04:49

    robotpy-bot on master

    Bump 'robotpy-hal' dependency (compare)

  • 04:41

    virtuald on 2020.3.2.6

    (compare)

  • 04:30

    virtuald on actions-upgrade

    Remove raw function pointers fr… (compare)

  • Sep 17 04:12

    virtuald on 2020.2.1

    (compare)

  • Sep 17 04:12

    virtuald on master

    Bump cppheaderparser requirement (compare)

  • Sep 17 03:33

    virtuald on download-url

    (compare)

  • Sep 17 03:32

    virtuald on master

    Support downloading artifacts f… Add ability to change include p… Merge pull request #88 from rob… (compare)

  • Sep 17 03:32
    virtuald closed #88
  • Sep 17 03:32
    virtuald commented #88
  • Sep 17 03:01
    virtuald synchronize #88
  • Sep 17 03:01

    virtuald on download-url

    Support downloading artifacts f… Add ability to change include p… (compare)

  • Sep 17 03:00

    virtuald on misc

    (compare)

  • Sep 17 03:00

    virtuald on master

    Add extra includes to generated… Wrap virtual function macro typ… Merge pull request #90 from rob… (compare)

  • Sep 17 03:00
    virtuald closed #90
  • Sep 17 02:55
    virtuald opened #90
Dustin Spicuzza
@virtuald
which, is legit
but if we just installed all of them...
Dustin Spicuzza
@virtuald
@auscompgeek need an opinion for a better error message
TypeError: rpytest.ft._rpytest_ft.PBase.__init__() must be called by inheriting classes that contain an __init__
when a subclass forgets to call __init__
(I have a pybind11 fix that catches it!)
Dustin Spicuzza
@virtuald
Ben Bistline
@benjiboy50fonz

Hello, and a quick question about an installation failure. Downloading robotpy with

robotpy-installer download-robotpy

which produced an error with the following command, which I replicated and produced this error:

/home/coder/code/pybot/.venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-download-9otinufm/pynetworktables/setup.py'"'"'; __file__='"'"'/tmp/pip-download-9otinufm/pynetworktables/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-d26xra_s
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/coder/code/pybot/.venv/lib/python3.8/site-packages/setuptools/__init__.py", line 19, in <module>
    from setuptools.dist import Distribution
  File "/home/coder/code/pybot/.venv/lib/python3.8/site-packages/setuptools/dist.py", line 34, in <module>
    from setuptools import windows_support
  File "/home/coder/code/pybot/.venv/lib/python3.8/site-packages/setuptools/windows_support.py", line 2, in <module>
    import ctypes
  File "/usr/lib64/python3.8/ctypes/__init__.py", line 7, in <module>
    from _ctypes import Union, Structure, Array
ImportError: libffi.so.7: cannot open shared object file: No such file or directory

I'm on a linux build, why is it referencing Window-related software? Or am I mistaken?

Ben Bistline
@benjiboy50fonz
I do believe I developed the solution to my above problem.
Ben Bistline
@benjiboy50fonz
Hello again, anyone know where I can find what login my deploy is trying to use when deploying to a robot?
Dustin Spicuzza
@virtuald
sorry, hadn't been checking this
and the error you referenced above is probably something weird about your virtualenv?
maybe you just updated linux but didn't refresh your virtualenv?
Ben Bistline
@benjiboy50fonz
Yeah, I got it working without it. And yes, I refreshed the env and it worked later. Thanks!
Vasista Vovveti
@TheTripleV
I just noticed the repo for the robotpy vscode extension. Is there a plan/interest to further development it?
Dustin Spicuzza
@virtuald
I don't care about it; but it seems like a useful idea
David Vo
@auscompgeek
I managed to get a Good Enough™ experience with a few VSCode config files, but the extension could probably do better
David Vo
@auscompgeek
Dustin Spicuzza
@virtuald
we could switch to that, sure
Dustin Spicuzza
@virtuald
I used pybind11-stubgen for the first time last night
it.. was ok
[work project, not for robotpy-build]
Vasista Vovveti
@TheTripleV
I think we might still need to maintain a fork of it. Last time I used it, it recursed from wpilib to _wpilib generating stubs twice
Dustin Spicuzza
@virtuald
yeah, it got a lot of things... weird
I would want to change the way it generates some of its code I think
from pybind11_stubgen import ModuleStubsGenerator
module = ModuleStubsGenerator(module_name)
module.parse()
module.write_setup_py = False

with open(init_pyi, "w") as fp:
    fp.write("#\n# AUTOMATICALLY GENERATED FILE, DO NOT EDIT!\n#\n\n")
    fp.write("\n".join(module.to_lines()))
but that's the basic outline of how I used it
Dustin Spicuzza
@virtuald
my focus this weekend is to finish my robotpy-build readthedocs site
I started working on it in April, but lost steam; however, I'm giving a talk about robotpy-build at work this week, so I would like to have some documentation to refer people to... haha
Dustin Spicuzza
@virtuald
ugh, sphinx-autodoc-typehints no longer supports the default version of sphinx on rtd
woot, docs site up
@auscompgeek and @TheTripleV would love feedback/updates
Vasista Vovveti
@TheTripleV
It looks great. One thing, if rpy-build is going to be used outside of robotpy, there should probably be an option to change the entry points group. Right now, it's hard coded to "robotpybuild".
Dustin Spicuzza
@virtuald
I don't see why that would need to change? it's how robotpy-build finds libraries
Vasista Vovveti
@TheTripleV
I just figured it would be nice to separate them. So if you have robotpy packages installed and are using robotpy-build for something else, it won't detect robotpy packages. But it's probably unimportant
Dustin Spicuzza
@virtuald
that doesn't seem like a good idea
there's no reason to separate packages?
David Vo
@auscompgeek
and even if you did find a reason, use a virtualenv?
Dustin Spicuzza
@virtuald
Ben Bistline
@benjiboy50fonz
Hello! Trying to install the sympy package (https://pypi.org/project/sympy/), but I'm having some issues. Ideas?
Collecting sympy
10.25.39.2 - - [25/Aug/2020 20:27:13] "GET /pip_cache/ HTTP/1.1" 200 -
10.25.39.2 - - [25/Aug/2020 20:27:14] "GET /pip_cache/sympy-1.6.2.tar.gz HTTP/1.1" 200 -
  Downloading http://localhost:35565/pip_cache/sympy-1.6.2.tar.gz (6.3MB)
Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.8/site-packages (from sympy) (1.1.0)
Installing collected packages: sympy
  Running setup.py install for sympy: started
    ERROR: Error [Errno 12] Cannot allocate memory while executing command /usr/local/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/var/volatile/tmp/pip-install-zdusmxo6/sympy/setup.py'"'"'; __file__='"'"'/var/volatile/tmp/pip-install-zdusmxo6/sympy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /var/volatile/tmp/pip-record-wu61_crf/install-record.txt --single-version-externally-managed --compile
  Running setup.py install for sympy: finished with status 'error'
ERROR: Could not install packages due to an EnvironmentError: [Errno 12] Cannot allocate memory

20:27:33:399 ERROR   : robotpy.installer   : Command ([ -x /usr/local/bin/pip3 ] || exit 87) && /usr/local/bin/pip3 install --no-index --find-links=http://localhost:35565/pip_cache/ sympy returned non-zero error status 1
Dustin Spicuzza
@virtuald
@benjiboy50fonz does sympy require compilation? probably
the roborio only has 256MB of ram, so it's generally not a good fit for compilation
Cannot allocate memory
we have a docker image that you can use to cross-compile wheels
.. it's this: https://github.com/robotpy/robotpy-cross-docker , but I think there's a version on docker hub that you can use
Dustin Spicuzza
@virtuald