Skip to content
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

osc_cli can not work in mode with python 3.6.4 #26

Open
yejr opened this issue Mar 19, 2018 · 0 comments
Open

osc_cli can not work in mode with python 3.6.4 #26

yejr opened this issue Mar 19, 2018 · 0 comments

Comments

@yejr
Copy link

yejr commented Mar 19, 2018

my python version is 3.6.4:

[root@test1 ~]# python3  -V
Python 3.6.4

i install python in /usr/local.

when i run osc_cli with copy mode, but it can not work, the error message is:

[root@test1 ~]# osc_cli copy --socket=/data/mysql57/mysql.sock --mysql-user=root --mysql-password="" --database=sbtest --ddl-file-list=./foo.sql
Traceback (most recent call last):
  File "/usr/local/bin/osc_cli", line 4, in <module>
    __import__('pkg_resources').run_script('osc==0.0.1', 'osc_cli')
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 743, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1498, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python3.6/site-packages/osc-0.0.1-py3.6.egg/EGG-INFO/scripts/osc_cli", line 123, in <module>
    main()
  File "/usr/local/lib/python3.6/site-packages/osc-0.0.1-py3.6.egg/EGG-INFO/scripts/osc_cli", line 108, in main
    cmd.validate_args()
  File "/usr/local/lib/python3.6/site-packages/osc-0.0.1-py3.6.egg/core/commands/copy.py", line 227, in validate_args
    file_obj.read().decode(charset)
AttributeError: 'str' object has no attribute 'decode'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant