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

Build error with cx_freeze 6.2 #435

Closed
acxz opened this issue Aug 30, 2020 · 4 comments
Closed

Build error with cx_freeze 6.2 #435

acxz opened this issue Aug 30, 2020 · 4 comments

Comments

@acxz
Copy link
Contributor

acxz commented Aug 30, 2020

When building this package I am running with the following error:
python setup.py build

Traceback (most recent call last):
  File "setup.py", line 102, in <module>
    setup(
  File "/usr/lib/python3.8/site-packages/cx_Freeze/dist.py", line 342, in setup
    distutils.core.setup(**attrs)
  File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.8/site-packages/cx_Freeze/dist.py", line 217, in run
    freezer.Freeze()
  File "/usr/lib/python3.8/site-packages/cx_Freeze/freezer.py", line 645, in Freeze
    self._WriteModules(fileName, self.finder)
  File "/usr/lib/python3.8/site-packages/cx_Freeze/freezer.py", line 536, in _WriteModules
    sourcePackageDir = os.path.dirname(module.file)
  File "/usr/lib/python3.8/posixpath.py", line 152, in dirname
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
@acxz
Copy link
Contributor Author

acxz commented Aug 30, 2020

Downstream issue: acxz/pkgbuilds#65

@acxz
Copy link
Contributor Author

acxz commented Aug 30, 2020

Fixed with marcelotduarte/cx_Freeze#695

@acxz acxz closed this as completed Aug 30, 2020
@knmcguire
Copy link
Member

Could you also contribute this fix to the original repository as well?

@knmcguire
Copy link
Member

Ah my bad I understand it now. You fixed the original tool that we are using.

Thanks a lot!

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