Code Monkey home page Code Monkey logo

blenderupdater's Issues

[Feature request] Option to preserve the previous build

Right now the behaviour of the updater is to:

  • download selected build
  • extract
  • copy in target
  • clean up (I guess deleting the .zip file?)

Since we're dealing with daily builds, sometimes it happens that the newly downloaded build has a massive bug which makes it unusable at some point, if at all (it happened to me several times). In which case, you may want to get to your previous build if it was working. But it's not there anymore and you can't find it easily on the web.

So IMHO, it should be possible as an option to not override the previous build. Save it somewhere else. It might be as a form of a simple checkbox in the startup screen or the builds selection screen.
So the updater would do this:

  • save the current build somewhere (the easiest way I guess would be in a backup/ subdirectory)
  • download selected build
  • extract
  • copy in target
  • clean up (I guess deleting the .zip file?)

And in a bonus, it could be also handy to include a "backup" function in the updater. Click a backup button in the startup screen and it would copy the backup/ content into the blender path.

Gets stuck on uncompressing

When trying to update on windows 10 it gets stuck on the extracting stage. I have left it for a long time and it never actual extracts.

pipenv install fails due to mismatch in hashes

cloning master and running pipenv install results in a failure. See below.

OS: macOS 10.14.3

  • pipenv, version 2018.11.26

BlenderUpdater git:(master) pipenv install
Installing dependencies from Pipfile.lock (630160)…
An error occurred while installing pyside2==5.12.0 --hash=sha256:28c84514f4da903d00c59026c4d932b18ba5346b77959e5b23a36e68ed116e07 --hash=sha256:6630b1580fce924b953c8a8bed2e18a74d52b82cc8850ffdb9265b3977ac1c3d --hash=sha256:764f610693829fa315eaea1e0316faf138f43b9501f7fa1826e99be344f84f25 --hash=sha256:7f8064c9e443d9fa817e1d939c67c698d5039c5154d06df2bc5bea1ee08614ae --hash=sha256:aca1358217be52d003f1268c767a06ffe574a1715960ba6a10beda5c39acd34e --hash=sha256:e5fcd43289f43b0baaf2ff3629fea01e669b0f7e01264222ae963bda8e3e42f7! Will try again.
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 11/11 — 00:00:02
Installing initially failed dependencies…
[pipenv.exceptions.InstallError]: File "/usr/local/Cellar/pipenv/2018.11.26_2/libexec/lib/python3.7/site-packages/pipenv/core.py", line 1874, in do_install
[pipenv.exceptions.InstallError]: keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]: File "/usr/local/Cellar/pipenv/2018.11.26_2/libexec/lib/python3.7/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]: pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]: File "/usr/local/Cellar/pipenv/2018.11.26_2/libexec/lib/python3.7/site-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]: retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]: File "/usr/local/Cellar/pipenv/2018.11.26_2/libexec/lib/python3.7/site-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]: _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]: File "/usr/local/Cellar/pipenv/2018.11.26_2/libexec/lib/python3.7/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]: raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Collecting pyside2==5.12.0 (from -r /var/folders/1x/cr7fmmds4wvd08c4gmz5qpcc0000gn/T/pipenv-wb2cfhnv-requirements/pipenv-xsgt1qpq-requirement.txt (line 1))', ' Using cached https://files.pythonhosted.org/packages/42/53/8364428b89769890a6d3b655fc91af93ff3e37945873f47e49bb8ad44402/PySide2-5.12.0-5.12.0_1-cp35.cp36.cp37-abi3-macosx_10_12_intel.whl']
[pipenv.exceptions.InstallError]: ['THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.', ' pyside2==5.12.0 from https://files.pythonhosted.org/packages/42/53/8364428b89769890a6d3b655fc91af93ff3e37945873f47e49bb8ad44402/PySide2-5.12.0-5.12.0_1-cp35.cp36.cp37-abi3-macosx_10_12_intel.whl#sha256=fbc1782be7d86527c63404f198999db8663e9d09c07b0f2838d5459170f8ebb1 (from -r /var/folders/1x/cr7fmmds4wvd08c4gmz5qpcc0000gn/T/pipenv-wb2cfhnv-requirements/pipenv-xsgt1qpq-requirement.txt (line 1)):', ' Expected sha256 28c84514f4da903d00c59026c4d932b18ba5346b77959e5b23a36e68ed116e07', ' Expected or 6630b1580fce924b953c8a8bed2e18a74d52b82cc8850ffdb9265b3977ac1c3d', ' Expected or 764f610693829fa315eaea1e0316faf138f43b9501f7fa1826e99be344f84f25', ' Expected or 7f8064c9e443d9fa817e1d939c67c698d5039c5154d06df2bc5bea1ee08614ae', ' Expected or aca1358217be52d003f1268c767a06ffe574a1715960ba6a10beda5c39acd34e', ' Expected or e5fcd43289f43b0baaf2ff3629fea01e669b0f7e01264222ae963bda8e3e42f7', ' Got fbc1782be7d86527c63404f198999db8663e9d09c07b0f2838d5459170f8ebb1']
ERROR: ERROR: Package installation failed...

Run Blender button breaks drag-n-drop functionality

A small issue is that opening Blender from the interface button after finishing the update seems to disable drag and drop for opening scenes or importing images. Just re/starting from the usual shortcut works fine.
This is easy once you know of it but might be an annoyance for some users.

Blender 2.8 Branch

Really Great tools to simply try and update the latest version. Adding a way to update all branch or only the 2.8 branch can be a great thing.

Not really an issue, it's a feature request :) .

some proposals

I propose to be able to work also with the latest stable versions and to filter by architecture. Here's a little mockup:
proposal

fix Run Blender button in Linux

To run blender on linux would be like this.

def exec_linux(self):
        system(dir_ + '/blender')
        logger.info('Executing ' + dir_ + '/blender')

Greetings.

Two crashes

  1. I started the program, clicked [Version Check] and got a warning about needing a valid directory.
    Clicked the folder icon then clicked the explorer window thing that pops up and it crashed.
    (happens when trying to version check on a blank name first)

  2. Started the program, clicked the folder and selected my main Blender folder (because I always use daily).
    Clicked [Version Check] and selected the Blender version I use.
    Program downloaded Blender and etc, then it closed. I figured that's how it works.
    To make sure, I made a blank folder and tried again. It crashed without warning because I was running the Blender.exe that's already in the folder.

Now that I figured out how to get it to work without crashing, it'll be super convenient.

I can't get it freezed

Neither your version nor my fork... I just get this
image

From screenshotting the pyinstaller window I can verify that the cause is that it can't find QT-stuff from Qt.py
How did you install Qt.py?

Unable to get update information Mac High Sierra

In mac 10.13.2 High Sierra get this error:

Dialog:
Unable to get update information

python3 BlenderUpdater.py
libpng warning: iCCP: known incorrect sRGB profile
Traceback (most recent call last):
  File "BlenderUpdater.py", line 663, in <module>
    main()
  File "BlenderUpdater.py", line 655, in main
    window = BlenderUpdater()
  File "BlenderUpdater.py", line 207, in __init__
    UpdateData = json.loads(Appupdate)
UnboundLocalError: local variable 'Appupdate' referenced before assignment

My temporal solution is:
comment from line 201 to 214 looks like it does start well.

Usability stuff

  • swap Quit and Version Check button
  • check earlier if chosen directory exists
  • provide an overview of progress (List of tasks)
  • provide filtering options for the builds
  • add self-update check

Modifications to blender.org again

Blender.org changed their download page again. This time they've added javascript loading of the content. Looking into it atm but may require bigger changes again. 😞

Malwarebytes vs. BlenderUpdater.exe

This is not really a "bug" but starting from this morning blenderupdater.exe version 1.9.3 is seen by Malwarebytes (antimalware program) as containing a malware called Adware.IStartSurf and therefore it's being moved to the quarantine or deleted. I was able to add some exclusions to Malwarebytes and now it doesn't remove the program but asks for permissions to run it. This could also be a false positive.

It has stopped working since 20/12/2018

That´s the problem.

It has stopped working since 20/12/2018

I open it, configure the folder, it recognizes build on the site and version but when I press the build button to download it, it does nothing.

Cheers!

The program gets stuck on 'Downloading' when internet is lost

The current behavior is:

  • Open the updater
  • Run the updater
  • The internet gets disconnected
  • The program gets stuck on 'Downloading' and does not continue when the internet resumes

This behavior is not desired as it requires a restart of the updater to resume downloading. A solution would be to pause the download when the internet is disconnected and resume when a connection is available again. A lesser solution would be to restart the download if not possible to resume. A notification could help facilitate the information that there is no connection to the internet available.

Buttons overlapping

image

With so many download options, the filter buttons at the bottom are almost impossible to press.

Error: No module named 'requests'

Hi,

I'm getting:

Traceback (most recent call last): File "BlenderUpdater.py", line 35, in <module> import requests ModuleNotFoundError: No module named 'requests'

Using python3 via brew with the following command:

python3 BlenderUpdater.py

Any ideas?

Thanks!

Getting stuck on 'copying' with file paths without privileges

Hi, I'm getting stuck on 'copying' with the path name set to blender inside C:\Program Files\Blender Foundation\Blender on windows 10.

This is only fixed by running the program in admin mode.

A warning would be nice, or a button to run the program in admin mode and close the non-admin mode instance, or both.

This also relates to another bug. The program says the selected version is already installed when you run the program again, even though it isn't.

Gets stuck on uncompressing

When trying to update on windows 10 it gets stuck on the extracting stage. I have left it for a long time and it never actual extracts.

fix Run Blender button in mac

I get some errors when click in "Run Blender" button.

errors:

sh: /Applications/lastBlender/\blender.app: No such file or directory
sh: /Applications/lastBlender/blender.app/Contents/MacOS/blender: Permission denied

Solution:
for solve it you can edit your sexec_osx section this way and so on if it works:

def exec_osx(self):
        blenderPath = os.path.join('"' + dir_ + "blender.app/Contents/MacOS/blender" + '"')
        system("chmod +x " + blenderPath)
        system(blenderPath)
        logger.info('Executing ' + dir_ + 'blender.app')

Updater displays false 'Version already installed' notification when interrupted

The current behavior is:

  • Open the updater
  • Run the updater
  • Updater gets interupted (See #30)
  • Restart updater manually
  • Check for update
  • Select update
  • Notification displays showing 'Version already installed'

Maybe more debugging needs to be done regarding if the updater succeded in the case of the interuption But taking the side of it didn't, this notfication is false.

Stuck on "Extracting" when Blender is open

Current behavior:

  • Open Blender
  • Open updater
  • Run updater
  • The updater downloads the new update and gets stuck on "Extracting"

This is not ideal. A warning should pop up to prompt the user to close Blender.

Error message at startup

Hi again, and sorry to bother you with something so trivial, but this window now appears when I launch BlenderUpdater:
Screenshot 2022-04-02 110412
Pressing ok opens the usual program window normally.
Any ideas how to not have that window popup at startup?
Thanks!

Piotr

Empty build list

Hello!
It seems something changed again. I'm getting this since this morning:
image
Basically an empty list :)
Am I the only one?
Thanks!

Piotr

Blank choice after pressing Version Check on start screen

Hello!
There seems to be a problem since the last couple of days.
I get this (on two of my Win11 gears):
Screenshot 2021-11-26 140454
So basically a blank screen.
Am I the only one?
Thanks!
Piotr
PS And thanks again for a very super convenient utility!!!

Total Update version Blender3D

Hi
Can you update different blender versions in different folders of one button ?
so that you can configure different folders once
It would also be nice to do updates for normal non-beta versions

PS:
Thanks for your work !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.