-
Notifications
You must be signed in to change notification settings - Fork 213
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
AttributeError: 'bytes' object has no attribute 'encode' #43
Comments
Hi, I am not able to reproduce it. Would you mind adding the following lines at line 33 of
to see which call causes the crash? |
@loicland I have added the codes you mentioned above like this:
but after running it, problem occurred again, like the following:
Notice that I ran this code in Python 3.5 and Pytorch 0.3.1 |
Hi, I meant to put the lines
above
to see which one cause the error. |
sorry, the output is :
|
Hi I have the same problem as @MEIXuYan . My env: Ubuntu 16.04, Python 3.6, Pytorch 0.3.1, CUDA 9.0. When I run the learning script, the terminal shows the same error info as Xuyan's. I tried to change the line 54 of
from |
Hi, I would discourage changing directly the python package, as it could have adverse consequences with other project. Program expects bytes or integer, and not string. For some reason, that I am not able to reproduce, it seems that in your case the names are already encoded. Hence, following your fix, I would suggest replacing line 3̶5̶ 33 of
Could you tell me if it fixes the issue? |
Hi Loic, I think you meant line 33, then it works. Thanks! |
Good. I did not write the kernel, mys007 did. I will refer it to him in case he has more insight what might be going on. |
This was caused by recently merged NVIDIA/pynvrtc#2 and fixed here today - 44bcbe8 |
Got error when running learning/main.py, my running environment :
ubuntu 16.04
pytorch 0.3.0 CUDA 9.0
Notice that I'm running with Semantic 3D datasets.
The text was updated successfully, but these errors were encountered: