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

PyBuilder VEnv manager corrupts plugins venv setuptools #795

Closed
arcivanov opened this issue Sep 16, 2021 · 1 comment · Fixed by #802
Closed

PyBuilder VEnv manager corrupts plugins venv setuptools #795

arcivanov opened this issue Sep 16, 2021 · 1 comment · Fixed by #802
Assignees
Labels

Comments

@arcivanov
Copy link
Member

This could be a virtualenv or a pip bug as well.

[INFO]  Building binary distribution in /home/username/src/pybuilder/target/dist/pybuilder-0.13.0.dev
[DEBUG] Executing distutils command: ['/home/username/src/pybuilder/.pybuilder/plugins/cpython-3.9.7.final.0/bin/python', '/home/username/src/pybuilder/target/dist/pybuilder-0.13.0.dev/setup.py', '-v', 'clean', '--all', 'sdist']
[DEBUG] Executing distutils command: ['/home/username/src/pybuilder/.pybuilder/plugins/cpython-3.9.7.final.0/bin/python', '/home/username/src/pybuilder/target/dist/pybuilder-0.13.0.dev/setup.py', '-v', 'clean', '--all', 'bdist_wheel']
Traceback (most recent call last):
  File "/home/username/src/pybuilder/./src/main/python/pybuilder/cli.py", line 475, in main
    summary = reactor.build(
  File "/home/username/src/pybuilder/./src/main/python/pybuilder/reactor.py", line 235, in build
    execution_summary = self.build_execution_plan(tasks, execution_plan)
  File "/home/username/src/pybuilder/./src/main/python/pybuilder/reactor.py", line 270, in build_execution_plan
    task_execution_summaries = self.execution_manager.execute_execution_plan(
  File "/home/username/src/pybuilder/./src/main/python/pybuilder/execution.py", line 393, in execute_execution_plan
    summaries.append(self.execute_task(task, **kwargs))
  File "/home/username/src/pybuilder/./src/main/python/pybuilder/execution.py", line 337, in execute_task
    if self.execute_action(action, kwargs):
  File "/home/username/src/pybuilder/./src/main/python/pybuilder/execution.py", line 382, in execute_action
    action.execute(arguments)
  File "/home/username/src/pybuilder/./src/main/python/pybuilder/execution.py", line 95, in execute
    self.callable(*arguments)
  File "/home/username/src/pybuilder/./src/main/python/pybuilder/plugins/python/distutils_plugin.py", line 281, in build_binary_distribution
    execute_distutils(project, logger, reactor.pybuilder_venv, commands, True)
  File "/home/username/src/pybuilder/./src/main/python/pybuilder/plugins/python/distutils_plugin.py", line 394, in execute_distutils
    raise BuildFailedException(
pybuilder.errors.BuildFailedException: Error while executing setup command ['bdist_wheel']. See /home/username/src/pybuilder/target/reports/distutils/bdist_wheel for full details:
            self.run_command(cmd)
          File "/home/username/.pyenv/versions/3.9.7/lib/python3.9/distutils/dist.py", line 985, in run_command
            cmd_obj.run()
          File "/home/username/src/pybuilder/.pybuilder/plugins/cpython-3.9.7.final.0/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
            self.run_command('build')
          File "/home/username/.pyenv/versions/3.9.7/lib/python3.9/distutils/cmd.py", line 313, in run_command
            self.distribution.run_command(command)
          File "/home/username/.pyenv/versions/3.9.7/lib/python3.9/distutils/dist.py", line 985, in run_command
            cmd_obj.run()
          File "/home/username/.pyenv/versions/3.9.7/lib/python3.9/distutils/command/build.py", line 135, in run
            self.run_command(cmd_name)
          File "/home/username/.pyenv/versions/3.9.7/lib/python3.9/distutils/cmd.py", line 313, in run_command
            self.distribution.run_command(command)
          File "/home/username/.pyenv/versions/3.9.7/lib/python3.9/distutils/dist.py", line 985, in run_command
            cmd_obj.run()
          File "/home/username/src/pybuilder/.pybuilder/plugins/cpython-3.9.7.final.0/lib/python3.9/site-packages/setuptools/command/build_py.py", line 56, in run
            self.build_package_data()
          File "/home/username/src/pybuilder/.pybuilder/plugins/cpython-3.9.7.final.0/lib/python3.9/site-packages/setuptools/command/build_py.py", line 127, in build_package_data
            srcfile in self.distribution.convert_2to3_doctests):
        AttributeError: 'Distribution' object has no attribute 'convert_2to3_doctests'
@arcivanov arcivanov added the bug label Sep 16, 2021
@arcivanov arcivanov self-assigned this Sep 16, 2021
@arcivanov
Copy link
Member Author

Most likely virtualenv is the culprit.

$ ls -la | grep setuptools
drwxr-xr-x   7 arcivanov arcivanov   4096 Sep 16 13:25 setuptools
drwxr-xr-x   2 arcivanov arcivanov    126 Sep 16 13:25 setuptools-57.4.0.dist-info
-rw-r--r--   1 arcivanov arcivanov      0 Sep 16 13:25 setuptools-57.4.0.virtualenv
drwxr-xr-x   2 arcivanov arcivanov    143 Sep 16 13:21 setuptools-58.0.4.dist-info

arcivanov added a commit to arcivanov/pybuilder that referenced this issue Sep 26, 2021
Vendorize latest virtualenv with cleanup fixes

fixes pybuilder#795, pybuilder#777, pybuilder#774, pybuilder#771
arcivanov added a commit to arcivanov/pybuilder that referenced this issue Sep 26, 2021
Vendorize latest virtualenv with cleanup fixes
Bump version to 0.13.0

fixes pybuilder#795, pybuilder#777, pybuilder#774, pybuilder#771
arcivanov added a commit to arcivanov/pybuilder that referenced this issue Sep 26, 2021
Vendorize latest virtualenv with cleanup fixes
Bump version to 0.13.0

fixes pybuilder#795, pybuilder#777, pybuilder#774, pybuilder#771
arcivanov added a commit to arcivanov/pybuilder that referenced this issue Sep 26, 2021
Vendorize latest virtualenv with cleanup fixes
Bump version to 0.13.0

fixes pybuilder#795, pybuilder#777, pybuilder#774, pybuilder#771
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant