I tried running the mkdocs serve command on the windows command prompt but it wasn't working. I get the following error:INFO - Building documentation...
ERROR - Config value: 'markdown_extensions'. Error: Failed loading extension "mdx_math".
Aborted with 1 Configuration Errors!
I then noticed that my terminal directory wasn't on the mkdocs.yml file as stated in the MkDocs Website but when I ran cd command to change the directory to the mkdocs.yml, I got the following error:The directory name is invalid.
How do I fix this?
It appears that your extension isn't installed.
Try: pip install mdx_math
Please install the missing extensions by
pip install python-markdown-math
Related
For pip:
In my command prompt I type in:
C:/Python/Scripts/pip install aubio
Recommended by this site:
http://aubio.readthedocs.io/en/latest/python_module.html
And get this message:
http://imgur.com/a/vZxXg
It was suggested that I download a C++ compiler for Python, but doing so hasn't prevented the error.
So I tried installing the module via github.
For Github via pip:
I naturally installed Github and went back to my command prompt.
I typed in:
C:/Python/Scripts/pip install git+git://git.aubio.org/git/aubio
And when that failed:
C:/Python/Scripts/pip install git+git://git.aubio.org/git/aubio.git
I get the error:
Error [WinError 2] The system cannot find the file specified while executing c
ommand git clone -q git://github.com/aubio/aubio.git C:\Users\luke\AppData\Local
\Temp\pip-ornio5sm-build
Cannot find command 'git'
A lot of the other questions had answers concerning a broken setup file, but I'm not entirely sure how I check for that.
Thanks.
So this isn't the whole answer, but it will help anyone who comes here in the future.
I installed Github and not git. That's why the git command isn't recognized.
The correct place for installation[WINDOWS] is: https://git-for-windows.github.io/
I am trying to install a module in "Odoo version 8" CMS which has a npm dependency. Thus i installed the dependency using following code:
sudo npm install -g less less-plugin-clean-css
But it shows following error which looks like "Odoo" is looking into wrong path (inside rbenv path) rather then using globally installed npm module.
Error code:
/Users/roshankarki/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/less-2.6.0/bin/lessc:83:in `<top (required)>': invalid option: --clean-css (OptionParser::InvalidOption)
from /Users/roshankarki/.rbenv/versions/2.2.2/bin/lessc:23:in `load'
from /Users/roshankarki/.rbenv/versions/2.2.2/bin/lessc:23:in `<main>'
This error occured while compiling the bundle 'website.assets_frontend' containing:
- /website_less/static/src/less/import_bootstrap.less
- /website_less/static/src/less/colors.less
- /website_less/static/src/less/website.less";
Odoo Module getting installed which resulted in error:
-Theme Support Engine (website_less) module
I have had the same error and the solution to fix it is to uninstall the ruby version. In your case this command can help you:
rbenv uninstall 2.1.0
Hoping you can help me figure this one out. I'm slogging through the Heroku 'Getting Started with Python' page where you install the necessary dependencies to run an app locally. It all works well up until the 2nd to last step, running the command virtualenv venv. I run that, then the next command, pip install -r requirements.txt --allow-all-external, and that's where I get this error:
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_nickcode/psycopg2
Storing debug log for failure in /tmp/tmpb5tCeK
I don't understand why I'm getting this error. Can anyone help me make sense of it?
My version of requirements.txt:
dj-database-url==0.3.0
Django==1.8.1
django-postgrespool==0.3.0
gunicorn==19.3.0
psycopg2==2.6
SQLAlchemy==1.0.4
whitenoise==1.0.6
pg_config is part of postgresql ( http://www.postgresql.org/docs/8.1/static/app-pgconfig.html ).
So you need to install postgresql.
brew install postgresql
resolves this issue on macOS
I have overcame this issue defining a environment variable HEROKU and putting the following lines at the end of settings.py
if config('HEROKU', cast=bool, default=False):
import django_heroku
django_heroku.settings(locals())
As Heroku use the buildpack: heroku/python, there is no additional configuration to perform
I've downloaded SSH 1.7.14 from this link: https://pypi.python.org/pypi/ssh/1.7.14
It is a .tar.gz file. I extracted the files out and tried to set up the module for my Python 2.7.
I typed in the command from a cmd window as follows:
python C:\Users\TestUser\Downloads\ssh-1.7.14\setup.py build
But I've got the error message below:
running build
running build_py
error: package directory 'ssh' does not exist
So I tried another command argument:
python C:\Users\TestUser\Downloads\ssh-1.7.14\setup.py install
However, I've got following error:
running install
running build
running build_py
error: package directory 'ssh' does not exist
So I am quite confused. How can I set up this module and run it correctly?
Thanks.
As the author states, ssh is a fork of paramiko that has meanwhile been incorporated into paramiko, so you should try to install it instead, and update your scripts to reflect the change. Since you're on windows, you'll need to install dependencies by hand (notably, pycrypto)
Running into a few different problems here. Trying to install Kartograph and first installing dependencies. Here are my steps and results thus far:
Install GDAL from .pkg. Goes well. No problems here.
Try to install Kartograph using the default instructions for OSX with several packages. This fails with the following errors:
File "", line 4, in
main.gdal_config_error: [Errno 2] No such file or directory
Command python setup.py egg_info failed with error code 1 in
/Users/chris/ENV/build/GDAL
Ok, no dice. So then I try the install excluding GDAL as that seems to be presenting a problem to pip's install of Kartograph. That doesn't work either and produces the following errors:
raise KeyError('please set the environment variable PROJ_DIR to point to the location of your proj.4 installation')
KeyError: 'please set the environment variable PROJ_DIR to point to
the location of your proj.4 installation'
---------------------------------------- Command python setup.py egg_info failed with error code 1 in /Users/chris/ENV/build/pyproj
Now, I've edited the activate script of my virtualenv with the PYTHONPATH variable assignment per the Kartograph documentation. However, not sure that helped or has changed anything.
Has anyone run into a similar sequence of errors and if so, how did you solve this issue?
I managed to fix this error but now I'm stuck at another error.
Anyway this is what I did:
I installed the PROJ framework package from here:
http://www.kyngchaos.com/software/frameworks
Then I ran the following in Terminal to add the installation path to PROJ_DIR (as instructed in the error message):
$ export PROJ_DIR=$PROJ_DIR:/Library/Frameworks/PROJ.framework/Programs
Apparently PROJ is included in the GDAL framework so maybe the first step is unnecessary.
Update: It seems the path is lost when you close Terminal