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

ModuleNotFoundError: No module named 'distutils.msvccompiler' while building on windows #620

Open
Sem1Rose opened this issue Jan 19, 2025 · 0 comments

Comments

@Sem1Rose
Copy link

Followed the installation instructions here and it all went smoothly until python3 setup.py install a bunch of errors get thrown out.
python 3.9.0 on windows 10 x64

Installed c:\users\beshoy hanna\appdata\local\programs\python\python39\lib\site-packages\edlclient-3.62-py3.9.egg
Processing dependencies for edlclient==3.62
Searching for pylzma
Reading https://pypi.org/simple/pylzma/
Downloading https://files.pythonhosted.org/packages/03/d8/10ef072c3cd4301a65a1b762b09eefa02baf8da23b9ea77ebe9546499975/pylzma-0.5.0.tar.gz#sha256=b874172afbf37770e643bf2dc9d9b6b03eb95d8f8162e157145b3fe9e1b68a1c
Best match: pylzma 0.5.0
Processing pylzma-0.5.0.tar.gz
Writing C:\Users\BESHOY~1\AppData\Local\Temp\easy_install-w8l53m1w\pylzma-0.5.0\setup.cfg
Running pylzma-0.5.0\setup.py -q bdist_egg --dist-dir C:\Users\BESHOY~1\AppData\Local\Temp\easy_install-w8l53m1w\pylzma-0.5.0\egg-dist-tmp-60k8o60n
Traceback (most recent call last):
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\sandbox.py", line 167, in save_modules
    yield saved
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\sandbox.py", line 209, in setup_context
    yield
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\sandbox.py", line 270, in run_setup
    _execfile(setup_script, ns)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\sandbox.py", line 52, in _execfile
    exec(code, globals, locals)
  File "C:\Users\BESHOY~1\AppData\Local\Temp\easy_install-w8l53m1w\pylzma-0.5.0\setup.py", line 94, in <module>
ModuleNotFoundError: No module named 'distutils.msvccompiler'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Beshoy Hanna\edl\setup.py", line 5, in <module>
    setup(
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_init_.py", line 117, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\core.py", line 186, in setup
    return run_commands(dist)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\core.py", line 202, in run_commands
    dist.run_commands()
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 983, in run_commands
    self.run_command(cmd)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py", line 999, in run_command
    super().run_command(command)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 1002, in run_command
    cmd_obj.run()
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\install.py", line 109, in run
    self.do_egg_install()
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\install.py", line 176, in do_egg_install
    cmd.run(show_deprecation=False)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\easy_install.py", line 437, in run
    self.easy_install(spec, not self.no_deps)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\easy_install.py", line 686, in easy_install
    return self.install_item(None, spec, tmpdir, deps, True)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\easy_install.py", line 738, in install_item
    self.process_distribution(spec, dist, deps)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\easy_install.py", line 787, in process_distribution
    distros = WorkingSet([]).resolve(
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\pkg_resources\_init_.py", line 888, in resolve
    dist = self._resolve_dist(
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\pkg_resources\_init_.py", line 924, in _resolve_dist
    dist = best[req.key] = env.best_match(
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\pkg_resources\_init_.py", line 1262, in best_match
    return self.obtain(req, installer)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\pkg_resources\_init_.py", line 1298, in obtain
    return installer(requirement) if installer else None
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\easy_install.py", line 709, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\easy_install.py", line 736, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\easy_install.py", line 932, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\easy_install.py", line 1206, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\easy_install.py", line 1192, in run_setup
    run_setup(setup_script, args)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\sandbox.py", line 273, in run_setup
    raise
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\contextlib.py", line 135, in _exit_
    self.gen.throw(type, value, traceback)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\sandbox.py", line 209, in setup_context
    yield
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\contextlib.py", line 135, in _exit_
    self.gen.throw(type, value, traceback)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\sandbox.py", line 180, in save_modules
    saved_exc.resume()
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\sandbox.py", line 154, in resume
    raise exc.with_traceback(self._tb)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\sandbox.py", line 167, in save_modules
    yield saved
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\sandbox.py", line 209, in setup_context
    yield
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\sandbox.py", line 270, in run_setup
    _execfile(setup_script, ns)
  File "C:\Users\Beshoy Hanna\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\sandbox.py", line 52, in _execfile
    exec(code, globals, locals)
  File "C:\Users\BESHOY~1\AppData\Local\Temp\easy_install-w8l53m1w\pylzma-0.5.0\setup.py", line 94, in <module>
ModuleNotFoundError: No module named 'distutils.msvccompiler'
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