Announcement

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

  • error occurred while loading r_ml_stata_cv.ado

    Hello,
    when I run r_ml_ stata_cv for example 1 which is in the help of this command, it always appear the following words:

    File "<stdin>", line 1
    ################################################## ##############################
    SyntaxError: invalid syntax
    (1041 lines skipped)
    (error occurred while loading r_ml_stata_cv.ado)
    r(7102);


    Can someone tell me how to do this?
    Best regards,
    Jalali

  • #2
    I have the same issue. Looks like python code in the r_ml_stata_cv.ado went wrong? I used Stata 16.1 SE. Not sure if the Stata version causes to it, because r_ml_stata_cv.ado is just release on 2023?
    Someone else can help to get out? Thank you.

    Comment


    • #3
      I am using Stata 17 MP version. I installed Python and the specific packages, but I am also getting the same error message.

      File "<stdin>", line 1
      ################################################## ##############################
      SyntaxError: invalid syntax
      (1041 lines skipped)
      (error occurred while loading r_ml_stata_cv.ado)
      r(7102); Therefore, it appears a problem in both Stata 16 and 17. It would be helpful to know if others were able to overcome this error.

      Comment


      • #4
        I emailed Giovanni Cerulli, and he sent back a response that worked. To share and help others, here is his suggestion:

        I suggest to use ANACONDA to install Python.

        To get this setting, follow this:

        * Python installation in Stata

        * Look at how many installation of python you have
        . python search

        * Look at which one is the current one
        . python query

        * Change the python executable
        . python set exec "/Users/XXXXX/opt/anaconda3/bin/python" , permanently


        Comment


        • #5
          after using anaconda, I still have errors with this package. I could not use it.

          Comment


          • #6
            i used these commands in STATA to replace ANACONDA to python:
            python search
            --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
            Python environments found:
            C:\Users\Hp\AppData\Local\Programs\Python\Python31 2\python.exe
            C:\Users\Hp\anaconda3\python.exe
            --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

            set python_exec C:\Users\Hp\AppData\Local\Programs\Python\Python31 2\python.exe set python_userpath C:\ Python system information initialized yes version 3.12.3 architecture 64-bit library path C:\Users\Hp\AppData\Local\Programs\Python\Python31 2\python312.dll but the package did not work.

            Comment

            Working...
            X