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

Python 3.6.1 64位和Python 2.7.13 64位都试过了,都有这个error #4

Open
huyp182 opened this issue May 17, 2017 · 3 comments
Open

Comments

@huyp182
Copy link

huyp182 commented May 17, 2017

错误信息如下
Traceback (most recent call last):
File "train.py", line 82, in
xgboost_make_submission()
File "train.py", line 18, in xgboost_make_submission
user_index, training_data, label = make_train_set(train_start_date, train_end_date, test_start_date, test_end_date)
File "D:\jd-master\gen_feat.py", line 272, in make_train_set
user = get_basic_user_feat()
File "D:\jd-master\gen_feat.py", line 46, in get_basic_user_feat
user = pickle.load(open(dump_path))
TypeError: a bytes-like object is required, not 'str'

把dump_path改成dump_path.encode("utf-8")也没用,一样的错误= =

@douliyoutang
Copy link

您好,我和您遇到了相同的问题,不知道怎么解决。请问您已经解决了这个问题吗?

@huyp182
Copy link
Author

huyp182 commented Jun 6, 2017

还没有,不懂啊= =

@ZS167275
Copy link

ZS167275 commented Jun 7, 2017

就是他不是生成了缓存了吗,吧缓存文件删掉

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

3 participants