Jump to content

Trying to build Cura with "package.sh"


blazo

Recommended Posts

Posted · Trying to build Cura with "package.sh"

I am trying to build Cura on Windows and I am using the command "package.sh" on git bash for Windows 7 32 bit and it is giving me the following error:

cura_error.thumb.png.21cfb4acc062e97e5a245ed6c5ef1a53.png

I have tried everything I could think of. I also get this in the log.txt file:

7z x -y PortablePython_2.7.6.1.exe $_OUTDIR/App

7-Zip [32] 15.05 beta : Copyright © 1999-2015 Igor Pavlov : 2015-06-14

Scanning the drive for archives:

1 file, 236381640 bytes (226 MiB)

Extracting archive: PortablePython_2.7.6.1.exe

--

Path = PortablePython_2.7.6.1.exe

Type = Nsis

Physical Size = 236381640

Method = LZMA:25

Solid = +

Headers Size = 2263106

Embedded Stub Size = 66048

SubType = NSIS-Park-3 Unicode log

No files to process

Everything is Ok

Files: 0

Size: 0

Compressed: 236381640

7z x -y PortablePython_2.7.6.1.exe $_OUTDIR/Lib/site-packages

7-Zip [32] 15.05 beta : Copyright © 1999-2015 Igor Pavlov : 2015-06-14

Scanning the drive for archives:

1 file, 236381640 bytes (226 MiB)

Extracting archive: PortablePython_2.7.6.1.exe

--

Path = PortablePython_2.7.6.1.exe

Type = Nsis

Physical Size = 236381640

Method = LZMA:25

Solid = +

Headers Size = 2263106

Embedded Stub Size = 66048

SubType = NSIS-Park-3 Unicode log

No files to process

Everything is Ok

Files: 0

Size: 0

Compressed: 236381640

What is my problem? Does it have to do with the fact that portable python seems to be empty?

