sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    MR2 broke plugin during C extension require

    Scheduled Pinned Locked Moved Developers' Forum
    51 Posts 4 Posters 798 Views 4 Watching
    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.
    • Dan RathbunD Offline
      Dan Rathbun
      last edited by

      @draftomatic said:

      Seems like a Vista problem for sure.

      And another good reason why I'm glad I never upgraded any of our machines to Vista. (We went XP to Win7.)

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        TIG had problems with installing plugins with the RBZ feature. Not related to C Extensions.

        There was someone else the other day that reported similar error though, will see if I can find the thread.

        I've not experienced any C Extensions problems when migrating to M2.

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          Here we go: similar error reported: http://forums.sketchucation.com/viewtopic.php?f=180&t=41077&start=60#p376236

          Later it seemed to be related to that he had built Ruby himself. It worked when he used the pre-built version, Don't know why it was so though.
          http://forums.sketchucation.com/viewtopic.php?f=180&t=41077&p=378810#p376632

          Thomas Thomassen β€” SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            @thomthom said:

            TIG had problems with installing plugins with the RBZ feature. Not related to C Extensions.

            There was someone else the other day that reported similar error though, will see if I can find the thread.

            I've not experienced any C Extensions problems when migrating to M2.
            that issue came from the fact that there was a 'custom icon' for the Plugins folder, adding it subtly changed the permissions under Vista and the M2 tested code then thought the user didn't have permission to write to the folder, when they did ! This might have been fixed in the public version - I haven't tried it. πŸ˜•

            TIG

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              @tig said:

              @thomthom said:

              TIG had problems with installing plugins with the RBZ feature. Not related to C Extensions.

              There was someone else the other day that reported similar error though, will see if I can find the thread.

              I've not experienced any C Extensions problems when migrating to M2.
              that issue came from the fact that there was a 'custom icon' for the Plugins folder, adding it subtly changed the permissions under Vista and the M2 tested code then thought the user didn't have permission to write to the folder, when they did ! This might have been fixed in the public version - I haven't tried it. πŸ˜•

              But did it cause a problem in loading C Extensions? Wasn't it the RBZ installer that threw errors?

              Thomas Thomassen β€” SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                The MR2 [in testing] RBZ installer threw an error - but no C-extensions broke.

                TIG

                1 Reply Last reply Reply Quote 0
                • Dan RathbunD Offline
                  Dan Rathbun
                  last edited by

                  Well his Tortoise SVN program IS changing all the folder icons to a custom icon.

                  require is saying it cannot find the file, but it does exist.

                  I'm not here much anymore.

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    @dan rathbun said:

                    require is saying it cannot find the file, but it does exist.

                    No, it says it cannot find the module - not the same as the file.

                    If the file was not found there would be a different error message - like this:
                    require 'foobar' Error: #<LoadError: (eval):155:inrequire': no such file to load -- foobar>
                    (eval):155
                    (eval):155`

                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      draftomatic
                      last edited by

                      @dan rathbun said:

                      With a script perhaps ?

                      Wow, I hope you didn't write that just for me! I'm gonna play with it right now. I am very suspicious about Vista and permissions/folder attributes since I've confirmed it works on XP and 7.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        draftomatic
                        last edited by

                        @thomthom said:

                        No, it says it cannot find the module - not the same as the file.
                        If the file was not found there would be a different error message

                        Instantly when I started reading this sentence, the words "no such file to load..." popped into my head. Thanks for catching that.

                        So what's the difference? I'm not finding much info from my googling.

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by

                          @draftomatic said:

                          @thomthom said:

                          No, it says it cannot find the module - not the same as the file.
                          If the file was not found there would be a different error message

                          Instantly when I started reading this sentence, the words "no such file to load..." popped into my head. Thanks for catching that.

                          So what's the difference? I'm not finding much info from my googling.

                          Did you see the links I posted earlier, on the second page in this thread?

                          Thomas Thomassen β€” SketchUp Monkey & Coding addict
                          List of my plugins and link to the CookieWare fund

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            draftomatic
                            last edited by

                            @thomthom said:

                            Did you see the links I posted earlier, on the second page in this thread?

                            Yes I read through them, but I didn't see anything useful. One of those threads didn't seem to ever find a resolution? Or did I miss something...

                            Also I'm not using a self-built ruby... I'm using 1.8.6 p287 for the libraries and dll.

                            Edit: Just re-read the thread, seems like he resolved it by using the pre-built Ruby. Which is what I've been using all along...

                            1 Reply Last reply Reply Quote 0
                            • Dan RathbunD Offline
                              Dan Rathbun
                              last edited by

                              @draftomatic said:

                              @dan rathbun said:

                              With a script perhaps ?

                              Wow, I hope you didn't write that just for me! I'm gonna play with it right now. I am very suspicious about Vista and permissions/folder attributes since I've confirmed it works on XP and 7.

                              Well for anyone.

                              I suppose we could make it a bit more flexible, and move it to it's own topic with a "[Code]" prefix so Jim's code snippet indexer will list it.

                              It also should be module wrapped in some way. In some generic namespace SkpFileUtils, or something, and the methods made into module functions. Maybe a mixin module anyone can mix into custom modules and classes ?

                              I'm not here much anymore.

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                draftomatic
                                last edited by

                                Hey Dan. I ran the script and it didn't help.

                                I was also playing with printing the chmod flags for each directory (using File.stat.mode), and using File.readable? (which was always false, even after running your script). I'm not an expert at this stuff and am getting distracted by other priorities.

                                For what it's worth, the result of:

                                sprintf("%o", File.stat("/").mode)

                                is always 40755 (octal I believe?) for the directories, before and after running your script.

                                1 Reply Last reply Reply Quote 0
                                • thomthomT Offline
                                  thomthom
                                  last edited by

                                  Can you share the .so file you have problems with? So we can test - figure out if it's a local issue on your computer or the binary itself..

                                  Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                  List of my plugins and link to the CookieWare fund

                                  1 Reply Last reply Reply Quote 0
                                  • Dan RathbunD Offline
                                    Dan Rathbun
                                    last edited by

                                    @draftomatic said:

                                    Hey Dan. I ran the script and it didn't help.

                                    ...

                                    is always 40755 (octal I believe?) for the directories, before and after running your script.

                                    Well sorry. As I did say it wasn't tested.

                                    I'm not here much anymore.

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      draftomatic
                                      last edited by

                                      @dan rathbun said:

                                      As I did say it wasn't tested.

                                      Oh, I think it did was it was supposed to, except that maybe the chmod call didn't do anything. Not sure, but it did recurse the folders okay, so thanks for that! =D

                                      I may get a coworker to help me out with this later in the week since she knows more about chmod and permissions.

                                      1 Reply Last reply Reply Quote 0
                                      • thomthomT Offline
                                        thomthom
                                        last edited by

                                        Isn't it easier to just test on another machine? One with a clean SU installation. Then you can find out if it's a local issue or not.

                                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                        List of my plugins and link to the CookieWare fund

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          draftomatic
                                          last edited by

                                          @thomthom said:

                                          Isn't it easier to just test on another machine? One with a clean SU installation. Then you can find out if it's a local issue or not.

                                          I have tried 4 machines with fresh installations - 1 XP, 2 Vista, 1 Win7.

                                          The two Vistas have the problem. The others don't.

                                          1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            draftomatic
                                            last edited by

                                            Here's the troublesome .so file. Just rename it with a .so extension (Sketchucation wouldn't let me upload as .so) Although it might depend on others in the Ruby installation.

                                            This came straight from:

                                            Ruby 1.8.6 p287 One-Click Installer: http://rubyforge.org/frs/download.php/47082/ruby186-27_rc2.exe


                                            openssl.txt

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement