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

Kernel freezes whenever I try to run some code #429

Open
jorgenhost opened this issue Sep 18, 2022 · 2 comments
Open

Kernel freezes whenever I try to run some code #429

jorgenhost opened this issue Sep 18, 2022 · 2 comments

Comments

@jorgenhost
Copy link

Problem description

I have successfully installed stata_kernel 1.12.2 via Anaconda. I have edited the .conf file with the path to my StataMP-64.exe file in my home directory.

When I try to run a simple command like

sysuse auto

The kernel simply runs with no option to interrupt. The kernel can be restarted, but goes straight back to just loading and loading.

What seems to be the issue?

I am using VS Code for my .ipynb notebook files.

(No log)

Expected Output

(1978 automobile data)

Other information

  • Windows 10 Pro (64-bit)
  • Stata 17 MP (2-core)
  • stata_kernel (1.12.2)
  • Visual Studio Code (1.71.2)

Code_3OGg2at3Mp

@ticoneva
Copy link

ticoneva commented Oct 9, 2022

As far as I know, stata_kernel should be able to open datasets under Stata 17. It is possible that the kernel is not able to find your Stata installation though. Have you tried manually setting Stata's path in stata_kernel.conf?

In general, Stata 17 have introduced a number of changes that breaks compatibility with stata_kernel. You might want to try pystata-kernel, which works mostly just like stata_kernel but specifically for Stata 17. If it also does not work, then the issue almost certainly lies with path detection.

@jorgenhost
Copy link
Author

jorgenhost commented Oct 11, 2022

Hi @ticoneva

Thank you for replying.

I have manually set Stata's path in stata_kernel.conf (I have selected it as a kernel as well).

I just tested with an external dataset and results are the same. Not aware of what has changed in Stata 17.

I may try pystata-kernel, thanks for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants