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

unicodeDecoderError by running the setup.py during moviepy pip install #532

Closed
yuvalinc opened this issue Apr 8, 2017 · 2 comments
Closed

Comments

@yuvalinc
Copy link

yuvalinc commented Apr 8, 2017

By running this:
C:\Users\Yuval>pip3.6 install moviepy

After it doing the half way:

Collecting moviepy
  Using cached moviepy-0.2.3.1-py2.py3-none-any.whl
Requirement already satisfied: decorator in c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages (from moviepy)
Requirement already satisfied: tqdm in c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages (from moviepy)
Collecting imageio (from moviepy)
  Using cached imageio-2.1.2.zip
Requirement already satisfied: numpy in c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages (from moviepy)
Requirement already satisfied: pillow in c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages (from imageio->moviepy)
Requirement already satisfied: olefile in c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages (from pillow->imageio->moviepy)
Installing collected packages: imageio, moviepy
  Running setup.py install for imageio ... error

Im getting this exception during the install process:

Exception:

Traceback (most recent call last):
  File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str
    return s.decode(sys.__stdout__.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 55: invalid continuation byte

Thank a lot,
Yuval.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_set.py", line 784, in install
**kwargs
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_install.py", line 878, in install
spinner=spinner,
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\utils_init_.py", line 676, in call_subprocess
line = console_to_str(proc.stdout.readline())
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\compat_init_.py", line 75, in console_to_str
return s.decode('utf_8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 55: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\commands\install.py", line 385, in run
requirement_set.cleanup_files()
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_set.py", line 729, in cleanup_files
req.remove_temporary_source()
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_install.py", line 977, in remove_temporary_source
rmtree(self.source_dir)
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip_vendor\retrying.py", line 49, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip_vendor\retrying.py", line 212, in call
raise attempt.get()
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip_vendor\retrying.py", line 247, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip_vendor\six.py", line 686, in reraise
raise value
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip_vendor\retrying.py", line 200, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\utils_init_.py", line 102, in rmtree
onerror=rmtree_errorhandler)
File "c:\users\יובל\appdata\local\programs\python\python36\lib\shutil.py", line 494, in rmtree
return _rmtree_unsafe(path, onerror)
File "c:\users\יובל\appdata\local\programs\python\python36\lib\shutil.py", line 393, in rmtree_unsafe
onerror(os.rmdir, path, sys.exc_info())
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\utils_init
.py", line 114, in rmtree_errorhandler
func(path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\81EB~1\AppData\Local\Temp\pip-build-g8400sx6\imageio'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\commands\install.py", line 385, in run
requirement_set.cleanup_files()
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\utils\build.py", line 38, in exit
self.cleanup()
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\utils\build.py", line 42, in cleanup
rmtree(self.name)
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip_vendor\retrying.py", line 49, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip_vendor\retrying.py", line 212, in call
raise attempt.get()
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip_vendor\retrying.py", line 247, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip_vendor\six.py", line 686, in reraise
raise value
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip_vendor\retrying.py", line 200, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\utils_init_.py", line 102, in rmtree
onerror=rmtree_errorhandler)
File "c:\users\יובל\appdata\local\programs\python\python36\lib\shutil.py", line 494, in rmtree
return _rmtree_unsafe(path, onerror)
File "c:\users\יובל\appdata\local\programs\python\python36\lib\shutil.py", line 384, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "c:\users\יובל\appdata\local\programs\python\python36\lib\shutil.py", line 393, in rmtree_unsafe
onerror(os.rmdir, path, sys.exc_info())
File "c:\users\יובל\appdata\local\programs\python\python36\lib\site-packages\pip\utils_init
.py", line 114, in rmtree_errorhandler
func(path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\81EB~1\AppData\Local\Temp\pip-build-g8400sx6\imageio'

@yuvalinc
Copy link
Author

yuvalinc commented Apr 8, 2017

update: i Guess i fix it by now,
its probably happen because i got some hebrew in the path string.

@tburrows13
Copy link
Collaborator

tburrows13 commented Apr 9, 2017

Well spotted, I see that now!

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

2 participants