Go to Post You can never go wrong by gaining height by way of a Segway. - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
CD-Media   CD-Spy  
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 09-02-2017, 11:21
RylandB RylandB is offline
Registered User
FRC #5212
 
Join Date: Feb 2017
Location: Denton
Posts: 2
RylandB is an unknown quantity at this point
Trouble installing pynetworktables on jetson

My team is using a Jetson TX1 for CV this year, and I am getting to the part where I need to communicate. Network tables seemed like an easy solution, but I'm having problems installing pynetworktables.

I followed the instructions here http://robotpy.readthedocs.io/en/lat...ynetworktables for the linux install, but after the pip install (using sudo -H), I can't import the library in my CV code.

Tne problem seems to be having mismatched python versions, as my CV is configured for 2.7, but the networktables only installs for 3.5, even if I am using regular pip instead of pip3. Is there any way of getting it working for python 2.7, or should I start looking at serial?
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2017, 11:35
virtuald's Avatar
virtuald virtuald is online now
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,108
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Trouble installing pynetworktables on jetson

Quote:
Originally Posted by RylandB View Post
My team is using a Jetson TX1 for CV this year, and I am getting to the part where I need to communicate. Network tables seemed like an easy solution, but I'm having problems installing pynetworktables.

I followed the instructions here http://robotpy.readthedocs.io/en/lat...ynetworktables for the linux install, but after the pip install (using sudo -H), I can't import the library in my CV code.

Tne problem seems to be having mismatched python versions, as my CV is configured for 2.7, but the networktables only installs for 3.5, even if I am using regular pip instead of pip3. Is there any way of getting it working for python 2.7, or should I start looking at serial?
An alternative way to execute pip is via 'python -m pip'. Presumably if you execute it with the same interpreter then it will install to the correct location for that interpreter.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
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
  #3   Spotlight this post!  
Unread 09-02-2017, 12:02
RylandB RylandB is offline
Registered User
FRC #5212
 
Join Date: Feb 2017
Location: Denton
Posts: 2
RylandB is an unknown quantity at this point
Re: Trouble installing pynetworktables on jetson

Worked perfectly! Thank you so much!
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 18:28.

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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi