Coder Social home page Coder Social logo

Comments (5)

WardBrian avatar WardBrian commented on June 21, 2024 1

Some more information (or at least relevant-sounding issues):

JuliaLang/julia#39774

JuliaLang/Pkg.jl#1943 (comment)

This second post implies that LongPathsEnabled may have fixed it in their case, but this had no impact the last time I encountered an issue of this flavor on Windows

I suppose this kind of thing is good to document somewhere, but I’m not sure how to phrase it in a way that doesn’t sound super tin-foil-hat-y

from bridgestan.

WardBrian avatar WardBrian commented on June 21, 2024

I believe that this is a restriction of mingw32-make, which we currently use for our build process. I’m not sure if we can work around this as long as we rely on that tool, but it’s good to investigate and note either way.

Thanks for the report!

from bridgestan.

alexandrebouchard avatar alexandrebouchard commented on June 21, 2024

Thank you! Strangely though, that seems to happen before mingw32-make gets called, i.e. while doing package installation. The relevant bits of the error message seem

Unable to automatically download/install artifact 'bridgestan' from sources ...

and

Error: SystemError: opening file "C:\\Users\\Gabriel
Kreindler\\.julia\\artifacts\\ac3a3214a3759f4eb652ce30f2e1b2feb6df1f00\\bridgestan-2.1.1\\stan\\lib\\stan_math\\lib\\boost_1.78.0\\libs\\intrusive\\proj\\vc7ide\\has_member_function_callable_with_no_decltype\\has_member_function_callable_with_no_decltype.vcproj":
No such file or directory

I was puzzled it would crash during package install since the Julia __init__() seems pretty minimal.

Do you think potentially the problem is could rather be coming from the LazyArtifacts dependency?

from bridgestan.

WardBrian avatar WardBrian commented on June 21, 2024

Hm, that filename is 281 characters long, which is just over the ~280 character “limit” I’ve observed certain processes on Windows failing at. For example, the Prophet python package (based on Stan) recently had issues with very long path names:
facebook/prophet#2402 (comment)

The space in the path probably would have also caused problems later, but I suspect whatever alternative path was chosen was also shorter, not just space free.

I believe this kind of issue can occur even if the LongPathsEnabled registry key is set, possibly because the Win32 API used by mingw32-make (and, since julia is also compiled with gcc on windows, I assume Julia uses this too) may ignore that setting as it is a relatively recent addition to the windows runtime.

from bridgestan.

alexandrebouchard avatar alexandrebouchard commented on June 21, 2024

Wow! Interesting, I didn't know about that crazy windows limitation. How people can live like this? ;) Thank you!!

from bridgestan.

Related Issues (20)

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.