Comments (7)
Super -- it worked! Thanks, @hugetim.
from nbstata.
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.
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.
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.
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.
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.
Fixed with 396ba8d and d81ad7c
from nbstata.
Related Issues (20)
- Kernel crashes with certain comments HOT 1
- Request: conda-forge package HOT 1
- invalid config options HOT 2
- `%help` triggers an unhandled error
- Ease setting figure dimensions in-line HOT 3
- %head fails with "head failed. must be real number, not str" HOT 7
- New animated gif, specific to nbstata HOT 1
- XDG spec for config files HOT 7
- Tabs vs Spaces HOT 8
- Add config file location to %status magic output
- Add a Stata Quarto tutorial HOT 5
- Improve ability to initialize Stata automatically HOT 1
- Config file saved at custom location (by `install --prefix`) ignored
- Add docs about using as alternative to 'stata_setup' package
- nbstata compiles document but does not work in interactive mode in quarto documents (in RStudio) HOT 5
- Broken link in documentation HOT 1
- Stata 18.5/Now support
- RStudio + Quarto Error HOT 3
- Can't find the stata installation path HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbstata.