Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 17 07:24
    virtuald converted_to_draft #93
  • Oct 17 07:18
    virtuald synchronize #93
  • Oct 17 07:18

    virtuald on upgrades

    Temporarily point pydantic pack… (compare)

  • Oct 17 07:15
    virtuald synchronize #93
  • Oct 17 07:15

    virtuald on upgrades

    Temporarily point pydantic pack… (compare)

  • Oct 17 07:12
    virtuald synchronize #93
  • Oct 17 07:12

    virtuald on upgrades

    Temporarily point pydantic pack… (compare)

  • Oct 17 07:05
    virtuald synchronize #93
  • Oct 17 07:05

    virtuald on upgrades

    Temporarily comment out python … (compare)

  • Oct 17 07:04
    virtuald commented #93
  • Oct 17 06:55
    virtuald opened #93
  • Oct 17 06:55

    virtuald on upgrades

    Add python 3.9 to the tests Add /bigobj from latest pybind1… Typo and 1 more (compare)

  • Oct 17 06:12
    alpceylan commented #114
  • Oct 17 03:45
    virtuald commented #114
  • Oct 09 05:03
    alpceylan commented #114
  • Oct 08 18:14
    virtuald commented #114
  • Oct 08 06:19
    alpceylan commented #114
  • Oct 08 05:36
    virtuald commented #114
  • Oct 08 05:21
    alpceylan commented #114
  • Oct 08 03:05

    virtuald on master

    Create simgui-requirements.txt Update README.md Merge pull request #1 from TheT… (compare)

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
(cross) root@a6f45b795c7e:/# pip wheel pyyaml
Collecting pyyaml
  Downloading https://files.pythonhosted.org/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz (269kB)
     |████████████████████████████████| 276kB 4.9MB/s 
Building wheels for collected packages: pyyaml
  Building wheel for pyyaml (setup.py) ... done
  Created wheel for pyyaml: filename=PyYAML-5.3.1-cp38-cp38-linux_armv7l.whl size=44618 sha256=5f1a345b17d8a1741eaa5f30134a26673bedb8d3ac660bc076431e964cb91cb7
  Stored in directory: /
Successfully built pyyaml
WARNING: You are using pip version 19.2.3, however version 20.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(cross) root@a6f45b795c7e:/#
see, it built a arm71 wheel