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
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
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".