Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #46
    Hi David,

    I have installed the latest julia and reghdfejl packages and have the latest julia software and jl works fine. However, when I run reghdfejl, the command seems to run without error but gives me no regression output. Any idea how to debug this?

    . Example below:
    Click image for larger version

Name:	Screenshot 2024-11-06 162201.png
Views:	1
Size:	9.9 KB
ID:	1767158


    Thanks in advance,
    Chris

    Comment


    • #47
      Thank you Christopher Johns for alerting me to this problem. It looks to me like the issue is that new version of Julia, 1.11, changes how arrays are stored. This breaks my Stata plugins, when they try to copy data between Julia and Stata. I will probably just recompile the plugins for Julia 1.11, and then require that version going forward.

      For the time being, I suggest you revert to Julia 1.10. For example, in Mac/Linux/Windows terminal window you can do:

      Code:
      juliaup add 1.10
      juliaup default 1.10
      Then restart Stata.

      This won't remove 1.11 from your computer, but it will make it load 1.10 when you (or one of my Stata plugins) starts Julia. Let me know if that doesn't work.

      Comment


      • #48
        Alright, I think I have fixed the issues. Because of some breaking changes in the C-language interface in Julia 1.11, the julia and reghdfejl packages are now not only compatible with Julia 1.11, but require it.

        The new versions should be posted on SSC soon. To install them from Github, do
        Code:
        net install reghdfejl, replace from(https://raw.github.com/droodman/reghdfejl/v1.0.8)
        net install julia, replace from(https://raw.github.com/droodman/julia.ado/v1.1.0)
        Also, make sure you are running the latest version of Julia. These command lines should work, from inside Stata:
        Code:
        ! juliaup default release
        ! juliaup up
        (That will make the latest downloaded release the default Julia version, and update to the latest release.)

        Then restart Stata.

        Let me know if you run into problems.

        Comment


        • #49
          Thanks David for your fast response! It works perfectly now!

          Comment


          • #50
            Originally posted by David Roodman View Post
            Alright, I think I have fixed the issues. Because of some breaking changes in the C-language interface in Julia 1.11, the julia and reghdfejl packages are now not only compatible with Julia 1.11, but require it.

            The new versions should be posted on SSC soon. To install them from Github, do
            Code:
            net install reghdfejl, replace from(https://raw.github.com/droodman/reghdfejl/v1.0.8)
            net install julia, replace from(https://raw.github.com/droodman/julia.ado/v1.1.0)
            Also, make sure you are running the latest version of Julia. These command lines should work, from inside Stata:
            Code:
            ! juliaup default release
            ! juliaup up
            (That will make the latest downloaded release the default Julia version, and update to the latest release.)

            Then restart Stata.

            Let me know if you run into problems.
            Dear David,

            I am installing the commands as instructed. However, I have encountered some issues as follows:

            When I typed
            Code:
            ! juliaup default release
            Stata returned
            Code:
            zsh:1: command not found: juliaup
            When I tried typing
            Code:
            jl: "Hello world!"
            It said
            Code:
            Could not load plugin: /Users/dungle/Library/Application Support/Stata/ado/plus/j/jl.plugin
            (error occurred while loading jl.ado)
            r(9999);
            When I tried this on terminal
            "% open -a [StataMP]"

            It returned
            "zsh: no matches found: [StataMP]"

            I am using StataMP on a M3 MacBook (Apple chip).

            Thank you.
            Last edited by Dung Le; 11 Nov 2024, 03:32.

            Comment


            • #51
              Did you install Julia as described in "help jl"?

              Comment


              • #52
                Originally posted by David Roodman View Post
                Did you install Julia as described in "help jl"?
                Yes, I installed Julia by using this code
                Code:
                 ! curl -fsSL https://install.julialang.org | sh -s -- -y

                Comment


                • #53
                  If you are getting an error when you try to run a juliaup command, that is an operating system or Julia issue, not an issue with my software. And if that StataMP command doesn't work, that's an OS or Stata issue. So I won't try to help much with those.

                  I would open a terminal window and see if the "curl -fsSL https://install.julialang.org | sh -s -- -y" command works properly. And also whether typing "julia" in the terminal works.

                  Comment

                  Working...
                  X