cura_error.thumb.png.21cfb4acc062e97e5a245ed6c5ef1a53.png

  • Link to post
    Share on other sites

    Posted · Trying to build Cura with "package.sh"

    Is there a README file? The people who wrote Cura haven't been on the forums lately as far as I can tell. But there was an explanation of how to build Cura a while back somewhere on the forums. Did you install portable python 2.7.6.1?

  • Link to post
    Share on other sites

    Posted · Trying to build Cura with "package.sh"

    Is there a README file?  The people who wrote Cura haven't been on the forums lately as far as I can tell.  But there was an explanation of how to build Cura a while back somewhere on the forums.  Did you install portable python 2.7.6.1?

     

    Yes, I have installed the latest version of Portable Python. There´s a README file but it just says the following:

    Cura development comes with a script "package.sh", this script has been designed to run under *nix OSes (Linux, MacOS, FreeBSD). For Windows the package.sh script can be run from bash using git.

    The "package.sh" script generates a final release package. You should not need it during development, unless you are changing the release process. If you want to distribute your own version of Cura, then the package.sh script will allow you to do that.

    The "package.sh" script understands a number of envrionement variables defined at the top of the script. Review and adjust settings to match your needs.

    Both MacOS and Linux require some extra instructions for development, as you need to prepare an environment. Look below at the proper section to see what is needed.

    Do you have any idea what could be happening?

  • Link to post
    Share on other sites

    Posted (edited) · Trying to build Cura with "package.sh"

    Oh - this doesn't build Cura.  It only packages it up for release into a single installer.  Do you even need to do that?  Did you already build your new Cura (because this package step is unrelated to building cura)?

    I'm a programmer.  I've used git bash.  But I really don't know much about how to build Cura.  I think the python files are not compiled so you can just edit them in place.  But then there's the "steamEngine" which is the c program that does the actual slicing - that needs to be compiled if you edit any of the c code.

    Edited by Guest
  • Link to post
    Share on other sites

    Posted (edited) · Trying to build Cura with "package.sh"

    I have made some changes to the python code that is the Cura gui and now I want to have it as a standalone program and as far as I understand this is the way to put it all together. Is this not what I have to do?

    I just followed what was on this link: https://github.com/daid/Cura under the "packaging" title.

    Edited by Guest
  • Link to post
    Share on other sites

    Posted · Trying to build Cura with "package.sh"

    Just change the .py file in your current cura installation and then launch cura.

  • Link to post
    Share on other sites

    Posted · Trying to build Cura with "package.sh"

    .py files aren't built or compiled. Python is an interpretive language - it compiles the file on the fly. So there's nothing to compile or build.

  • Link to post
    Share on other sites

    Posted · Trying to build Cura with "package.sh"

    You don't need to compile python for it to work. The package.sh script is only if you want to distribute (and create) an executable.

    Also, did you try to build the old cura or the new one?

  • Link to post
    Share on other sites

    Posted · Trying to build Cura with "package.sh"

    Thank you gr5, I was mistaken as to what I had to do.

  • Link to post
    Share on other sites

    Posted (edited) · Trying to build Cura with "package.sh"

    Now I do want to create an executable and I am getting the same error as I was getting two days ago. I tried to package it even without making any chances to the original file and even then it didn´t work.

    I typed the following commands:

    $ git clone https://github.com/daid/Cura.git

    $ cd Cura

    $ package.sh win32

    and after a while of running through the package.sh file it gives the following error:

    errr.thumb.png.971a0986db73bb2c1e4f3a8f89a6e53a.png

    Have you ever seen an error like this?

    errr.thumb.png.971a0986db73bb2c1e4f3a8f89a6e53a.png

    Edited by Guest
  • Link to post
    Share on other sites

    Posted · Trying to build Cura with "package.sh"

    It just means the directory is non-existent or empty.

    I would find this move command inside the .sh and add an echo before it to display what $_OUTDIR is equal to. I'm not good with bash shell scripts but this should work:

    echo "displaying the bad path..."

    echo $_OUTDIR/App/

  • Link to post
    Share on other sites

    Posted · Trying to build Cura with "package.sh"

    I know the thread is a bit old, but I was having the same problem and found this thread through Google. After finding a solution I thought I would post in case it's helpful for someone else.

    This error comes from the version of 7-zip that you're using. If you right-click on PortablePython_2.7.2.1.exe and open using the latest version of 7-zip, there is no $_OUTDIR (which refers to a folder name WITHIN the exe), but with some older versions it is present in the archive.

    In particular I tried using version 9.20 (http://sourceforge.net/projects/sevenzip/files/7-Zip/9.20/) and with this version 7-zip finds $_OUTDIR and the script proceeds. I don't know if 9.20 is the "ideal" 7-zip version, but it at least gets past the $_OUTDIR problem.

    Now for me it is failing elsewhere, but that is a topic for another day.

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • 🎄✨ Thingiverse Tree Ornament Challenge! ✨🎄
        We've been running a Tree Ornament Challenge with a chance to win an UltiMaker S3 or colorFabb filament.
        Design a 3D printable tree ornament and join our festive challenge on Thingiverse. 🎁✨


        📆 Submission Deadline: December 22
        🏷️Tag your designs with Holidays2023

        Click here to join and check out the over 300 other amazing designs

        How to Enter
        Design an Ornament
        Create a 3D printable tree ornament that captures the magic of the winter season. Think snowflakes, sleighs, reindeer, cozy mittens, or anything that embodies the joy of the holidays. Upload to Thingiverse
        Share your masterpiece on Thingiverse and add the tag Holidays2023. Don't forget to include a captivating description and images that showcase your design from different angles. Submit by December 22
        All entries must be submitted by December 22nd to be eligible for consideration.
          Entering a new design
         
        Entering an existing design
         
         
        Winning designs should:
        Be original Creations
        Your designs should be original works, avoiding the use of others' intellectual property without permission. Include STL Files
        Each submission must include at least one STL file for 3D printing. Showcase a Completed Print
        Provide at least one photograph featuring a completed print of your design. Include Documentation
        Share the creative journey! Include documentation of your design process, giving us a peek behind the scenes. For example, show a screenshot of the model in your design program. Use the Tag Holidays2023.
        Use this tag to ensure your entry is counted in the Tree Ornament Challenge. Be submitted after October 1st, 2023
        Ensure your design was uploaded to Thingiverse after October 1st, 2023. Adhere to Submission Guidelines and Terms of Service
        Make sure your submission aligns with our guidelines and Thingiverse's Terms of Service.  
        Good luck 🎉
        • 1 reply
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
      • Ultimaker Cura 5.6 stable released
        Cura now supports Method series printers!
         
        A year after the merger of Ultimaker and MakerBotQQ, we have unlocked the ability for users of our Method series printers to slice files using UltiMaker Cura. As of this release, users can find profiles for our Method and Method XL printers, as well as material profiles for ABS-R, ABS-CF, and RapidRinse. Meaning it’s now possible to use either Cura or the existing cloud-slicing software CloudPrint when printing with these printers or materials
        • 12 replies
    ×
    ×
    • Create New...