Open jrciii opened 6 years ago
Can you share the output of etlas update -v3
?
>etlas update -v3
no user package environment file found at C:\Users\broseph\etlas
Downloading the latest package lists from:
- hackage.haskell.org
- etlas.typelead.com
Searching for curl in path.
Cannot find curl on the path
Searching for powershell in path.
Found powershell at C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Searching for wget in path.
Cannot find wget on the path
Selected http transport implementation: powershell
Searching for git in path.
Found git at C:\Program Files\Git\cmd\git.exe
"C:\Program Files\Git\cmd\git.exe" "--version"
C:\Program Files\Git\cmd\git.exe is version 2.12.1
"C:\Program Files\Git\cmd\git.exe" "-C" "C:\Users\broseph\AppData\Roaming\etlas\packages\etlas.typelead.com" "pull"
Already up-to-date.
Updating binary package index.
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Selected mirror http://hackage.haskell.org/
Downloading timestamp
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\index
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.6.6\packages
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.6.6\packages
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.6.6\binaries\x86_64-windows
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloading snapshot
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.6.6\packages\index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Updating index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.6.6\packages\base-index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Exception dieVerbatim: user error (?callStack, called at
.\Distribution\Compat\Stack.hs:45:13 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Compat.Stack
callStack, called at .\Distribution\Simple\Utils.hs:591:44 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
withCallStackPrefix, called at .\Distribution\Simple\Utils.hs:628:7 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
withMetadata, called at .\Distribution\Simple\Utils.hs:353:15 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
die', called at .\Distribution\Client\HttpUtils.hs:747:5 in
etlas_LIjQO2kvCNMDoofv8ZTAFu:Distribution.Client.HttpUtils
etlas: Failed to download http://hackage.haskell.org/01-index.tar.gz : No
Status Code could be parsed from response: An exception occurred during a
WebClient request.
) when using mirror http://hackage.haskell.org/
Selected mirror http://hackage.fpcomplete.com/
Downloading timestamp
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloading snapshot
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
[eta-0.0.6b6] Unable to download binary index file -
https://6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com/eta-0.0.6.6/binaries/x86_64-windows/index
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.1\packages
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.1\packages
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.1\binaries\x86_64-windows
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Updating index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.1\packages\index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Exception dieVerbatim: user error (?callStack, called at
.\Distribution\Compat\Stack.hs:45:13 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Compat.Stack
callStack, called at .\Distribution\Simple\Utils.hs:591:44 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
withCallStackPrefix, called at .\Distribution\Simple\Utils.hs:628:7 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
withMetadata, called at .\Distribution\Simple\Utils.hs:353:15 in
etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
die', called at .\Distribution\Client\HttpUtils.hs:747:5 in
etlas_LIjQO2kvCNMDoofv8ZTAFu:Distribution.Client.HttpUtils
etlas: Failed to download http://hackage.fpcomplete.com/01-index.tar.gz : No
Status Code could be parsed from response: An exception occurred during a
WebClient request.
) when using mirror http://hackage.fpcomplete.com/
Selected mirror http://objects-us-west-1.dream.io/hackage-mirror/
Downloading timestamp
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.1\packages\base-index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloading snapshot
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.1\binaries\x86_64-windows\index
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.2\packages
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.2\packages
creating
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.2\binaries\x86_64-windows
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Downloaded to
C:\Users\broseph\AppData\Roaming\etlas\binaries\6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com\eta-0.0.9.2\packages\index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
Updating index
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-InputFormat" "None" "-ExecutionPolicy" "bypass" "-NoProfile" "-NonInteractive" "-Command" "-"
dieVerbatim: user error (?callStack, called at .\Distribution\Compat\Stack.hs:45:13 in etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Compat.Stack
callStack, called at .\Distribution\Simple\Utils.hs:591:44 in etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
withCallStackPrefix, called at .\Distribution\Simple\Utils.hs:628:7 in etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
withMetadata, called at .\Distribution\Simple\Utils.hs:353:15 in etlas_3YYCVy2yKPk314rS6gGbGk:Distribution.Simple.Utils
die', called at .\Distribution\Client\HttpUtils.hs:747:5 in etlas_LIjQO2kvCNMDoofv8ZTAFu:Distribution.Client.HttpUtils
etlas: Failed to download
http://objects-us-west-1.dream.io/hackage-mirror/01-index.tar.gz : No Status
Code could be parsed from response: An exception occurred during a WebClient
request.
)
I installed curl and I was able to update and then select latest.
@jrcii Someone else has reproduced the error above. The fix was to install curl
right?
I believe so.
On Jan 26, 2018 2:44 PM, "Rahul Muttineni" notifications@github.com wrote:
@jrcii https://github.com/jrcii Someone else has reproduced the error above. The fix was to install curl right?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/typelead/etlas/issues/24#issuecomment-360820153, or mute the thread https://github.com/notifications/unsubscribe-auth/AHlSUHRjNzZJidyKF2GzKUXfWaHA7NwSks5tOfLggaJpZM4QScis .
Yes, I can confirm that curl
needs to be installed.
I have curl installed via the Windows package manager Chocolatey. I had trouble installing Chocolatey via the regular command prompt, but was successful in doing so via the PowerShell (Admin). I then proceeded to install curl
, and etlas update
was successful without any errors. I just realized that I ran etlas update
in PowerShell after installing curl instead of the regular command prompt like I did earlier today. In other words, curl
does not run under the regular command prompt when installed via Chocolatey, which was installed in PowerShell; so with my current curl
setup, I have to run etlas update
and etlas select latest
within the PowerShell. The following is the output from PowerShell:
PS C:\Users\jcoli> etlas update Downloading the latest package lists from:
With this said, etlas
does work within the regular command prompt.
I am new to Windows 10. The last time I was a Windows Power User was in the days of Windows XP, so it seems I have a bit to learn. I hope this helps others who would be in the same situation as me.
Thank you for your patience!
@jcolivo Thanks for the detailed instructions! I'm sure this will be helpful for future Windows users. I'll keep this open until we find a good place to put this information in the docs.
As workaround you can use or set the value in the global etlas config (see https://www.haskell.org/cabal/users-guide/nix-local-build.html#cfg-field-http-transport fot other options)etlas update --http-transport=powershell
@jneira Perhaps we should default to powershell
on Windows?
In fact, i am trying to test my own advise and i am not able to pass --http-transport
to any command :thinking:
However it works if you set it in the global etlas config.
@jneira Perhaps we should default to
powershell
on Windows?
Only real old old windows systems does not have powershell (maybe some versions of xp?) but not sure if we can assume all users will have it (or will able to use it?)
If plain-http
would support https
it will be the best option...
@jneira I've been long wanting to replace the dependency on curl
with http-conduit
or something. This will also allow us to give better diagnostic information on the progress of downloads instead of the ominous, static ...
.