Go to Post Boy you guys try to make my job harder every year. - Al Skierkiewicz [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 27-01-2017, 09:53
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,102
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
2017 mjpg-streamer packages uploaded

Because cscore has been delayed more than I had anticipated, I've uploaded a build of mjpg-streamer. See https://github.com/robotpy/roborio-packages

mjpg-streamer is clunky to manage, and once cscore is available, you'll find that migrating to it from mjpg-streamer should be fairly straightforward and will offer a number of advantages (including integration with the default dashboards). But, this will get you going for now.
__________________
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
  #2   Spotlight this post!  
Unread 28-01-2017, 12:51
razar51 razar51 is offline
Registered User
AKA: John Faulkner
FRC #1288 (Raven Robotics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2007
Location: St. Charles, MO
Posts: 13
razar51 is an unknown quantity at this point
Re: 2017 mjpg-streamer packages uploaded

When I try to download it with the command:
Code:
C:\Users\Team1288\Desktop\robotpy-2017.0.6>py installer.py download-opkg mjpg-streamer
I get the error:

Code:
Traceback (most recent call last):
  File "installer.py", line 1009, in <module>
    retval = main()
  File "installer.py", line 990, in main
    retval = options.cmdobj(options)
  File "installer.py", line 792, in download_opkg
    package_list = opkg.resolve_pkg_deps(options.packages)
  File "installer.py", line 185, in resolve_pkg_deps
    for results in self._toposort(pkgs):
  File "installer.py", line 217, in _toposort
    raise ValueError('Cyclic dependencies exist among these items: {}'.format(', '.join(repr(x) for x in data.items())))
ValueError: Cyclic dependencies exist among these items: ('mjpg-streamer', {'libv4l'}), ('libv4l', {'media-ctl'}), ('media-ctl', {'libv4l'})
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2017, 17:59
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,102
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: 2017 mjpg-streamer packages uploaded

Quote:
Originally Posted by razar51 View Post
When I try to download it with the command:
Code:
C:\Users\Team1288\Desktop\robotpy-2017.0.6>py installer.py download-opkg mjpg-streamer
I get the error:

Code:
Traceback (most recent call last):
  File "installer.py", line 1009, in <module>
    retval = main()
  File "installer.py", line 990, in main
    retval = options.cmdobj(options)
  File "installer.py", line 792, in download_opkg
    package_list = opkg.resolve_pkg_deps(options.packages)
  File "installer.py", line 185, in resolve_pkg_deps
    for results in self._toposort(pkgs):
  File "installer.py", line 217, in _toposort
    raise ValueError('Cyclic dependencies exist among these items: {}'.format(', '.join(repr(x) for x in data.items())))
ValueError: Cyclic dependencies exist among these items: ('mjpg-streamer', {'libv4l'}), ('libv4l', {'media-ctl'}), ('media-ctl', {'libv4l'})
Heh, well that's annoying. The installer does a topological sort to figure out what items it should download and what order it should install them in... having a cycle makes that a bit annoying. I'll see if I can figure out a sane way to deal with this tonight.
__________________
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
  #4   Spotlight this post!  
Unread 28-01-2017, 23:04
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,102
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: 2017 mjpg-streamer packages uploaded

Try this installer: https://github.com/robotpy/robotpy-w...r/installer.py
__________________
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
  #5   Spotlight this post!  
Unread 31-01-2017, 19:56
razar51 razar51 is offline
Registered User
AKA: John Faulkner
FRC #1288 (Raven Robotics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2007
Location: St. Charles, MO
Posts: 13
razar51 is an unknown quantity at this point
Re: 2017 mjpg-streamer packages uploaded

Quote:
Originally Posted by virtuald View Post
Code:
C:\Users\Team1288\Desktop\robotpy-2017.0.6>py installer.py download-opkg mjpg-streamer
works now.

Code:
C:\Users\Team1288\Desktop\robotpy-2017.0.6>py installer.py install-opkg mjpg-streamer
does not. media-ctl depends on libv4l and libv4l depends on media-ctl.

Code:
C:\Users\Team1288\Desktop\robotpy-2017.0.6>py installer.py install-opkg mjpg-streamer
Copying over the opkg cache...
Looking up hostname roborio-1288-frc.local ...
Connecting to robot via SSH at roborio-1288-frc.local
Using username "admin".
NI Linux Real-Time (run mode)

Log in with your NI-Auth credentials.

Remote working directory is /home/admin
local:C:\Users\Team1288\Desktop\robotpy-2017.0.6\opkg_cache\install_opkg.sh => remote:/home/admin/opkg_cache/install_opkg.sh
libjpeg8 - 8d-r1.20
libjpeg8 already installed, continuing...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for media-ctl:
 *      libv4l (>= 1.6.2) *
 * opkg_install_cmd: Cannot install package media-ctl.
Installing media-ctl (1.6.2-r0.3) on root.
Command '['C:\\Users\\Team1288\\Desktop\\robotpy-2017.0.6\\win32\\plink.exe', '-pw', '', 'admin@roborio-1288-frc.local', 'bash opkg_cache/install_opkg.sh']' returned non-zero exit status 255.
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2017, 20:33
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,102
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: 2017 mjpg-streamer packages uploaded

Quote:
Originally Posted by razar51 View Post
Code:
C:\Users\Team1288\Desktop\robotpy-2017.0.6>py installer.py download-opkg mjpg-streamer
works now.

Code:
C:\Users\Team1288\Desktop\robotpy-2017.0.6>py installer.py install-opkg mjpg-streamer
does not. media-ctl depends on libv4l and libv4l depends on media-ctl.

Code:
C:\Users\Team1288\Desktop\robotpy-2017.0.6>py installer.py install-opkg mjpg-streamer
Copying over the opkg cache...
Looking up hostname roborio-1288-frc.local ...
Connecting to robot via SSH at roborio-1288-frc.local
Using username "admin".
NI Linux Real-Time (run mode)

Log in with your NI-Auth credentials.

Remote working directory is /home/admin
local:C:\Users\Team1288\Desktop\robotpy-2017.0.6\opkg_cache\install_opkg.sh => remote:/home/admin/opkg_cache/install_opkg.sh
libjpeg8 - 8d-r1.20
libjpeg8 already installed, continuing...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for media-ctl:
 *      libv4l (>= 1.6.2) *
 * opkg_install_cmd: Cannot install package media-ctl.
Installing media-ctl (1.6.2-r0.3) on root.
Command '['C:\\Users\\Team1288\\Desktop\\robotpy-2017.0.6\\win32\\plink.exe', '-pw', '', 'admin@roborio-1288-frc.local', 'bash opkg_cache/install_opkg.sh']' returned non-zero exit status 255.
Odd, it worked for me, but the problem is that the installer script installs each package separately... so it can't find the one that has the dependency cycle.

I would recommend just ssh'ing into the robot and installing the packages present in /home/admin/opkg_cache manually. Just run 'opkg install FOO.ipk'... you will probably have to specify libv4l and media-ctl at the same time.
__________________
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
  #7   Spotlight this post!  
Unread 04-02-2017, 23:03
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 183
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: 2017 mjpg-streamer packages uploaded

We would love to get this installed, but the active install option seems to require an internet connection - how do we get our roboRIO connected to the internet? Do we just have to plug it into a router or something?
__________________
2014 IRI Quarterfinalists (Thanks 368, 1477, 233)
2014 Minnesota State Championship Winners (Thanks 2052, 4778)
2014 Archimedes Quaterfinalists (Thanks 399, 2056, 2834)
2013 Minnesota State Championship Winners (Thanks 2052, 4607)
2013 Galileo Division-Finalists (Thanks 2169, 3284)
Reply With Quote
  #8   Spotlight this post!  
Unread 05-02-2017, 13:54
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,102
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: 2017 mjpg-streamer packages uploaded

robotpy-installer 2017.1.3 can correctly handle installing packages with cycles now (I even tested it with the roborio disconnected from the internet this time!).

bvisness: The robotpy installer can do offline installations, see the documentation for details.

http://robotpy.readthedocs.io/en/sta.../packages.html

Try it out and let me know. If the documentation sucks, let me know and I'll update it.
__________________
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
  #9   Spotlight this post!  
Unread 06-02-2017, 10:39
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 183
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: 2017 mjpg-streamer packages uploaded

Thanks, we'll give that a try. Last time we tried the offline installation, the download step succeeded but the install step failed. (Same error as razar51.)

Thanks for your prompt fixes on this!
__________________
2014 IRI Quarterfinalists (Thanks 368, 1477, 233)
2014 Minnesota State Championship Winners (Thanks 2052, 4778)
2014 Archimedes Quaterfinalists (Thanks 399, 2056, 2834)
2013 Minnesota State Championship Winners (Thanks 2052, 4607)
2013 Galileo Division-Finalists (Thanks 2169, 3284)
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 11:25.

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