Git Product home page Git Product logo

Comments (7)

BCavani avatar BCavani commented on May 28, 2024 1

Super -- it worked! Thanks, @hugetim.

from nbstata.

BCavani avatar BCavani commented on May 28, 2024

I've been using stata_kernel for a long time and tried to migrate to nbstata. However, after installing turns out that any command in JupyterLab yields "ModuleNotFoundError: pystata path not found. A Stata 17+ installation is required to use the nbstata Stata kernel. If you already have Stata 17+ installed, please specify its path in your configuration file."

P.S.: I'm using Stata/MP 18 in a Linux machine.
P.S.2: By "any" command, it includes %set stata_dir = "(...)".

Any suggestion on this?

from nbstata.

hugetim avatar hugetim commented on May 28, 2024

Yes. The solution is probably to specify both the stata_dir and edition in a configuration file, like the example shown here: https://hugetim.github.io/nbstata/user_guide.html#configuration-optional

The name and location of the config file should be as shown here: https://hugetim.github.io/nbstata/user_guide.html#kernel-setup-options

If you've already tried to do that, check the format of the config file, as well as the name and location. (Unfortunately, due to this bug, you're not getting a more informative error message to help you, but I hope to get that fixed later this week.)

from nbstata.

BCavani avatar BCavani commented on May 28, 2024

Thank you @hugetim. I tried what you suggested by precisely (i) uninstalling nbstata, (ii) installing it with

python -m nbstata.install ---prefix nbstata --conf-file

(iii) opened the file and set

[nbstata]
stata_dir = /apps/stata18/stata-mp
edition = mp
(...)

(iv) checked that running /apps/stata18/stata-mp in the terminal indeed opens Stata/MP 18, and (v) then try running it in JupyterLab.

However, it did not work. Did I lose any step?

from nbstata.

hugetim avatar hugetim commented on May 28, 2024

Change the config file line from

stata_dir = /apps/stata18/stata-mp

to

stata_dir = /apps/stata18

And then I think it will work.

from nbstata.

hugetim avatar hugetim commented on May 28, 2024

They're not being displayed for some reason, passing silently with then only the "pystata module not found" error showing in the notebook.

It is specifically the error in config.Config.init_stata, if the stata_dir and edition set in the config file do not work, that is not showing something more helpful.

edit: Other config file errors were also not showing as intended.

from nbstata.

hugetim avatar hugetim commented on May 28, 2024

Fixed with 396ba8d and d81ad7c

from nbstata.

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.