OCCRA
Go to Post You get to see great matches at the Championship event regardless of a people's choice event. - Yan Wang [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
CD-Media  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-17-2017, 09:54 PM
nickbrickmaster nickbrickmaster is offline
Registered User
AKA: Nick Schatz
no team ('Snow Problem, 3184 Alum)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 476
nickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond repute
Developing Robotpy

What setup do I need to develop robotpy? Specifically, I'm attempting to contribute to robotpy-ctre. I have a venv with wpilib, hal-base, and hal-roborio, along with pytest. When I run the unit tests, here is the error I get:

Code:
___________________ ERROR collecting tests/test_cantalon.py ____________________
test_cantalon.py:2: in <module>
    import ctre
../ctre/__init__.py:2: in <module>
    from .cantalon import CANTalon
../ctre/cantalon.py:2: in <module>
    import hal
../../../.venv/ctre/lib/python3.6/site-packages/hal/__init__.py:1: in <module>
    from .functions import *
../../../.venv/ctre/lib/python3.6/site-packages/hal/functions.py:9: in <module>
    from hal_impl.fndef import _RETFUNC, _THUNKFUNC, _VAR, _dll, sleep
../../../.venv/ctre/lib/python3.6/site-packages/hal_impl/fndef.py:10: in <module>
    C.CDLL(os.path.join(_module_path, "libwpiutil.so"))
/usr/lib64/python3.6/ctypes/__init__.py:348: in __init__
    self._handle = _dlopen(self._name, mode)
E   OSError: /home/nick/.venv/ctre/lib/python3.6/site-packages/hal_impl/libwpiutil.so: wrong ELF class: ELFCLASS32
Do I need to run the tests on the roborio vm?
__________________
This is a postmodern signature.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-17-2017, 11:28 PM
frcguy's Avatar
frcguy frcguy is offline
Sitting behind a Toughbook
AKA: Nicholas Dal Porto
FRC #0190 (Gompei and the H.E.R.D.)
 
Join Date: Dec 2015
Rookie Year: 2012
Location: Worcester, MA
Posts: 1,643
frcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond repute
The RobotPy Gitter chat might be a good place to ask: https://gitter.im/robotpy/robotpy-wpilib
__________________


Team 5940: 2015-2018 | Team 190: 2018-present

Volunteer: 2016-present

Event Travel Spreadsheet
Reply With Quote
  #3   Spotlight this post!  
Unread 08-18-2017, 01:39 PM
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #6367 (), FRC #7240 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,409
virtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond reputevirtuald has a reputation beyond repute
Re: Developing Robotpy

As mentioned in gitter chat (posting here in case someone else is wondering), you can't run hal-roborio off the RoboRIO, you need hal-sim installed instead.
__________________
Maintainer of RobotPy (Python for FRC) & WPILib Contributor
Creator of pyfrc (Robot Simulator + utilities for Python), pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript), and lots more...

Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:25 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi