RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Trouble installing scons (needed for 281x adafruit neopixel library) (SOLVED)

    Scheduled Pinned Locked Moved Help and Support
    dependancy issuinstallation hehelpsconsled lights
    13 Posts 2 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      linkreincarnate
      last edited by linkreincarnate

      So I would like to run some 2812b chainable rgb leds from my pi for lit fightstick build. The problem is I have to install scons as teh first step. Scons seems to want a package that doesn't exist anymore (I guess the library is old) None of the force install commands help.

      Here is what my console shows when I try to install it.

      '(env) pi@Iron-ManMk1Fightstick:~ $ sudo apt-get -f install scons
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      You might want to run 'apt-get -f install' to correct these:
      The following packages have unmet dependencies:
      expect : Depends: tcl8.5 (>= 8.5.0) but it is not going to be installed
      libjpeg62-turbo-dev : Depends: libjpeg62-turbo (= 1:1.3.1-12) but 1:1.4.1-2 is to be installed
      E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
      (env) pi@Iron-ManMk1Fightstick:~ $'

      I can force the libjpeg62-turbo to install the right package but tcl is being a right pain in the butt. when I try to install tcl I get the exact same output.

      Has anyone installed this library on your retropie? Anyone have any tips for getting it to work? Anyone have an alternative software for controling these leds on the retropie?

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @linkreincarnate
        last edited by

        @linkreincarnate What distro are you using ? Debian Jessie's scons has only a dependency on the python library and not on tcl or others.
        I don't this scons is the culprit here, do you have any custom held packages configured ?

        1 Reply Last reply Reply Quote 0
        • L
          linkreincarnate
          last edited by

          I'm not sure what you are asking. I am running off of the official image. I installed some stuff for google voice asistant and a python script for running a stepper if that helps. I'm kind anew to linux to be honest. I haven't been in any configuration files.

          mituM L 2 Replies Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @linkreincarnate
            last edited by

            @linkreincarnate which official image - the Raspbian image or the one provided by the RetroPie project ?

            1 Reply Last reply Reply Quote 0
            • L
              linkreincarnate @linkreincarnate
              last edited by

              @linkreincarnate The official retropie image I should say.

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @linkreincarnate
                last edited by

                @linkreincarnate Do an apt-get update and then again try apt-get -f install - do you still get the dependency errors ?

                L 1 Reply Last reply Reply Quote 0
                • L
                  linkreincarnate @mitu
                  last edited by

                  @mitupi Yeah this is what it looks like...

                  @Iron-ManMk1Fightstick:~ $ apt-get -f install
                  E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
                  E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
                  pi@Iron-ManMk1Fightstick:~ $ sudo apt-get -f install
                  Reading package lists... Done
                  Building dependency tree
                  Reading state information... Done
                  Correcting dependencies... failed.
                  The following packages have unmet dependencies:
                  expect : Depends: tcl8.5 (>= 8.5.0) but it is not installed
                  libjpeg62-turbo-dev : Depends: libjpeg62-turbo (= 1:1.3.1-12) but 1:1.4.1-2 is installed
                  E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
                  E: Unable to correct dependencies
                  pi@Iron-ManMk1Fightstick:~ $

                  mituM 1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @linkreincarnate
                    last edited by mitu

                    @linkreincarnate You seem have some mixed repos in your sources list. What's the content of your /etc/apt/sources.list file ?
                    You could try running aptitude install instead of apt-get, it might be able to resolve your depencency errors.

                    1 Reply Last reply Reply Quote 0
                    • L
                      linkreincarnate
                      last edited by

                      deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi

                      Uncomment line below then 'apt-get update' to enable 'apt-get source'

                      #deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi

                      that is what is in my sources.list

                      This is what I get when I use apptitude install scons

                      pi@Iron-ManMk1Fightstick:/etc/apt $ sudo aptitude install scons
                      The following NEW packages will be installed:
                      scons
                      0 packages upgraded, 1 newly installed, 0 to remove and 16 not upgraded.
                      Need to get 518 kB of archives. After unpacking 2,207 kB will be used.
                      The following packages have unmet dependencies:
                      expect : Depends: tcl8.5 (>= 8.5.0) but it is not going to be installed.
                      libjpeg62-turbo-dev : Depends: libjpeg62-turbo (= 1:1.3.1-12) but 1:1.4.1-2 is installed.
                      The following actions will resolve these dependencies:

                       Remove the following packages:
                      
                      1. expect                      
                        
                      2. libdirectfb-dev             
                        
                      3. libjpeg-dev                 
                        
                      4. libjpeg62-turbo-dev         
                        
                      5. libsdl1.2-dev               
                        

                      Accept this solution? [Y/n/q/?]

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @linkreincarnate
                        last edited by

                        @linkreincarnate It's strange how you have these dependencies, with the same repositories in the sources.list file I can install both expect and scons.
                        Remove the offending packages - via aptitude - and try again to install scons.

                        1 Reply Last reply Reply Quote 0
                        • L
                          linkreincarnate
                          last edited by linkreincarnate

                          ok I got it on there. I sure hope that stuff i removed wasn't important... ¯_(ツ)_/¯

                          thanks for your help!

                          mituM 1 Reply Last reply Reply Quote 0
                          • mituM
                            mitu Global Moderator @linkreincarnate
                            last edited by

                            @linkreincarnate said in Trouble installing scons (needed for 281x adafruit neopixel library):

                            ok I got it on there. I sure hope that stuff i removed wasn't important... ¯_(ツ)_/¯

                            Any -dev package is usefull when compiling something new, not for the normal system usage.
                            You might need some of them if you're installing from source any new packages, but the RetroPie setup scripts already do the installation for you.

                            L 1 Reply Last reply Reply Quote 0
                            • L
                              linkreincarnate @mitu
                              last edited by

                              good to know. Once again thanks a bunch.

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                              Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.