GithubHelp home page GithubHelp logo

Comments (18)

kakkun61 avatar kakkun61 commented on June 10, 2024 1

The version 3.3 is released, which includes #12.

Please check it out.

from ghcman.

kakkun61 avatar kakkun61 commented on June 10, 2024

Thanks for your trying to use ghcups and sorry for my late reply.

I cannot reproduce it.
This may be caused by the same reason with this issue psake/psake#163.
Can you try it?

from ghcman.

kozross avatar kozross commented on June 10, 2024

I'm not familiar enough with Windows to determine whether the issue is that or not. I'm running PowerShell as an administrator here, rather than as myself - does that help?

from ghcman.

kakkun61 avatar kakkun61 commented on June 10, 2024

Please check your PowerShell version to type $PSVersionTable in the PowerShell prompt.

This is my case.

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.18362.145
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18362.145
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

from ghcman.

spamviech avatar spamviech commented on June 10, 2024

I have the same problem (even though the error message is in german).
Output from $PSVersionTable is in my case:

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.18362.752
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18362.752
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

The link you posted above was confusing me, since my Powershell-knowledge is rather limited.

from ghcman.

kakkun61 avatar kakkun61 commented on June 10, 2024

Hmm. I cannot reproduce it, though I tried again.
I cannot fix this issue soon. Sorry.

from ghcman.

spamviech avatar spamviech commented on June 10, 2024

Just tried again, error still occurs.

Full error message:

PS C:\WINDOWS\system32> Install-Module ghcups

Nicht vertrauenswürdiges Repository
Sie installieren die Module aus einem nicht vertrauenswürdigen Repository. Wenn Sie diesem Repository vertrauen, ändern
 Sie dessen InstallationPolicy-Wert, indem Sie das Set-PSRepository-Cmdlet ausführen. Möchten Sie die Module von
'PSGallery' wirklich installieren?
[J] Ja  [A] Ja, alle  [N] Nein  [K] Nein, keine  [H] Anhalten  [?] Hilfe (Standard ist "N"): j
PackageManagement\Install-Package : Das Modul "ghcups" kann nicht installiert oder aktualisiert werden, weil es kein
wohlgeformtes Modul ist.
In C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 Zeichen:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
   Exception
    + FullyQualifiedErrorId : InvalidManifestModule,Test-ValidManifestModule,Microsoft.PowerShell.PackageManagement.Cm
   dlets.InstallPackage

Does this help?

Installed ghc through choco in the meantime, but would prefer to use this project.

Edit:
wouldn't be suprised, if it was a UTF8 error.
Looking at file ghcups.psd1, the author-field containts non-ASCII characters, so maybe they are the problem.
Shouldn't be, but experience advices me to be careful about them.

Edit²:
Ran it again with -Verbose -Debug:

PS C:\WINDOWS\system32> Install-Module ghcups -Verbose -Debug
DEBUG: 00:00:00.0000012 Calling New() : MethodName = 'GetDynamicOptions'

