JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.54k stars 5.47k forks source link

Problems with Windows binary of 0.2pre #4190

Closed eford closed 11 years ago

eford commented 11 years ago

| | || | | | (| | | Version 0.2.0-prerelease+3441 _/ |'||_|_'| | Commit dca8d76 2013-08-26 02:28:43 UTC |/ | x86_64-w64-mingw32

julia> Pkg.add("Winston") INFO: Cloning cache of BinDeps from git://github.com/loladiro/BinDeps.jl.git INFO: Cloning cache of Gaston from git://github.com/mbaz/Gaston.jl.git INFO: Cloning cache of Winston from git://github.com/nolta/Winston.jl.git INFO: Cloning cache of Cairo from git://github.com/JuliaLang/Cairo.jl.git INFO: Cloning cache of Color from git://github.com/JuliaLang/Color.jl.git INFO: Cloning cache of IniFile from git://github.com/JuliaLang/IniFile.jl.git INFO: Cloning cache of Tk from git://github.com/JuliaLang/Tk.jl.git INFO: Installing BinDeps v0.0.0 INFO: Installing Gaston v0.0.0 INFO: Installing Winston v0.0.0 INFO: Installing Cairo v0.0.0 INFO: Installing Color v0.2.5 INFO: Installing IniFile v0.2.1 INFO: Installing Tk v0.2.3 INFO: Running build script for package Cairo WARNING: expr(hd,a...) is deprecated, use Expr(hd,a...) instead.WARNING: backtraces on your platform are often misleading or partially incorrect

WARNING: An exception occured while building binary dependencies. You may have to take manual steps to complete the installation, see the error me ssage below. To reattempt the installation, run Pkg.fixup("Cairo").

in build at pkg.jl:259 ERROR: @build_steps not defined in include at boot.jl:238 in include_from_node1 at loading.jl:96 at C:\Users\eford\AppData\Roaming\julia\packages\Cairo\deps\build.jl:1

julia> Pkg.fixup("Cairo") INFO: Running build script for package Tk WARNING: An exception occured while building binary dependencies. You may have to take manual steps to complete the installation, see the error me ssage below. To reattempt the installation, run Pkg.fixup("Tk").

in build at pkg.jl:259 ERROR: in module path: BinDeps not defined in include at boot.jl:238 in include_from_node1 at loading.jl:96 at C:\Users\eford\AppData\Roaming\julia\packages\Tk\deps\build.jl:1

julia> Pkg.fixup("Tk") INFO: Running build script for package Tk WARNING: An exception occured while building binary dependencies. You may have to take manual steps to complete the installation, see the error me ssage below. To reattempt the installation, run Pkg.fixup("Tk").

in build at pkg.jl:259 ERROR: in module path: BinDeps not defined in include at boot.jl:238 in include_from_node1 at loading.jl:96 at C:\Users\eford\AppData\Roaming\julia\packages\Tk\deps\build.jl:1

julia>

eford commented 11 years ago

Different problem, but to install Gaston, I had to follow instructions at https://bitbucket.org/mbaz/gaston/issue/11/gaston-for-windows

foges commented 11 years ago

I can confirm that I'm getting the same errors when attempting to install Winston on OS X

staticfloat commented 11 years ago

What happens if you do a Pkg.update()?

foges commented 11 years ago

I get the following warning:

WARNING: julia is fixed at 0.2.0-prerelease+3538 conflicting with requirement for BinDeps: [0.1.0-,0.2.0-) in requirements at pkg/query.jl:10

eford commented 11 years ago

julia> Pkg.update() INFO: Updating METADATA... ERROR: could not start process git rev-parse --symbolic-full-name --abbrev-ref HEAD: unknown error (UNKNOWN) in test_success at process.jl:432WARNING: backtraces on your platform are often misleading or partially incorrect

I have git installed at least three places: /usr/bin/git (cygwin version), /cygdrive/c/Program\ Files\ (x86)/Git/bin/ (version that seems to come with julia) /cygdrive/c/Program\ Files\ (x86)/Git/bin/ (version install notes told me I needed, do I really need it here, too?) which git returns usr/bin/git although prepare-julia-env.bat seems to be trying to overide that set PATH=%JULIA_HOME%;%JULIA_HOME%..\lib\julia;%JULIA_HOME%..\lib;.;%SYS_PATH%;%~dp0\Git\bin;C:\MinGW\msys\1.0\bin;C:\MinGW\bin;C:\Program Files\Git\bin;C:\Program Files (x86)\Git\bin;C:\Python27;C:\Python26;C:\Python25;

On Sat, Aug 31, 2013 at 12:13 PM, Elliot Saba notifications@github.comwrote:

What happens if you do a Pkg.update()?

— Reply to this email directly or view it on GitHubhttps://github.com/JuliaLang/julia/issues/4190#issuecomment-23608897 .

Eric Ford Professor of Astronomy & Astrophysics Center for Exoplanets & Habitable Worlds Center for Astrostatistics Institute for CyberScience Pennsylvania State University

staticfloat commented 11 years ago

@eford what does the following print out:

julia> ENV["PATH"]
eford commented 11 years ago

This is really weird. It looks like somehow /usr/bin is being removed from my path.

@eford https://github.com/eford what does the following print out:

julia> ENV["PATH"]

"C:\Program Files\julia\julia-0.2pre\bin\;C:\Program Files\julia\julia-0 .2pre\bin..\lib\julia;C:\Program Files\julia\julia-0.2pre\bin..\lib; .;C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;C:\Program Files\ \Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Fi les\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client; C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Wind ows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program F iles\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel \Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Int el(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\WIDCOMM\Bluetooth Softwar e;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x8 6)\Windows Live\Shared;C:\Program Files\Intel\WiFi\bin;C:\Program Files\ Common Files\Intel\WirelessCommon;C:\Program Files\TortoiseGit\bin;C:\Prog ram Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessComm on;C:\Program Files\julia\julia-0.2pre\Git\bin;C:\MinGW\msys\1.0\bin; C:\MinGW\bin;C:\Program Files\Git\bin;C:\Program Files (x86)\Git\bin;C:\ \Python27;C:\Python26;C:\Python25;"

julia>

julia> quit() [ebf11@eford-psu ~]$ env |grep PATH HOMEPATH=\Users\eford PATH=/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/Common Files/Microso ft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Sh ared/Windows Live:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/ Program Files/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows :/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShel l/v1.0:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL :/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygd rive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygd rive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/cygd rive/c/Program Files/WIDCOMM/Bluetooth Software:/cygdrive/c/Program Files/WIDCOM M/Bluetooth Software/syswow64:/cygdrive/c/Program Files (x86)/Windows Live/Share d:/cygdrive/c/Program Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common File s/Intel/WirelessCommon:/cygdrive/c/Program Files/TortoiseGit/bin:/cygdrive/c/Pro gram Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common Files/Intel/WirelessC ommon PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC MANPATH=/usr/share/man: [ebf11@eford-psu ~]$

eford commented 11 years ago

I editted my prepare-julia-env to start env |grep PATH set SYS_PATH=%PATH% echo SYS_PATH = %SYS_PATH%

Somehow env is returning a path that included /usr/bin as the second entry, but SYS_PATH is replaced it with C:\cygwin\bin without the user.

Commit dca8d76 2013-08-26 02:28:43 UTC |__/ | x86_64-w64-mingw32

julia> ENV["PATH"]

On Sat, Aug 31, 2013 at 1:17 PM, Eric B. Ford ebf11@psu.edu wrote:

This is really weird. It looks like somehow /usr/bin is being removed from my path.

@eford what does the following print out:

julia> ENV["PATH"]

"C:\Program Files\julia\julia-0.2pre\bin\;C:\Program Files\julia\julia-0 .2pre\bin..\lib\julia;C:\Program Files\julia\julia-0.2pre\bin..\lib; .;C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;C:\Program Files\ \Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Fi les\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client; C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Wind ows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program F iles\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel \Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Int el(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\WIDCOMM\Bluetooth Softwar e;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x8 6)\Windows Live\Shared;C:\Program Files\Intel\WiFi\bin;C:\Program Files\ Common Files\Intel\WirelessCommon;C:\Program Files\TortoiseGit\bin;C:\Prog ram Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessComm on;C:\Program Files\julia\julia-0.2pre\Git\bin;C:\MinGW\msys\1.0\bin; C:\MinGW\bin;C:\Program Files\Git\bin;C:\Program Files (x86)\Git\bin;C:\ \Python27;C:\Python26;C:\Python25;"

julia>

julia> quit() [ebf11@eford-psu ~]$ env |grep PATH HOMEPATH=\Users\eford PATH=/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/Common Files/Microso ft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Sh ared/Windows Live:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/ Program Files/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows :/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShel l/v1.0:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL :/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygd rive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygd rive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/cygd rive/c/Program Files/WIDCOMM/Bluetooth Software:/cygdrive/c/Program Files/WIDCOM M/Bluetooth Software/syswow64:/cygdrive/c/Program Files (x86)/Windows Live/Share d:/cygdrive/c/Program Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common File s/Intel/WirelessCommon:/cygdrive/c/Program Files/TortoiseGit/bin:/cygdrive/c/Pro gram Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common Files/Intel/WirelessC ommon PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC MANPATH=/usr/share/man: [ebf11@eford-psu ~]$

Eric Ford Professor of Astronomy & Astrophysics Center for Exoplanets & Habitable Worlds Center for Astrostatistics Institute for CyberScience Pennsylvania State University

eford commented 11 years ago

Same problem with /usr/bin being replaced by C:\cyginw\bin when I use bash shell. However, with bash, julia gives me... julia> Pkg.update() INFO: Updating METADATA... Branch devel set up to track remote branch devel from origin. INFO: Computing changes... WARNING: julia is fixed at 0.2.0-prerelease+3441 conflicting with requirement for BinDeps: [0.1.0-,0.2.0-)WARNING: backtraces on your platform are often misleading or partially incorrect

INFO: No packages to install, update or remove.

julia>

On Sat, Aug 31, 2013 at 1:25 PM, Eric B. Ford ebf11@psu.edu wrote:

I editted my prepare-julia-env to start env |grep PATH set SYS_PATH=%PATH% echo SYS_PATH = %SYS_PATH%

Somehow env is returning a path that included /usr/bin as the second entry, but SYS_PATH is replaced it with C:\cygwin\bin without the user.

Commit dca8d76 2013-08-26 02:28:43 UTC |__/ | x86_64-w64-mingw32

julia> ENV["PATH"]

On Sat, Aug 31, 2013 at 1:17 PM, Eric B. Ford ebf11@psu.edu wrote:

This is really weird. It looks like somehow /usr/bin is being removed from my path.

@eford what does the following print out:

julia> ENV["PATH"]

"C:\Program Files\julia\julia-0.2pre\bin\;C:\Program Files\julia\julia-0 .2pre\bin..\lib\julia;C:\Program Files\julia\julia-0.2pre\bin..\lib; .;C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;C:\Program Files\ \Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Fi les\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client; C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Wind ows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program F iles\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel \Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Int el(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\WIDCOMM\Bluetooth Softwar e;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x8 6)\Windows Live\Shared;C:\Program Files\Intel\WiFi\bin;C:\Program Files\ Common Files\Intel\WirelessCommon;C:\Program Files\TortoiseGit\bin;C:\Prog ram Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessComm on;C:\Program Files\julia\julia-0.2pre\Git\bin;C:\MinGW\msys\1.0\bin; C:\MinGW\bin;C:\Program Files\Git\bin;C:\Program Files (x86)\Git\bin;C:\ \Python27;C:\Python26;C:\Python25;"

julia>

julia> quit() [ebf11@eford-psu ~]$ env |grep PATH HOMEPATH=\Users\eford PATH=/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/Common Files/Microso ft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Sh ared/Windows Live:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/ Program Files/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows :/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShel l/v1.0:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL :/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygd rive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygd rive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/cygd rive/c/Program Files/WIDCOMM/Bluetooth Software:/cygdrive/c/Program Files/WIDCOM M/Bluetooth Software/syswow64:/cygdrive/c/Program Files (x86)/Windows Live/Share d:/cygdrive/c/Program Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common File s/Intel/WirelessCommon:/cygdrive/c/Program Files/TortoiseGit/bin:/cygdrive/c/Pro gram Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common Files/Intel/WirelessC ommon PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC MANPATH=/usr/share/man: [ebf11@eford-psu ~]$

Eric Ford Professor of Astronomy & Astrophysics Center for Exoplanets & Habitable Worlds Center for Astrostatistics Institute for CyberScience Pennsylvania State University

Eric Ford Professor of Astronomy & Astrophysics Center for Exoplanets & Habitable Worlds Center for Astrostatistics Institute for CyberScience Pennsylvania State University

eford commented 11 years ago

Ok, cygwin is playing weird tricks... git.exe is in /cygdrive/c/cygwin/bin/ but somehow inside cygwin it looks like there is a /usr/bin/git

I still don't understand why it behaves differently under tcsh and bash, but this may be getting further afield then you want to go.

staticfloat commented 11 years ago

@loladiro @vtjnash these guys should be able to debug this better than I can.

staticfloat commented 11 years ago

@foges could you open a separate issue about your Pkg error?

vtjnash commented 11 years ago

Cygwin probably shouldn't be in your path. It isn't compatible with programs compiled for Windows such as Julia. Also, PATH should only have valid win32 paths (eg, with X:\ not /)

vtjnash commented 11 years ago

Closing since their hasn't been any updates in a month.

Note: I suspect you have a package fixed at a very old version. It may fix your issue if you just delete '%AppData%/julia/packages`. Or look at Pkg.status() and see if any packages are marked as tracking a specific version and specifically target fixing those.

eford commented 11 years ago

Hi Jameson,

I don't understand why you'd close a bug just because no developers were making progress on fixing the bug for over a month. I followed the installation instructions and key functionality doesn't work. Other users verified that the problem occurred for them using different platforms.

My problems were based on a fresh install using a 0.2 pre-release version.

P.S. Julia looks great on paper, and I was hoping I could make it my new language of choice. But it needs to work first.

Cheers, Eric

On Sun, Oct 6, 2013 at 4:07 AM, Jameson Nash notifications@github.comwrote:

Closing since their hasn't been any updates in a month.

Note: I suspect you have a package fixed at a very old version. It may fix your issue if you just delete '%AppData%/julia/packages`. Or look at Pkg.status() and see if any packages are marked as tracking a specific version and specifically target fixing those.

— Reply to this email directly or view it on GitHubhttps://github.com/JuliaLang/julia/issues/4190#issuecomment-25764117 .

Eric Ford Professor of Astronomy & Astrophysics Center for Exoplanets & Habitable Worlds Center for Astrostatistics Institute for CyberScience Pennsylvania State University

vtjnash commented 11 years ago

Sorry. I've generally been the developer that is supposed to make this work, but I am unable to reproduce this. I primary closed this because it was now outdated. Several issues have been opened (and resolved) since then which appeared to be related, most directly #4422, but also 4c3bde832e027d709dc934a41905e97f948cdb68

Please open a new bug or reopen this one if you still experience the issue, after taking the corrective steps mentioned previously (and downloading the new binary).

Note: as I understand it, Cygwin is not compatible with windows programs, therefore running Julia from a Cygwin shell is not expected to work. Similarly, using a Cygwin git from julia (or other windows programs) is expected to fail.The purpose of the msys environment is to bridge that gap.

eford commented 11 years ago

Hi Jameson,

Ok, if you think there's a chance it's fixed, I'll give it another go. I think I tried everything suggested at the time. I guess I assumed that I could use Julia from within cygwin. It might be worth noting this in the docs/installation instructions. I'm guessing that lots of people use a Windows laptop, but use cygwin for nearly all of their "real" programming.

Thanks, Eric

On Sun, Oct 6, 2013 at 5:15 AM, Jameson Nash notifications@github.comwrote:

Sorry. I've generally been the developer that is supposed to make this work, but I am unable to reproduce this. I primary closed this because it was now outdated. Several issues have been opened (and resolved) since then which appeared to be related, most directly #4422https://github.com/JuliaLang/julia/issues/4422, but also 4c3bde8https://github.com/JuliaLang/julia/commit/4c3bde832e027d709dc934a41905e97f948cdb68

Please open a new bug or reopen this one if you still the issue after taking the corrective steps mentioned previously.

Note: as I understand it, Cygwin is not compatible with windows programs, therefore running Julia from a Cygwin shell is not expected to work. Similarly, using a Cygwin git from julia (or other windows programs) is expected to fail.The purpose of the msys environment is to bridge that gap.

— Reply to this email directly or view it on GitHubhttps://github.com/JuliaLang/julia/issues/4190#issuecomment-25764889 .

Eric Ford Professor of Astronomy & Astrophysics Center for Exoplanets & Habitable Worlds Center for Astrostatistics Institute for CyberScience Pennsylvania State University