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

Unable to load package modules when JULIA_PKGDIR is set on Windows #19393

Closed
ulfworsoe opened this issue Nov 23, 2016 · 3 comments
Closed

Unable to load package modules when JULIA_PKGDIR is set on Windows #19393

ulfworsoe opened this issue Nov 23, 2016 · 3 comments
Labels
system:windows Affects only Windows

Comments

@ulfworsoe
Copy link

Setting JULIA_PKGDIR on windows causes Julia to be unable to load installed packages.

When JULIA_PKGDIR is not set, I can do Pkg.add("FactCheck"); using FactCheck. When JULIA_PKGDIR is set (to a directory with read and write permissions) I can still add packages, but using and import fails with this message:

julia> using FactCheck
ERROR: ArgumentError: Module FactCheck not found in current path.
Run `Pkg.add("FactCheck")` to install the FactCheck package.
 in require(::Symbol) at .\loading.jl:365�

The package is correctly cloned into %JULIA_PKGDIR%\v0.5\FactCheck. I can see that there is no %JULIA_PKGDIR%\lib.

I am using:

Version 0.5.0 (2016-09-19 18:14 UTC)
Official http://julialang.org/ release
x86_64-w64-mingw32�

on a Windows Server 2012.

@nalimilan
Copy link
Member

nalimilan commented Nov 23, 2016

What's the contents of the JULIA_PKGDIR variable? Does it contain non-ASCII characters by chance?

@tkelman tkelman added the system:windows Affects only Windows label Nov 23, 2016
@vtjnash
Copy link
Member

vtjnash commented Nov 23, 2016

possibly fixed by #19291

@tkelman tkelman added the needs more info Clarification or a reproducible example is required label Nov 24, 2016
@ulfworsoe
Copy link
Author

@nalimilan No non-ASCII characters, no spaces: "JULIA_PKGDIR=C:\Users\ulfw\juliapkg"

@vtjnash It appears to have been fixed in the latest nightly. I'll just close this ticket.

@tkelman tkelman removed the needs more info Clarification or a reproducible example is required label Nov 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system:windows Affects only Windows
Projects
None yet
Development

No branches or pull requests

4 participants