Git Product home page Git Product logo

Comments (6)

ktimb avatar ktimb commented on June 23, 2024 1

That's solved it. Thanks so much for your help and for the script!

from plexbackup.

alekdavis avatar alekdavis commented on June 23, 2024

Since you are are getting an error from PlexBackup.ps1, there is no question whether it exists in the current directory. The error comes from this block:

    try {
        $psVersion = GetPowerShellversion
        Write-Verbose "Microsoft PowerShell v$psVersion"

        # Add custom folder(s) to the module path.
        SetModulePath

        # Load module dependencies.
        LoadModules $MODULES
    }
    catch {
        throw (New-Object System.Exception( `
            "Error processing dependencies.", $_.Exception))
    }

I would try running it with the -Debug -Verbose flags to see if there is mor info. The output should tell you in what method the error occurs. If this does not help, I would run it in the debugger to see what is going on.

from plexbackup.

ktimb avatar ktimb commented on June 23, 2024

That gets me the following.

PS C:\PlexBackup-master> .\PlexBackup.ps1 -Debug -Verbose -Inactive
VERBOSE: Entered Main.
VERBOSE: Entered GetPowerShellVersion.
VERBOSE: Exiting GetScriptVersion.
Error processing dependencies. You cannot call a method on a null-valued expression.
VERBOSE: SingleInstance module is not loaded.
VERBOSE: Entered StopLogging.
VERBOSE: Logging has not started, so nothing to uninitialize.
VERBOSE: Exiting StopLogging.
VERBOSE: Exiting Main.

So I guess something is wrong with ScriptVersion?

from plexbackup.

alekdavis avatar alekdavis commented on June 23, 2024

What do you get if you enter this in PowerShell prompt:

$PSVersionTable.PSVersion

from plexbackup.

ktimb avatar ktimb commented on June 23, 2024

PS C:\PlexBackup-master> $PSVersionTable.PSVersion

Major Minor Patch PreReleaseLabel BuildLabel


7 3 6

Sorry, I'm not sure how to get that to format correctly.
Major 7
Minor 3
Patch 6

from plexbackup.

alekdavis avatar alekdavis commented on June 23, 2024

Ah. It looks like they changed it in PowerShell 7. In PowerShell 5, I get

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      22621  1778

So, for now, I would try running it from an earlier version of PowerShell because I have not tested it in PowerShell 7 (I think PowerShell 7 has its own environment, but it does not remove older versions). I will try to port it to PowerShell 7, but can't promise when. Let me know if it fixes the issue.

from plexbackup.

Related Issues (20)

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.