Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import-Module HPEOneView.830 fails #641

Open
PeterM-vLabs opened this issue May 31, 2023 · 1 comment
Open

Import-Module HPEOneView.830 fails #641

PeterM-vLabs opened this issue May 31, 2023 · 1 comment
Assignees
Labels
8.00 Impacts HPE OneView 8.00 library 8.30 Impacts HPE OneView 8.30 library

Comments

@PeterM-vLabs
Copy link

PeterM-vLabs commented May 31, 2023

Expected Behavior

Module imports successfully.

Actual Behavior

PS C:\Users\Administrator> Import-Module HPEOneView.830
At C:\Program Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\HPEOneView.830.psm1:1323 char:34
+ ...  static [void] WriteMessage ([HPEOneView.Appliance.Connection]$_Appli ...
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unable to find type [HPEOneView.Appliance.Connection].
At C:\Program Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\HPEOneView.830.psm1:1335 char:61
+ ... ecord]::new([HPEOneView.Library.UnsupportedOperationException]::new($ ...
+                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unable to find type [HPEOneView.Library.UnsupportedOperationException].
At C:\Program Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\HPEOneView.830.psm1:1341 char:27
+ ...  static [void] Write ([HPEOneView.Library.ApplianceConnection]$Applia ...
+                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unable to find type [HPEOneView.Library.ApplianceConnection].
At C:\Program Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\HPEOneView.830.psm1:1353 char:27
+     static [void] Write ([HPEOneView.Appliance.Connection]$Appliance)
+                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unable to find type [HPEOneView.Appliance.Connection].
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : TypeNotFound

Import-Module : The module to process 'HPEOneView.830.psm1', listed in field 'ModuleToProcess/RootModule' of module
manifest 'C:\Program Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\HPEOneView.830.psd1' was not
processed because no valid module was found in any module directory.
At line:1 char:1
+ Import-Module HPEOneView.830
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (HPEOneView.830:String) [Import-Module], PSInvalidOperationExceptio
   n
    + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand


### Steps to reproduce

```PowerShell
PS C:\Users\Administrator> Import-Module HPEOneView.830 -verbose
VERBOSE: Loading module from path 'C:\Program
Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\HPEOneView.830.psd1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted
versions.
VERBOSE: Loading 'Assembly' from path 'C:\Program
Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\lib\HPEOneView_Classes.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program
Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\lib\HPEOneView_Classes.dll'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program
Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\Appliance.format.ps1xml'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program
Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\Cluster.format.ps1xml'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program
Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\Networking.format.ps1xml'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program
Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\Server.format.ps1xml'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program
Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\Storage.format.ps1xml'.
VERBOSE: Populating RepositorySourceLocation property for module HPEOneView.830.
VERBOSE: Loading module from path 'C:\Program
Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\HPEOneView.830.psm1'.
At C:\Program Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\HPEOneView.830.psm1:1323 char:34
+ ...  static [void] WriteMessage ([HPEOneView.Appliance.Connection]$_Appli ...
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unable to find type [HPEOneView.Appliance.Connection].
At C:\Program Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\HPEOneView.830.psm1:1335 char:61
+ ... ecord]::new([HPEOneView.Library.UnsupportedOperationException]::new($ ...
+                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unable to find type [HPEOneView.Library.UnsupportedOperationException].
At C:\Program Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\HPEOneView.830.psm1:1341 char:27
+ ...  static [void] Write ([HPEOneView.Library.ApplianceConnection]$Applia ...
+                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unable to find type [HPEOneView.Library.ApplianceConnection].
At C:\Program Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\HPEOneView.830.psm1:1353 char:27
+     static [void] Write ([HPEOneView.Appliance.Connection]$Appliance)
+                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unable to find type [HPEOneView.Appliance.Connection].
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : TypeNotFound

Import-Module : The module to process 'HPEOneView.830.psm1', listed in field 'ModuleToProcess/RootModule' of module
manifest 'C:\Program Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3515.1690\HPEOneView.830.psd1' was not
processed because no valid module was found in any module directory.
At line:1 char:1
+ Import-Module HPEOneView.830 -verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (HPEOneView.830:String) [Import-Module], PSInvalidOperationExceptio
   n
    + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Version Information

HPE OneView PowerShell Library Version (Get-HPOVVersion or $PSLibraryVersion):
HPE OneView Appliance Version (Get-HPOVVersion -ApplianceVer):
Output from $PSVersionTable on your Windows Host:

# Output from $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.14409.1005
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14409.1005
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
@ChrisLynchHPE
Copy link
Member

Unfortunately, the support for PowerShell 5.x will no longer be carried forward. Please migrate to using PowerShell 7.x.

@ChrisLynchHPE ChrisLynchHPE self-assigned this May 31, 2023
@ChrisLynchHPE ChrisLynchHPE added 8.00 Impacts HPE OneView 8.00 library 8.30 Impacts HPE OneView 8.30 library and removed Bug labels May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.00 Impacts HPE OneView 8.00 library 8.30 Impacts HPE OneView 8.30 library
Projects
None yet
Development

No branches or pull requests

2 participants