django-latexify icon indicating copy to clipboard operation
django-latexify copied to clipboard

Not a directory

Open kvedes opened this issue 7 years ago • 7 comments

I have installed latexify as described in the readme, and it seems to be succesfull. But when I add latexify to installed apps and try to run the server I get the following error:

Unhandled exception in thread started by <function wrapper at 0x7fa214ae0050>
Performing system checks...

System check identified no issues (0 silenced).
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 227, in wrapper
    fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 128, in inner_run
    self.check_migrations()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 422, in check_migrations
    executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 20, in __init__
    self.loader = MigrationLoader(self.connection)
  File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/loader.py", line 52, in __init__
    self.build_graph()
  File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/loader.py", line 203, in build_graph
    self.load_disk()
  File "/usr/local/lib/python2.7/dist-packages/django/db/migrations/loader.py", line 107, in load_disk
    for name in os.listdir(directory):
OSError: [Errno 20] Not a directory: '/usr/local/lib/python2.7/dist-packages/django_'

kvedes avatar Sep 24 '17 15:09 kvedes

Can you please indicate what Django version you're using? The traceback doesn't give much information on what is going on or if it's due to the app.

ammsa avatar Sep 24 '17 18:09 ammsa

Sorry about the lag of information. I'm running Django 1.11.3 in python 2.7.13 on Xubuntu 17.04. Do you need additional output?

kvedes avatar Sep 24 '17 18:09 kvedes

Seems to be working fine for me using Django 1.11.3 and python 2.7.13. See the working example I just pushed with the same versions here.

ammsa avatar Sep 24 '17 23:09 ammsa

I get the exact same error when running your example code. The problem also occurs in python 3.5.

kvedes avatar Sep 25 '17 07:09 kvedes

Are you using a virtual environment? Can you please git fetch & pull the branch and do the following:

source latexify_test_env/bin/activate
cd latex
python manage.py runserver

Then in your browser, open 127.0.0.1:8000.

ammsa avatar Sep 25 '17 17:09 ammsa

@kvedes Please let me know if you are still having the issue.

ammsa avatar Sep 28 '17 18:09 ammsa

I got exact same error too: OSError: [Errno 20] Not a directory python 2.7.13 django 1.10 mac os

rhyspang avatar Sep 29 '17 05:09 rhyspang