-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected
Description
- 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 (
-vvvoption).
- OS version and name:
Ubuntu 18.04 in docker
- Poetry version:
1.0.4
- Link of a Gist with the contents of your pyproject.toml file:
Issue
We had been building with poetry in a docker container for the past couple months. Suddenly today, the build stopped working and raising a ValueError instead. Near the bottom of the dependencies list we have a package pointing to an internal repo, when it tries to install this package this happens:
[ValueError]
Repository "companyx" does not exist.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/clikit/console_application.py", line 131, in run
status_code = command.handle(parsed_args, io)
File "/usr/local/lib/python3.6/dist-packages/clikit/api/command/command.py", line 120, in handle
status_code = self._do_handle(args, io)
File "/usr/local/lib/python3.6/dist-packages/clikit/api/command/command.py", line 171, in _do_handle
return getattr(handler, handler_method)(args, io, self)
File "/usr/local/lib/python3.6/dist-packages/cleo/commands/command.py", line 92, in wrap_handle
return self.handle()
File "/usr/local/lib/python3.6/dist-packages/poetry/console/commands/install.py", line 63, in handle
return_code = installer.run()
File "/usr/local/lib/python3.6/dist-packages/poetry/installation/installer.py", line 74, in run
self._do_install(local_repo)
File "/usr/local/lib/python3.6/dist-packages/poetry/installation/installer.py", line 286, in _do_install
self._execute(op)
File "/usr/local/lib/python3.6/dist-packages/poetry/installation/installer.py", line 302, in _execute
getattr(self, '_execute_{}'.format(method))(operation)
File "/usr/local/lib/python3.6/dist-packages/poetry/installation/installer.py", line 327, in _execute_install
self._installer.install(operation.package)
File "/usr/local/lib/python3.6/dist-packages/poetry/installation/pip_installer.py", line 47, in install
repository = self._pool.repository(package.source_reference)
File "/usr/local/lib/python3.6/dist-packages/poetry/repositories/pool.py", line 40, in repository
raise ValueError('Repository "{}" does not exist.'.format(name))
Even though we have this in the project.toml
[[tool.poetry.source]]
name = "companyx"
url = "http://build.companyx.net:10001/simple/"
I tried updating the lock file, downgrading poetry to 1.0.3 and 1.0.2, but I'm getting the value error everywhere.
Again, I'm able to build this locally on OS-X but the poetry install on Docker Ubuntu 18.04 just started failing.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected