by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 20 04:53

    virtuald on master

    Hi (compare)

  • Sep 20 03:17

    virtuald on master

    Update .gitignore Add getDescription overload Update to latest version of bla… and 1 more (compare)

  • Sep 20 03:13
    virtuald opened #92
  • Sep 20 03:13

    robotpy-bot on 2020.1.8

    (compare)

  • Sep 20 03:13

    robotpy-bot on master

    Bump 'robotpy-ctre' dependency (compare)

  • Sep 20 03:05

    virtuald on 2020.3.2

    Update github actions + robotpy… (compare)

  • Sep 20 03:04

    virtuald on master

    Allow static libs downloads to … (compare)

  • Sep 20 02:51
    virtuald opened #91
  • Sep 20 02:50

    virtuald on 2020.2.3

    Allow static libs downloads to … (compare)

  • Sep 19 23:58
    virtuald opened #34
  • Sep 19 23:56
    virtuald labeled #33
  • Sep 19 23:56
    virtuald commented #49
  • Sep 19 23:56
    virtuald edited #49
  • Sep 19 23:47

    virtuald on 2020.3.2

    Update github actions + robotpy… (compare)

  • Sep 19 23:46

    virtuald on pyi-fixes

    (compare)

  • Sep 19 23:46
    virtuald closed #129
  • Sep 19 23:46

    virtuald on 2020.3.2

    (compare)

  • Sep 19 23:43

    virtuald on master

    Update github actions + robotpy… Copy/paste error (compare)

  • Sep 19 23:37

    virtuald on master

    Update github actions + robotpy… (compare)

  • Sep 19 23:37

    virtuald on 2020.1.2

    Update github actions + robotpy… (compare)

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
Ben Bistline
@benjiboy50fonz
@virtuald Thanks! Also, is there anything scheduled for commands-v2? I see no commits on Github.
Dustin Spicuzza
@virtuald
commands-v2 is a really challenging technical problem, and I've only recently started re-contemplating it
unfortunately, my motivation for getting things done during the pandemic has been highly variable
Ben Bistline
@benjiboy50fonz
@virtuald, all good. Just checking in.
Dustin Spicuzza
@virtuald
FWIW, I have an idea of how it could work, just need to dig in and actually try it
Ben Bistline
@benjiboy50fonz
Also, out of curiosity, could you clarify the instructions in your docker file. Do I not need to rebuild this with a path or anything? And what exactly do you mean by "use pip as normal".
Dustin Spicuzza
@virtuald
the cross-env is used to build a wheel
then you copy the wheel over to the rio and install it
let me look, I know I didn't document it well, but I've forgotten how to use it myself
ah, it's missing the docker run
$ docker run --rm -it robotpy/roborio-cross-ubuntu:2020-18.04
root@a6f45b795c7e:/# source /build/venv/bin/activate
(cross) root@a6f45b795c7e:/#
that puts you in a virtualenv
and anything you build there should be cross-compiled for arm
so
pip wheel packagename
should create a wheel for arm