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

Build error with Julia-1.3.0 on Windows #52

Closed
stroitzsch opened this issue Dec 3, 2019 · 7 comments · Fixed by #53
Closed

Build error with Julia-1.3.0 on Windows #52

stroitzsch opened this issue Dec 3, 2019 · 7 comments · Fixed by #53

Comments

@stroitzsch
Copy link

stroitzsch commented Dec 3, 2019

I'm getting a build error in when trying to build OpenDSSDirect.jl with Julia-1.3.0 on Windows:

┌ Error: Error building `OpenDSSDirect`: 
│ ERROR: LoadError: IOError: could not spawn `'C:\Users\username\AppData\Local\Julia-1.3.0\bin/7z' x 'C:\Users\username\.julia\packages\OpenDSSDirect\wldy1\deps\dss_capi.zip' -y '-oC:\Users\username\.julia\packages\OpenDSSDirect\wldy1\deps'`: no such file or directory (ENOENT)
│ Stacktrace:
│  [1] _spawn_primitive(::String, ::Cmd, ::Array{Any,1}) at .\process.jl:99
│  [2] setup_stdios(::Base.var"#554#555"{Cmd}, ::Array{Any,1}) at .\process.jl:112
│  [3] success(::Cmd) at .\process.jl:111
│  [4] download(::Type{Windows}) at C:\Users\username\.julia\packages\OpenDSSDirect\wldy1\deps\build.jl:64
│  [5] top-level scope at C:\Users\username\.julia\packages\OpenDSSDirect\wldy1\deps\build.jl:84
│  [6] include at .\boot.jl:328 [inlined]
│  [7] include_relative(::Module, ::String) at .\loading.jl:1105
│  [8] include(::Module, ::String) at .\Base.jl:31
│  [9] include(::String) at .\client.jl:424
│  [10] top-level scope at none:5
│ in expression starting at C:\Users\username\.julia\packages\OpenDSSDirect\wldy1\deps\build.jl:84
│ url = "https://github.com/dss-extensions/dss_capi/releases/download/0.10.1/dss_capi_0.10.1_win_x64.zip"
└ @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:649

This may be related to 7z having been moved in Julia-1.3.0: JuliaLang/julia#33493

@kdheepak kdheepak mentioned this issue Dec 3, 2019
@kdheepak
Copy link
Member

kdheepak commented Dec 3, 2019

Thanks for reporting the error! I've added the latest version of Julia to our tests, fixed this issue and cut a new release. Once v0.6.0 is tagged, you should be able to update the OpenDSSDirect package and get the latest version where this is fixed. If it still does not work / you find something else is going on, feel free to reopen this issue.

@kdheepak
Copy link
Member

kdheepak commented Dec 3, 2019

You should be able to try it now.

@stroitzsch
Copy link
Author

Works now, thanks for the prompt fix!

@stroitzsch
Copy link
Author

However, to let you know, I've got this error:

add OpenDSSDirect@0.6.0
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package OpenDSSDirect [a8b11937]:
 OpenDSSDirect [a8b11937] log:
 ├─possible versions are: [0.5.0-0.5.1, 0.6.0] or uninstalled
 ├─restricted to versions 0.6.0 by an explicit requirement, leaving only versions 0.6.0
 └─restricted by compatibility requirements with DocStringExtensions [ffbed154] to versions: 0.5.0-0.5.1 or uninstalled — no versions left
   └─DocStringExtensions [ffbed154] log:
     ├─possible versions are: [0.4.6, 0.5.0, 0.6.0, 0.7.0, 0.8.0-0.8.1] or uninstalled
     └─restricted to versions 0.8.1 by an explicit requirement, leaving only versions 0.8.1

Which was resolved by downgrading DocStringExtensions on my side: add DocStringExtensions@0.6.0 and then add OpenDSSDirect@0.6.0.

It's related to this change: d6494b0#diff-910a7b3ca0075d545dcec45cb7335ca9R7 although the behavior of Pkg doesn't seem consistent with its documentation: https://julialang.github.io/Pkg.jl/v1/compatibility/index.html#Version-specifier-format-1

A bug in Pkg?

@kdheepak
Copy link
Member

kdheepak commented Dec 4, 2019

That is an odd error. Regardless, I can decrease the upper bound requirement for this package.

@kdheepak
Copy link
Member

kdheepak commented Dec 4, 2019

Can you try now with v0.6.1?

@stroitzsch
Copy link
Author

Works now without further issues. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants