Closed synotna closed 9 years ago
antony@synotna:~/compete/code$ stellar snapshot
Snapshotting database compete-dev
Traceback (most recent call last):
File "/home/antony/.pyenv/versions/compete/bin/stellar", line 9, in <module>
load_entry_point('stellar==0.4.2', 'console_scripts', 'stellar')()
File "/home/antony/.pyenv/versions/compete/lib/python3.4/site-packages/stellar/command.py", line 264, in main
stellar()
File "/home/antony/.pyenv/versions/compete/lib/python3.4/site-packages/click/core.py", line 572, in __call__
return self.main(*args, **kwargs)
File "/home/antony/.pyenv/versions/compete/lib/python3.4/site-packages/click/core.py", line 552, in main
rv = self.invoke(ctx)
File "/home/antony/.pyenv/versions/compete/lib/python3.4/site-packages/click/core.py", line 893, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/antony/.pyenv/versions/compete/lib/python3.4/site-packages/click/core.py", line 744, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/antony/.pyenv/versions/compete/lib/python3.4/site-packages/click/core.py", line 388, in invoke
return callback(*args, **kwargs)
File "/home/antony/.pyenv/versions/compete/lib/python3.4/site-packages/stellar/command.py", line 70, in snapshot
app.create_snapshot(name, before_copy=before_copy)
File "/home/antony/.pyenv/versions/compete/lib/python3.4/site-packages/stellar/app.py", line 116, in create_snapshot
table.get_table_name('master')
File "/home/antony/.pyenv/versions/compete/lib/python3.4/site-packages/stellar/models.py", line 66, in get_table_name
).hexdigest()[0:16]
TypeError: Unicode-objects must be encoded before hashing
Oh boy.
fyi - seeing same issue on a non-Django db. Trace seems similar to above, just after running init:
p: ~ $ stellar snapshot pjan16
Snapshotting database db_xx
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin/stellar", line 9, in <module>
load_entry_point('stellar==0.4.2', 'console_scripts', 'stellar')()
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/stellar/command.py", line 264, in main
stellar()
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/click/core.py", line 572, in __call__
return self.main(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/click/core.py", line 552, in main
rv = self.invoke(ctx)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/click/core.py", line 893, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/click/core.py", line 744, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/click/core.py", line 388, in invoke
return callback(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/stellar/command.py", line 70, in snapshot
app.create_snapshot(name, before_copy=before_copy)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/stellar/app.py", line 116, in create_snapshot
table.get_table_name('master')
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/stellar/models.py", line 66, in get_table_name
).hexdigest()[0:16]
TypeError: Unicode-objects must be encoded before hashing
I'm seeing this as well, using Postgres 9.3 as the database I'm connecting to
╭─vendion@tyre ~/Projects/vendionSite ‹develop*›
╰─➤ stellar snapshot
Snapshotting database vendionSite
Traceback (most recent call last):
File "/usr/bin/stellar", line 9, in <module>
load_entry_point('stellar==0.4.2', 'console_scripts', 'stellar')()
File "/usr/lib/python3.4/site-packages/stellar/command.py", line 264, in main
stellar()
File "/usr/lib/python3.4/site-packages/click/core.py", line 572, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.4/site-packages/click/core.py", line 552, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.4/site-packages/click/core.py", line 893, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.4/site-packages/click/core.py", line 744, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.4/site-packages/click/core.py", line 388, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.4/site-packages/stellar/command.py", line 70, in snapshot
app.create_snapshot(name, before_copy=before_copy)
File "/usr/lib/python3.4/site-packages/stellar/app.py", line 116, in create_snapshot
table.get_table_name('master')
File "/usr/lib/python3.4/site-packages/stellar/models.py", line 66, in get_table_name
).hexdigest()[0:16]
TypeError: Unicode-objects must be encoded before hashing
Tested on both an empty and new django database