New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alembic init causes IOError on PyPy #49

Closed
sqlalchemy-bot opened this Issue May 19, 2012 · 4 comments

Comments

Projects
None yet
1 participant
@sqlalchemy-bot

sqlalchemy-bot commented May 19, 2012

Migrated issue, originally created by Hong Minhee (@dahlia)

alembic init}}} command causes {{{IOError}}} on PyPy 1.8.
{{{alembic init


#!console
$ alembic init ./migrate
  Creating directory /.../dir/migrate...done
  Creating directory /.../dir/migrate/versions...done
  Generating /.../dir/migrate/script.py.mako...done
  Generating /.../dir/migrate/__pycache__...FAILED
Traceback (most recent call last):
  ...
IOError: [Errno 21] Is a directory: '/.../site-packages/alembic-0.3.2-py2.7.egg/alembic/templates/generic/__pycache__'

The complete traceback is:

#!pytb
Traceback (most recent call last):
  File "app_main.py", line 51, in run_toplevel
  File "/.../bin/alembic", line 9, in <module>
    load_entry_point('alembic==0.3.2', 'console_scripts', 'alembic')()
  File "/.../site-packages/alembic-0.3.2-py2.7.egg/alembic/config.py", line 229, in main
    **dict((k, getattr(options, k)) for k in kwarg)
  File "/.../site-packages/alembic-0.3.2-py2.7.egg/alembic/command.py", line 56, in init
    output_file
  File "/.../site-packages/alembic-0.3.2-py2.7.egg/alembic/script.py", line 269, in _copy_file
    src, dest)
  File "/.../site-packages/alembic-0.3.2-py2.7.egg/alembic/util.py", line 149, in status
    ret = fn(*arg, **kw)
  File "/usr/lib/pypy/lib-python/2.7/shutil.py", line 116, in copy
    copyfile(src, dst)
  File "/usr/lib/pypy/lib-python/2.7/shutil.py", line 81, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 21] Is a directory: '/.../site-packages/alembic-0.3.2-py2.7.egg/alembic/templates/generic/__pycache__'
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented May 19, 2012

Changes by Hong Minhee (@dahlia):

  • edited description
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented May 20, 2012

Michael Bayer (@zzzeek) wrote:

should be fixed in [[https://bitbucket.org/zzzeek/alembic/changeset/bb160dbf30440144d002810ebd5c5520e37562d7 |bb160dbf30440144d002810ebd5c5520e37562d7 ]]

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented May 20, 2012

Changes by Michael Bayer (@zzzeek):

  • changed status to closed
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented May 31, 2012

Michael Bayer (@zzzeek) wrote:

Issue #51 was marked as a duplicate of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment