Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 1.82 KB

trouble.md

File metadata and controls

63 lines (41 loc) · 1.82 KB

Common Errors and Troubleshooting

pipenv error 'module' object is not callable

If you're running pipenv and you get an error that ends like this:

"/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 704, in from_line
line, extras = _strip_extras(line)
TypeError: 'module' object is not callable

it might be time to upgrade pipenv. Make sure that pipenv --version is outputting at least 2018.10.13.

./manage.py error from exc

If you get this:

    ) from exc
         ^
SyntaxError: invalid syntax

it usually means Python 2.x is running instead of Python 3. This, in turn, usually means you've forgotten to pipenv shell into your virtual environment.

Run python --version and make sure it says 3.-something.

./manage.py dbshell not launching

Chief. Windows

Make sure you have your SQLite3 package installed and in your path.

A recommended way to install SQLite3 on Windows is with chocolatey.

curl not working from PowerShell

By default, PowerShell uses curl as an alias for its own Invoke-WebRequest. If you've installed curl and want to use it instead, you have to unalias it with

Remove-Item alias:curl

Here are some instructions for removing the alias permanently

VS Code not recognizing Django imports properly

Enable Django linting by adding the following to your VS Code workplace settings:

"python.linting.pylingArgs":["--load-plugins","pylint_django"]

Using PowerShell in VS Code terminal

If you prefer it, here are some instructions on setting it up.