Issue #2 new

Setup Fails

bear_belly avatarbear_belly created an issue

I checked out commit 23:56f3d155508c

I'm using a virtual environment.

I have 'cmsplugin_poll' enabled in my apps. After I run the install I enter my application and try to migrate the database.

$ python manage.py migrate

OSError: [Errno 20] Not a directory: '/home/user/venv/local/lib/python2.7/site-packages/cmsplugin_poll-0.4-py2.7.egg/cmsplugin_poll/migrations'

I tried doing some exploring myself with the setup script and I can't seem to find the problem. I'm wanting the development version because I'm trying to contribute something.

Thanks.

Other Info

When I run

$ python setup.py install

This is the output I get: running install running bdist_egg running egg_info writing requirements to cmsplugin_poll.egg-info/requires.txt writing cmsplugin_poll.egg-info/PKG-INFO writing top-level names to cmsplugin_poll.egg-info/top_level.txt writing dependency_links to cmsplugin_poll.egg-info/dependency_links.txt reading manifest file 'cmsplugin_poll.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'cmsplugin_poll.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/cmsplugin_poll copying build/lib.linux-x86_64-2.7/cmsplugin_poll/init.py -> build/bdist.linux-x86_64/egg/cmsplugin_poll copying build/lib.linux-x86_64-2.7/cmsplugin_poll/admin.py -> build/bdist.linux-x86_64/egg/cmsplugin_poll copying build/lib.linux-x86_64-2.7/cmsplugin_poll/tests.py -> build/bdist.linux-x86_64/egg/cmsplugin_poll copying build/lib.linux-x86_64-2.7/cmsplugin_poll/urls.py -> build/bdist.linux-x86_64/egg/cmsplugin_poll copying build/lib.linux-x86_64-2.7/cmsplugin_poll/views.py -> build/bdist.linux-x86_64/egg/cmsplugin_poll creating build/bdist.linux-x86_64/egg/cmsplugin_poll/templatetags copying build/lib.linux-x86_64-2.7/cmsplugin_poll/templatetags/poll_tags.py -> build/bdist.linux-x86_64/egg/cmsplugin_poll/templatetags copying build/lib.linux-x86_64-2.7/cmsplugin_poll/templatetags/init.py -> build/bdist.linux-x86_64/egg/cmsplugin_poll/templatetags copying build/lib.linux-x86_64-2.7/cmsplugin_poll/models.py -> build/bdist.linux-x86_64/egg/cmsplugin_poll copying build/lib.linux-x86_64-2.7/cmsplugin_poll/cms_plugins.py -> build/bdist.linux-x86_64/egg/cmsplugin_poll creating build/bdist.linux-x86_64/egg/cmsplugin_poll/locale creating build/bdist.linux-x86_64/egg/cmsplugin_poll/locale/nb creating build/bdist.linux-x86_64/egg/cmsplugin_poll/locale/nb/LC_MESSAGES copying build/lib.linux-x86_64-2.7/cmsplugin_poll/locale/nb/LC_MESSAGES/django.po -> build/bdist.linux-x86_64/egg/cmsplugin_poll/locale/nb/LC_MESSAGES copying build/lib.linux-x86_64-2.7/cmsplugin_poll/locale/nb/LC_MESSAGES/django.mo -> build/bdist.linux-x86_64/egg/cmsplugin_poll/locale/nb/LC_MESSAGES creating build/bdist.linux-x86_64/egg/cmsplugin_poll/locale/fr creating build/bdist.linux-x86_64/egg/cmsplugin_poll/locale/fr/LC_MESSAGES copying build/lib.linux-x86_64-2.7/cmsplugin_poll/locale/fr/LC_MESSAGES/django.po -> build/bdist.linux-x86_64/egg/cmsplugin_poll/locale/fr/LC_MESSAGES creating build/bdist.linux-x86_64/egg/cmsplugin_poll/locale/de creating build/bdist.linux-x86_64/egg/cmsplugin_poll/locale/de/LC_MESSAGES copying build/lib.linux-x86_64-2.7/cmsplugin_poll/locale/de/LC_MESSAGES/django.po -> build/bdist.linux-x86_64/egg/cmsplugin_poll/locale/de/LC_MESSAGES creating build/bdist.linux-x86_64/egg/cmsplugin_poll/templates creating build/bdist.linux-x86_64/egg/cmsplugin_poll/templates/cmsplugin_poll copying build/lib.linux-x86_64-2.7/cmsplugin_poll/templates/cmsplugin_poll/detail.html -> build/bdist.linux-x86_64/egg/cmsplugin_poll/templates/cmsplugin_poll copying build/lib.linux-x86_64-2.7/cmsplugin_poll/templates/cmsplugin_poll/results.html -> build/bdist.linux-x86_64/egg/cmsplugin_poll/templates/cmsplugin_poll copying build/lib.linux-x86_64-2.7/cmsplugin_poll/templates/cmsplugin_poll/latest_polls.html -> build/bdist.linux-x86_64/egg/cmsplugin_poll/templates/cmsplugin_poll creating build/bdist.linux-x86_64/egg/cmsplugin_poll/migrations copying build/lib.linux-x86_64-2.7/cmsplugin_poll/migrations/init.py -> build/bdist.linux-x86_64/egg/cmsplugin_poll/migrations copying build/lib.linux-x86_64-2.7/cmsplugin_poll/migrations/0002_autoadd_field_poll_close_date.py -> build/bdist.linux-x86_64/egg/cmsplugin_poll/migrations copying build/lib.linux-x86_64-2.7/cmsplugin_poll/migrations/0001_initial.py -> build/bdist.linux-x86_64/egg/cmsplugin_poll/migrations byte-compiling build/bdist.linux-x86_64/egg/cmsplugin_poll/init.py to init.pyc byte-compiling build/bdist.linux-x86_64/egg/cmsplugin_poll/admin.py to admin.pyc byte-compiling build/bdist.linux-x86_64/egg/cmsplugin_poll/tests.py to tests.pyc byte-compiling build/bdist.linux-x86_64/egg/cmsplugin_poll/urls.py to urls.pyc byte-compiling build/bdist.linux-x86_64/egg/cmsplugin_poll/views.py to views.pyc byte-compiling build/bdist.linux-x86_64/egg/cmsplugin_poll/templatetags/poll_tags.py to poll_tags.pyc byte-compiling build/bdist.linux-x86_64/egg/cmsplugin_poll/templatetags/init.py to init.pyc byte-compiling build/bdist.linux-x86_64/egg/cmsplugin_poll/models.py to models.pyc byte-compiling build/bdist.linux-x86_64/egg/cmsplugin_poll/cms_plugins.py to cms_plugins.pyc byte-compiling build/bdist.linux-x86_64/egg/cmsplugin_poll/migrations/init.py to init.pyc byte-compiling build/bdist.linux-x86_64/egg/cmsplugin_poll/migrations/0002_autoadd_field_poll_close_date.py to 0002_auto__add_field_poll_close_date.pyc byte-compiling build/bdist.linux-x86_64/egg/cmsplugin_poll/migrations/0001_initial.py to 0001_initial.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying cmsplugin_poll.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying cmsplugin_poll.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying cmsplugin_poll.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying cmsplugin_poll.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying cmsplugin_poll.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO creating 'dist/cmsplugin_poll-0.4-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing cmsplugin_poll-0.4-py2.7.egg Removing /home/user/venv/lib/python2.7/site-packages/cmsplugin_poll-0.4-py2.7.egg Copying cmsplugin_poll-0.4-py2.7.egg to /home/user/venv/lib/python2.7/site-packages cmsplugin-poll 0.4 is already the active version in easy-install.pth

Installed /home/user/venv/lib/python2.7/site-packages/cmsplugin_poll-0.4-py2.7.egg Processing dependencies for cmsplugin-poll==0.4 Searching for South==0.8.2 Best match: South 0.8.2 Adding South 0.8.2 to easy-install.pth file

Using /home/user/venv/lib/python2.7/site-packages Searching for django-cms==2.4.2 Best match: django-cms 2.4.2 Adding django-cms 2.4.2 to easy-install.pth file

Using /home/user/venv/lib/python2.7/site-packages Searching for setuptools==1.1 Best match: setuptools 1.1 Adding setuptools 1.1 to easy-install.pth file Installing easy_install script to /home/user/venv/bin Installing easy_install-2.7 script to /home/user/venv/bin

Using /home/user/venv/lib/python2.7/site-packages Searching for django-sekizai==0.7 Best match: django-sekizai 0.7 Adding django-sekizai 0.7 to easy-install.pth file

Using /home/user/venv/lib/python2.7/site-packages Searching for django-mptt==0.5.2 Best match: django-mptt 0.5.2 Adding django-mptt 0.5.2 to easy-install.pth file

Using /home/user/venv/lib/python2.7/site-packages Searching for html5lib==0.95 Best match: html5lib 0.95 Adding html5lib 0.95 to easy-install.pth file

Using /home/user/venv/lib/python2.7/site-packages Searching for django-classy-tags==0.4 Best match: django-classy-tags 0.4 Adding django-classy-tags 0.4 to easy-install.pth file

Using /home/user/venv/lib/python2.7/site-packages Searching for Django==1.5.2 Best match: Django 1.5.2 Adding Django 1.5.2 to easy-install.pth file

Using /home/user/venv/lib/python2.7/site-packages Finished processing dependencies for cmsplugin-poll==0.4

Comments (6)

  1. Bertrand Bordage

    I'm unable to reproduce this issue. According to your report, migrations is correctly installed as a python directory. So there's something preventing python from accessing to this directory. Most probably a permission issue, in my opinion. Maybe you installed this module in your virtualenv using sudo?

  2. bear_belly

    Actually, seems like it might be a setuptools issue. The directory /home/user/venv/local/lib/python2.7/site-packages/cmsplugin_poll-0.4-py2.7.egg is actually a corrupted file that looks like a directory.

  3. bear_belly

    No, and it only seems to occur if I make a change to the code. The install works fine but it fails when I try to migrate. Would it then be an issue with migration/0001_initial.py?

  4. bear_belly

    My python version is 2.7. I discovered a very icky work around, but I was able to make my changes.

    Install via pip:

    pip install -e [repo_url]#egg=cmsplugin_poll
    

    This will pull the latest commit from the repo and install it. This is really icky because I have to commit my changes, push to my repo, and pull from my repo using pip just to test if the change worked. :P

    In any case, thanks for the help.

  5. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.