Bestätigung
Vorgang fortsetzen?
[J] Ja  [A] Ja, alle  [B] Befehl anhalten  [H] Anhalten  [?] Hilfe (Standard ist "J"): a
DEBUG: 00:00:00.0001040 Verbose: True
DEBUG: 00:00:00.0001656 Debug: True
DEBUG: 00:00:00.0002167 Name: ghcups
DEBUG: 00:00:00.0024267 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.0043598 Im PowerShellGet-Anbieter – "Get-DynamicOptions".
DEBUG: 00:00:00.0078569 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0207826 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0208327 Verbose: True
DEBUG: 00:00:00.0208645 Debug: True
DEBUG: 00:00:00.0208946 Name: ghcups
DEBUG: 00:00:00.0219439 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.0229538 Im PowerShellGet-Anbieter – "Get-DynamicOptions".
DEBUG: 00:00:00.0267066 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0329077 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0329556 Verbose: True
DEBUG: 00:00:00.0329873 Debug: True
DEBUG: 00:00:00.0330192 Name: ghcups
DEBUG: 00:00:00.0339772 INVOKING PowerShell Fn Get-DynamicOptions with args Package that has length 1
DEBUG: 00:00:00.0350040 Im PowerShellGet-Anbieter – "Get-DynamicOptions".
DEBUG: 00:00:00.0410984 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0448547 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0448842 Verbose: True
DEBUG: 00:00:00.0449020 Debug: True
DEBUG: 00:00:00.0449198 Name: ghcups
DEBUG: 00:00:00.0455769 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1
DEBUG: 00:00:00.0462094 Im PowerShellGet-Anbieter – "Get-DynamicOptions".
DEBUG: 00:00:00.0494087 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:02.9110363 Calling SearchForPackages. Name='ghcups'
AUSFÜHRLICH: Der Anbieter "PowerShellGet" wird für die Paketsuche verwendet.
DEBUG: 00:00:02.9119542 PackageProvider::FindPackage with name ghcups
DEBUG: 00:00:02.9121847 Calling SearchForPackages After Select 1
DEBUG: 00:00:02.9633899 Calling New() : MethodName = 'FindPackage'
DEBUG: 00:00:02.9642317 ProviderName: PowerShellGet
DEBUG: 00:00:02.9649277 Type: Module
DEBUG: 00:00:02.9656066 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:02.9661234 Debug: True
DEBUG: 00:00:02.9666234 Scope: AllUsers
DEBUG: 00:00:02.9671705 Verbose: True
DEBUG: 00:00:02.9676833 Name: ghcups
DEBUG: 00:00:02.9685715 INVOKING PowerShell Fn Find-Package with args System.String[], , ,  that has length 4
DEBUG: 00:00:02.9692613 Im PowerShellGet-Anbieter – "Find-Package".
DEBUG: 00:00:02.9698451 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:02.9704126 OPTION: Type => Module
DEBUG: 00:00:02.9721453 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:02.9726724 OPTION: Debug => True
DEBUG: 00:00:02.9738545 OPTION: Scope => AllUsers
DEBUG: 00:00:02.9744083 OPTION: Verbose => True
DEBUG: 00:00:02.9750127 OPTION: Name => ghcups
AUSFÜHRLICH: Der Parameter '-Repository' wurde nicht angegeben. PowerShellGet verwendet alle registrierten Repositorys.
AUSFÜHRLICH: Das Anbieterobjekt für den PackageManagement-Anbieter "NuGet" wird abgerufen.
AUSFÜHRLICH: Der angegebene Speicherort ist "https://www.powershellgallery.com/api/v2", und PackageManagementProvider
ist "NuGet".
DEBUG: 00:00:02.9804261 PackageProvider::FindPackage with name ghcups
DEBUG: 00:00:02.9834966 Calling 'NuGet'::'FindPackage' - name='ghcups', requiredVersion='',minimumVersion='',
maximumVersion='''.
DEBUG: 00:00:02.9845187 Iterating 'ghcups'.
DEBUG: 00:00:02.9853470 There are '0' registered sources in 'NuGet' provider.
DEBUG: 00:00:02.9860661 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in
'NuGet' provider.
DEBUG: 00:00:03.6592397 Source 'https://www.powershellgallery.com/api/v2' is validated.
DEBUG: 00:00:03.6642819 Calling 'NuGetRequest'::'GetPackageById', 'ghcups'.
DEBUG: 00:00:03.9338029 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'ghcups'.
DEBUG: 00:00:03.9557099 Calling 'NuGetClient'::'FindPackage'.
AUSFÜHRLICH: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='ghcups'' for ''.
DEBUG: 00:00:03.9640953 Downloading
'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='ghcups'&$skip=0&$top=40'.
DEBUG: 00:00:04.5402598 Completed downloading
'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='ghcups'&$skip=0&$top=40'.
DEBUG: 00:00:04.5478972 '4' packages received in the last request.
AUSFÜHRLICH: Total package yield:'1' for the specified package 'ghcups'.
DEBUG: 00:00:04.5580758 Completed iterating for 'ghcups'.
DEBUG: 00:00:04.5760226 Done calling powershell «Find-Package» «PSModule»
DEBUG: 00:00:04.5913304 Calling New() : MethodName = 'GetInstalledPackages'
DEBUG: 00:00:04.5940377 ProviderName: PowerShellGet
DEBUG: 00:00:04.5962847 Type: Module
DEBUG: 00:00:04.5991525 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:04.6019506 Debug: True
DEBUG: 00:00:04.6029851 Scope: AllUsers
DEBUG: 00:00:04.6037888 Verbose: True
DEBUG: 00:00:04.6045726 Name: ghcups
DEBUG: 00:00:04.6057020 INVOKING PowerShell Fn Get-InstalledPackage with args ghcups, 2.0.1, ,  that has length 4
DEBUG: 00:00:04.6089611 Im PowerShellGet-Anbieter – "Get-InstalledPackage".
DEBUG: 00:00:04.6097314 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:04.6108586 OPTION: Type => Module
DEBUG: 00:00:04.6116843 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:04.6127967 OPTION: Debug => True
DEBUG: 00:00:04.6136369 OPTION: Scope => AllUsers
DEBUG: 00:00:04.6144914 OPTION: Verbose => True
DEBUG: 00:00:04.6153695 OPTION: Name => ghcups
DEBUG: 00:00:04.6359972 Die Funktion "Get-InstalledPackage" des PowerShell-Skripts "PSModule" gibt NULL zurück.
DEBUG: 00:00:04.6377982 Done calling powershell «Get-InstalledPackage» «PSModule»

Bestätigung
Möchten Sie diese Aktion wirklich ausführen?
Ausführen des Vorgangs "Install-Module" für das Ziel "Die Version '2.0.1' des Moduls 'ghcups'.".
[J] Ja  [A] Ja, alle  [N] Nein  [K] Nein, keine  [H] Anhalten  [?] Hilfe (Standard ist "J"): a

Nicht vertrauenswürdiges Repository
Sie installieren die Module aus einem nicht vertrauenswürdigen Repository. Wenn Sie diesem Repository vertrauen, ändern
 Sie dessen InstallationPolicy-Wert, indem Sie das Set-PSRepository-Cmdlet ausführen. Möchten Sie die Module von
'PSGallery' wirklich installieren?
[J] Ja  [A] Ja, alle  [N] Nein  [K] Nein, keine  [H] Anhalten  [?] Hilfe (Standard ist "N"): a
DEBUG: 00:00:09.5516358 Calling New() : MethodName = 'InstallPackage'
DEBUG: 00:00:09.5530601 ProviderName: PowerShellGet
DEBUG: 00:00:09.5537225 Type: Module
DEBUG: 00:00:09.5543355 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:09.5549839 Debug: True
DEBUG: 00:00:09.5557370 Scope: AllUsers
DEBUG: 00:00:09.5572104 Verbose: True
DEBUG: 00:00:09.5577383 Name: ghcups
DEBUG: 00:00:09.5591682 INVOKING PowerShell Fn Install-Package with args
NuGet|ghcups|2.0.1|https://www.powershellgallery.com/api/v2|Module that has length 1
DEBUG: 00:00:09.5602332 Im PowerShellGet-Anbieter – "Install-Package".
DEBUG: 00:00:09.5609355 Im PowerShellGet-Anbieter – "Install-PackageUtility".
DEBUG: 00:00:09.5616077 'FastPackageReference' ist
'NuGet|ghcups|2.0.1|https://www.powershellgallery.com/api/v2|Module'.
DEBUG: 00:00:09.5625860 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:09.5631758 OPTION: Type => Module
DEBUG: 00:00:09.5637614 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:09.5643223 OPTION: Debug => True
DEBUG: 00:00:09.5648812 OPTION: Scope => AllUsers
DEBUG: 00:00:09.5665777 OPTION: Verbose => True
DEBUG: 00:00:09.5672019 OPTION: Name => ghcups
AUSFÜHRLICH: Als Installationsart wurde 'AllUsers' angegeben.
AUSFÜHRLICH: Das angegebene Modul wird in 'C:\Program Files\WindowsPowerShell\Modules' installiert.
DEBUG: 00:00:09.5691909 ArtifactType is Module
AUSFÜHRLICH: Der angegebene Speicherort ist "NuGet", und PackageManagementProvider ist "NuGet".
DEBUG: 00:00:11.1141935 Locally available Item: microsoft.powershell.operation.validation!#!1.0.1
DEBUG: 00:00:11.1151531 Locally available Item: packagemanagement!#!1.0.0.1
DEBUG: 00:00:11.1159639 Locally available Item: pester!#!3.4.0
DEBUG: 00:00:11.1168324 Locally available Item: powershellget!#!1.0.0.1
DEBUG: 00:00:11.1179016 Locally available Item: powershell-yaml!#!0.4.2
DEBUG: 00:00:11.1187028 Locally available Item: psreadline!#!2.0.0
DEBUG: 00:00:11.1192721 Locally available Item: appbackgroundtask!#!1.0.0.0
DEBUG: 00:00:11.1198449 Locally available Item: applocker!#!2.0.0.0
DEBUG: 00:00:11.1206641 Locally available Item: appvclient!#!1.0.0.0
DEBUG: 00:00:11.1212561 Locally available Item: appx!#!2.0.1.0
DEBUG: 00:00:11.1218327 Locally available Item: assignedaccess!#!1.0.0.0
DEBUG: 00:00:11.1224060 Locally available Item: bitlocker!#!1.0.0.0
DEBUG: 00:00:11.1229861 Locally available Item: bitstransfer!#!2.0.0.0
DEBUG: 00:00:11.1246497 Locally available Item: branchcache!#!1.0.0.0
DEBUG: 00:00:11.1252743 Locally available Item: cimcmdlets!#!1.0.0.0
DEBUG: 00:00:11.1263508 Locally available Item: configci!#!1.0
DEBUG: 00:00:11.1269443 Locally available Item: configdefender!#!1.0
DEBUG: 00:00:11.1276281 Locally available Item: defender!#!1.0
DEBUG: 00:00:11.1282728 Locally available Item: deliveryoptimization!#!1.0.2.0
DEBUG: 00:00:11.1289874 Locally available Item: directaccessclientcomponents!#!1.0.0.0
DEBUG: 00:00:11.1295468 Locally available Item: dism!#!3.0
DEBUG: 00:00:11.1317262 Locally available Item: dnsclient!#!1.0.0.0
DEBUG: 00:00:11.1324249 Locally available Item: eventtracingmanagement!#!1.0.0.0
DEBUG: 00:00:11.1330224 Locally available Item: international!#!2.0.0.0
DEBUG: 00:00:11.1346285 Locally available Item: iscsi!#!1.0.0.0
DEBUG: 00:00:11.1352915 Locally available Item: ise!#!1.0.0.0
DEBUG: 00:00:11.1358563 Locally available Item: kds!#!1.0.0.0
DEBUG: 00:00:11.1365487 Locally available Item: microsoft.powershell.archive!#!1.0.1.0
DEBUG: 00:00:11.1371369 Locally available Item: microsoft.powershell.diagnostics!#!3.0.0.0
DEBUG: 00:00:11.1377002 Locally available Item: microsoft.powershell.host!#!3.0.0.0
DEBUG: 00:00:11.1382368 Locally available Item: microsoft.powershell.localaccounts!#!1.0.0.0
DEBUG: 00:00:11.1387916 Locally available Item: microsoft.powershell.management!#!3.1.0.0
DEBUG: 00:00:11.1393451 Locally available Item: microsoft.powershell.odatautils!#!1.0
DEBUG: 00:00:11.1398957 Locally available Item: microsoft.powershell.security!#!3.0.0.0
DEBUG: 00:00:11.1404352 Locally available Item: microsoft.powershell.utility!#!3.1.0.0
DEBUG: 00:00:11.1409964 Locally available Item: microsoft.wsman.management!#!3.0.0.0
DEBUG: 00:00:11.1415562 Locally available Item: mmagent!#!1.0
DEBUG: 00:00:11.1421763 Locally available Item: msdtc!#!1.0.0.0
DEBUG: 00:00:11.1427366 Locally available Item: msmq!#!1.0.0.0
DEBUG: 00:00:11.1446818 Locally available Item: netadapter!#!2.0.0.0
DEBUG: 00:00:11.1452212 Locally available Item: netconnection!#!1.0.0.0
DEBUG: 00:00:11.1458196 Locally available Item: neteventpacketcapture!#!1.0.0.0
DEBUG: 00:00:11.1464777 Locally available Item: netlbfo!#!2.0.0.0
DEBUG: 00:00:11.1470383 Locally available Item: netnat!#!1.0.0.0
DEBUG: 00:00:11.1476095 Locally available Item: netqos!#!2.0.0.0
DEBUG: 00:00:11.1481554 Locally available Item: netsecurity!#!2.0.0.0
DEBUG: 00:00:11.1487128 Locally available Item: netswitchteam!#!1.0.0.0
DEBUG: 00:00:11.1492582 Locally available Item: nettcpip!#!1.0.0.0
DEBUG: 00:00:11.1498131 Locally available Item: networkconnectivitystatus!#!1.0.0.0
DEBUG: 00:00:11.1503675 Locally available Item: networkswitchmanager!#!1.0.0.0
DEBUG: 00:00:11.1509205 Locally available Item: networktransition!#!1.0.0.0
DEBUG: 00:00:11.1516006 Locally available Item: pcsvdevice!#!1.0.0.0
DEBUG: 00:00:11.1523196 Locally available Item: persistentmemory!#!1.0.0.0
DEBUG: 00:00:11.1528723 Locally available Item: pki!#!1.0.0.0
DEBUG: 00:00:11.1546472 Locally available Item: pnpdevice!#!1.0.0.0
DEBUG: 00:00:11.1553328 Locally available Item: printmanagement!#!1.1
DEBUG: 00:00:11.1560765 Locally available Item: processmitigations!#!1.0.11
DEBUG: 00:00:11.1568017 Locally available Item: provisioning!#!3.0
DEBUG: 00:00:11.1573451 Locally available Item: psdesiredstateconfiguration!#!1.1
DEBUG: 00:00:11.1578882 Locally available Item: psdiagnostics!#!1.0.0.0
DEBUG: 00:00:11.1584574 Locally available Item: psscheduledjob!#!1.1.0.0
DEBUG: 00:00:11.1591697 Locally available Item: psworkflow!#!2.0.0.0
DEBUG: 00:00:11.1597328 Locally available Item: psworkflowutility!#!1.0.0.0                                             DEBUG: 00:00:11.1603603 Locally available Item: scheduledtasks!#!1.0.0.0                                                DEBUG: 00:00:11.1610450 Locally available Item: secureboot!#!2.0.0.0                                                    DEBUG: 00:00:11.1616379 Locally available Item: smbshare!#!2.0.0.0                                                      DEBUG: 00:00:11.1622613 Locally available Item: smbwitness!#!2.0.0.0                                                    DEBUG: 00:00:11.1628217 Locally available Item: startlayout!#!1.0.0.0                                                   DEBUG: 00:00:11.1646872 Locally available Item: storage!#!2.0.0.0                                                       DEBUG: 00:00:11.1652429 Locally available Item: storagebuscache!#!1.0.0.0                                               DEBUG: 00:00:11.1660008 Locally available Item: tls!#!2.0.0.0                                                           DEBUG: 00:00:11.1665451 Locally available Item: troubleshootingpack!#!1.0.0.0                                           DEBUG: 00:00:11.1682316 Locally available Item: trustedplatformmodule!#!2.0.0.0                                         DEBUG: 00:00:11.1687118 Locally available Item: uev!#!2.1.639.0                                                         DEBUG: 00:00:11.1694625 Locally available Item: vpnclient!#!2.0.0.0                                                     DEBUG: 00:00:11.1700463 Locally available Item: wdac!#!1.0.0.0                                                          DEBUG: 00:00:11.1705878 Locally available Item: whea!#!2.0.0.0                                                          DEBUG: 00:00:11.1711527 Locally available Item: windowsdeveloperlicense!#!1.0.0.0                                       DEBUG: 00:00:11.1716876 Locally available Item: windowserrorreporting!#!1.0                                             DEBUG: 00:00:11.1722519 Locally available Item: windowssearch!#!1.0.0.0                                                 DEBUG: 00:00:11.1727957 Locally available Item: windowsupdate!#!1.0.0.0                                                 DEBUG: 00:00:11.1744287 Locally available Item: windowsupdateprovider!#!1.0.0.2                                         AUSFÜHRLICH: Das Modul 'ghcups' der Version '2.0.1' wird aus Repository 'https://www.powershellgallery.com/api/v2'
heruntergeladen.
DEBUG: 00:00:11.1803587 Calling 'NuGet'::'InstallPackage',
'$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\Z2hjdXBz\Mi4wLjE=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY2
9tL2FwaS92Mg==\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:11.1813850 Calling 'NuGetRequest'::'GetPackageByFastpath',
'$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\Z2hjdXBz\Mi4wLjE=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY2
9tL2FwaS92Mg==\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:11.1824933 Calling 'NuGetRequest'::'ResolvePackageSource', 'https://www.powershellgallery.com/api/v2'.
DEBUG: 00:00:11.1831854 Calling 'NuGetRequest'::'FindRegisteredSource', 'https://www.powershellgallery.com/api/v2'.
DEBUG: 00:00:11.1852252 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in
'NuGet' provider.
DEBUG: 00:00:12.1398160 Calling 'HttpClientPackageRepository'::'FindPackage', 'ghcups'.
DEBUG: 00:00:12.1413342 Calling 'NuGetClient'::'FindPackage'.
AUSFÜHRLICH: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='ghcups'' for ''.
DEBUG: 00:00:12.1437396 Downloading
'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='ghcups'&$skip=0&$top=40'.
DEBUG: 00:00:12.7191434 Completed downloading
'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='ghcups'&$skip=0&$top=40'.
DEBUG: 00:00:12.7311936 '4' packages received in the last request.
DEBUG: 00:00:12.7379058 'Package version' is '2.0.1'.
DEBUG: 00:00:12.7415539 'Request's Destination' is 'C:\Users\Wolfgang\AppData\Local\Temp\1484521634'.
DEBUG: 00:00:12.7478724 Calling 'NuGetClient'::'GetPackageDependencies'.
AUSFÜHRLICH: Package 'powershell-yaml' is already installed.
AUSFÜHRLICH: Package 'powershell-yaml' is already installed.
DEBUG: 00:00:12.7599983 Returning the call 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:12.7916043 Calling 'NuGetClient'::'InstallPackage'.
AUSFÜHRLICH: InstallPackage' - name='ghcups',
version='2.0.1',destination='C:\Users\Wolfgang\AppData\Local\Temp\1484521634'
AUSFÜHRLICH: DownloadPackage' - name='ghcups',
version='2.0.1',destination='C:\Users\Wolfgang\AppData\Local\Temp\1484521634\ghcups\ghcups.nupkg',
uri='https://www.powershellgallery.com/api/v2/package/ghcups/2.0.1'
AUSFÜHRLICH: Downloading 'https://www.powershellgallery.com/api/v2/package/ghcups/2.0.1'.
AUSFÜHRLICH: Completed downloading 'https://www.powershellgallery.com/api/v2/package/ghcups/2.0.1'.
AUSFÜHRLICH: Completed downloading 'ghcups'.
AUSFÜHRLICH: Hash for package 'ghcups' does not match hash provided from the server.
DEBUG: 00:00:13.3486118 Calling 'NuGetClient'::'InstallPackageLocal'.
AUSFÜHRLICH: InstallPackageLocal' - name='ghcups',
version='2.0.1',destination='C:\Users\Wolfgang\AppData\Local\Temp\1484521634'
DEBUG: 00:00:13.3640669 C:\Users\Wolfgang\AppData\Local\Temp\1484521634\ghcups\ghcups.nupkg
DEBUG: 00:00:13.4980204 Returning the call 'NuGetClient'::'InstallPackageLocal'.
DEBUG: 00:00:13.5097209 Returning the call 'NuGetClient'::'InstallSinglePackage'.

Bestätigung
Das Modul "ghcups" kann nicht installiert oder aktualisiert werden, weil es kein wohlgeformtes Modul ist.
[J] Ja  [A] Ja, alle  [B] Befehl anhalten  [H] Anhalten  [?] Hilfe (Standard ist "J"): a
PackageManagement\Install-Package : Das Modul "ghcups" kann nicht installiert oder aktualisiert werden, weil es kein
wohlgeformtes Modul ist.
In C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 Zeichen:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
   Exception
    + FullyQualifiedErrorId : InvalidManifestModule,Test-ValidManifestModule,Microsoft.PowerShell.PackageManagement.Cm
   dlets.InstallPackage

Edit³:
Found something about a hash mismatch in above error message:

AUSFÜHRLICH: Completed downloading 'https://www.powershellgallery.com/api/v2/package/ghcups/2.0.1'.
AUSFÜHRLICH: Completed downloading 'ghcups'.
AUSFÜHRLICH: Hash for package 'ghcups' does not match hash provided from the server.

from ghcman.

spamviech avatar spamviech commented on June 10, 2024

It is definitely an encoding error.
After enabling the beta-UTF8-support in Windows (Windows Control Panel->Region->Administrative->Change system locale -> add checkmark for Beta ut8-support -> Restart; see here for a path to the location) the installation succeded.

Sadly, after disabling it again (since it jumbles up umlauts) I couldn't use it again (Import-Module failed).
Install-Module simply terminates, so it appears to stay installed, even though unusable.

My locale is "Deusch (Deutschland)", maybe this helps to reproduce it.

PS:
Show-Ghc for some reason only found 7.* versions, even though I have 8.10.1 (using choco) installed already.

from ghcman.

kakkun61 avatar kakkun61 commented on June 10, 2024

Thank you for your investigation.
Can you tell me your terminal's code page? Run chcp command to know it.

Show-Ghc for some reason only found 7.* versions, even though I have 8.10.1 (using choco) installed already.

Can you create a new issue for this?

from ghcman.

spamviech avatar spamviech commented on June 10, 2024
PS C:\WINDOWS\system32> chcp
Aktive Codepage: 850.

Can you create a new issue for this?

Sure, once I find a time to restart my PC.
Forgot the exact output and it's not working with my current codepage.
Should be later today.

Edit: done

from ghcman.

kakkun61 avatar kakkun61 commented on June 10, 2024

Neither a code page 850, the Docker Windows container for PowerShell nor Deutsche locale reproduced this problem on my machine.

from ghcman.

spamviech avatar spamviech commented on June 10, 2024

Weird (and a unfortunate), it happens to me on two machines...

Can you point me to a good PS-Module-Tutorial page, so I can tinker with it myself once I need another reason not to do my university assignments find some time.

from ghcman.

kakkun61 avatar kakkun61 commented on June 10, 2024

Thank you for your cooperation.

This project is my first PowerShell module and I do not actually know PowerShell modules so much.

The document I read when I started to write this module is written in Japanese.
https://tech.guitarrapc.com/entry/2013/12/03/014013

Of course I read the Microsoft documents.
https://docs.microsoft.com/en-us/powershell/scripting/developer/module/writing-a-windows-powershell-module

from ghcman.

spamviech avatar spamviech commented on June 10, 2024

Windows and UTF8 is a special kind of thing...

I cloned the repository into my local module path. Import-Module then gave me this error message (basically unknown characters).

PS C:\Users\Wolfgang> import-module ghcups
import-module : Das Modulmanifest "C:\Users\Wolfgang\Documents\WindowsPowerShell\Modules\ghcups\ghcups.psd1" konnte
nicht verarbeitet werden, da es keine gültige, eingeschränkte Sprachdatei für Windows PowerShell ist. Entfernen Sie
die für die eingeschränkte Sprache unzulässigen Elemente:
In C:\Users\Wolfgang\Documents\WindowsPowerShell\Modules\ghcups\ghcups.psd1:24 Zeichen:35
+ Author = 'Kazuki Okamoto (岡本和樹)'
+                                   ~~~~
Unerwartetes Token "Œæ¨¹" in Ausdruck oder Anweisung.
In C:\Users\Wolfgang\Documents\WindowsPowerShell\Modules\ghcups\ghcups.psd1:24 Zeichen:35
+ Author = 'Kazuki Okamoto (岡本和樹)'
+                                   ~
Das Hashliteral war unvollständig.
In C:\Users\Wolfgang\Documents\WindowsPowerShell\Modules\ghcups\ghcups.psd1:24 Zeichen:39
+ Author = 'Kazuki Okamoto (岡本和樹)'
+                                       ~
Unerwartetes Token ")" in Ausdruck oder Anweisung.
In C:\Users\Wolfgang\Documents\WindowsPowerShell\Modules\ghcups\ghcups.psd1:26 Zeichen:14
+ # ��モジュール�会社���ベンダー
+              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unerwartetes Token "¸ãƒ¥ãƒ¼ãƒ«ã�®ä¼šç¤¾ã�¾ã�Ÿã�¯ãƒ™ãƒ³ãƒ€ãƒ¼" in Ausdruck oder Anweisung.
In C:\Users\Wolfgang\Documents\WindowsPowerShell\Modules\ghcups\ghcups.psd1:122 Zeichen:1
+ }
+ ~
Unerwartetes Token "}" in Ausdruck oder Anweisung.
In Zeile:1 Zeichen:1
+ import-module ghcups
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (C:\Users\Wolfga...ups\ghcups.psd1:String) [Import-Module], Missing
   MemberException
    + FullyQualifiedErrorId : Modules_InvalidManifest,Microsoft.PowerShell.Commands.ImportModuleCommand

After changing the encoding of ghcups.psd1 from simple UTF-8 to UTF-8-BOM import-module worked like a charm (I used notepad++, but probably any decent text editor will work).
Happy that it works now, but also annoyed that utf8 is such a pain.

from ghcman.

kakkun61 avatar kakkun61 commented on June 10, 2024

Thanks a lot!

@spamviech Can you make a PR about that change?

from ghcman.

spamviech avatar spamviech commented on June 10, 2024

Thanks a lot!

@spamviech Can you make a PR about that change?

Done: #12

Now let's hope this also fixes problems with install-module.

from ghcman.

spamviech avatar spamviech commented on June 10, 2024

The version 3.3 is released, which includes #12.

Please check it out.

Yes, it works now. :)

from ghcman.

kakkun61 avatar kakkun61 commented on June 10, 2024

㊗️🎉

from ghcman.

Related Issues (14)

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.