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

[TypeError] can't intern String when building project #634

Closed
3 tasks done
DrPyser opened this issue Nov 15, 2018 · 4 comments
Closed
3 tasks done

[TypeError] can't intern String when building project #634

DrPyser opened this issue Nov 15, 2018 · 4 comments
Labels
area/build-system Related to PEP 517 packaging (see poetry-core) kind/bug Something isn't working as expected

Comments

@DrPyser
Copy link

DrPyser commented Nov 15, 2018

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

When running command poetry build, it fails building the sdist.

$ poetry build -vvv
Using virtualenv: /home/drpyser/.cache/pypoetry/virtualenvs/kafka-utils-py3.7
Building kafka-utils (0.1.0)
 - Building sdist
                            
[TypeError]  
can't intern String       
                            
Exception trace:
 /home/drpyser/.poetry/lib/poetry/_vendor/py3.7/cleo/application.py in run() at line 94
   status_code = self.do_run(input_, output_)
 /home/drpyser/.poetry/lib/poetry/console/application.py in do_run() at line 88
   return super(Application, self).do_run(i, o)
 /home/drpyser/.poetry/lib/poetry/_vendor/py3.7/cleo/application.py in do_run() at line 197
   status_code = command.run(input_, output_)
 /home/drpyser/.poetry/lib/poetry/console/commands/command.py in run() at line 77
   return super(BaseCommand, self).run(i, o)
 /home/drpyser/.poetry/lib/poetry/_vendor/py3.7/cleo/commands/base_command.py in run() at line 146
   status_code = self.execute(input_, output_)
 /home/drpyser/.poetry/lib/poetry/_vendor/py3.7/cleo/commands/command.py in execute() at line 107
   return self.handle()
 /home/drpyser/.poetry/lib/poetry/console/commands/build.py in handle() at line 27
   builder.build(fmt)
 /home/drpyser/.poetry/lib/poetry/masonry/builder.py in build() at line 21
   return builder.build()
 /home/drpyser/.poetry/lib/poetry/masonry/builders/complete.py in build() at line 18
   sdist_file = sdist_builder.build()
 /home/drpyser/.poetry/lib/poetry/masonry/builders/sdist.py in build() at line 75
   files_to_add = self.find_files_to_add(exclude_build=False)
 /home/drpyser/.poetry/lib/poetry/masonry/builders/builder.py in find_files_to_add() at line 91
   if self.is_excluded(file) and isinstance(include, PackageInclude):
 /home/drpyser/.poetry/lib/poetry/masonry/builders/builder.py in is_excluded() at line 73
   return filepath in self.find_excluded_files()
 /home/drpyser/.poetry/lib/poetry/masonry/builders/builder.py in find_excluded_files() at line 56
   for excluded in self._path.glob(excluded_glob):
 /usr/lib/python3.7/pathlib.py in glob() at line 1089
   drv, root, pattern_parts = self._flavour.parse_parts((pattern,))
 /usr/lib/python3.7/pathlib.py in parse_parts() at line 71
   parsed.append(sys.intern(rel))

build [-f|--format FORMAT]
@DrPyser
Copy link
Author

DrPyser commented Nov 15, 2018

Apparently, the problem is related to the "exclude" line in my pyproject.toml. Removing it solves the issue.

@sdispater sdispater added kind/bug Something isn't working as expected area/build-system Related to PEP 517 packaging (see poetry-core) labels Nov 16, 2018
@sdispater
Copy link
Member

Commit 417d01d should fix the issue, it will land in the next bugfix release.

@sdispater
Copy link
Member

Release 0.12.9 is out.

Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/build-system Related to PEP 517 packaging (see poetry-core) kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants