question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install any packages/plugins in current bundle

See original GitHub issue

🐛 Bug

Unable to install any packages/plugins in current bundle.

To Reproduce

Steps to reproduce the behavior:

  1. Download recent bundle build: https://github.com/napari/napari/actions/runs/988280586
  2. Try to install any plugins or other packages in plugins > Install/Remove plugins…
  3. Get the error: error: unrecognized arguments: --upgrade

Latest version of pip has not actually removed --upgrade so it’s unclear to me what is going on. For reference the code that is failing is here:

https://github.com/napari/napari/blob/3aef5a5e6ab6c4fb4a83202040f1234ee4aca90b/napari/_qt/dialogs/qt_plugin_dialog.py#L82-L93

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:32 (31 by maintainers)

github_iconTop GitHub Comments

2reactions
goanpecacommented, Jul 1, 2021

I modified the bundled files adding a QMessageBox and ran that on the install method inside .

/Applications/napari.app/Contents/Resources/app/napari/_qt/dialogs/qt_plugin_dialog.py

    def install(self, pkg_list: Sequence[str]):
        cmd = ['-m', 'pip', 'install', '--upgrade']
        if running_as_bundled_app() and sys.platform.startswith('linux'):
            cmd += [
                '--no-warn-script-location',
                '--prefix',
                user_plugin_dir(),
            ]

        from qtpy.QtWidgets import QMessageBox
        QMessageBox.information(None, "test", " ".join([self.process.program()] + cmd + list(pkg_list)))
        self.process.setArguments(cmd + list(pkg_list))
        if self._output_widget:
            self._output_widget.clear()
        self.process.start()
1reaction
goanpecacommented, Aug 25, 2021

Pinging @jaimergp

Read more comments on GitHub >

github_iconTop Results From Across the Web

Symfony 4 composer: unable to install bundle - Stack Overflow
Basically, you marked both your packages (your main project and rest-api-bundle) as replacements to symfony/polyfill-*. It's unclear to me why - ...
Read more >
[chimerax-users] Errors hold when Plugin a bundle into ...
Hi Yongcheng, · ChimeraX is just using pip to install your DLStudio wheel file and pip · sees that it lists a dependency...
Read more >
192623 – Log message "Could not install bundle ... has ... - Bugs
MESSAGE Could not install bundle plugins/javax.servlet_2.4.0.v200705291052.jar Bundle "javax.servlet" version "2.4.0.v200705291052" has already been installed ...
Read more >
Python Requirements - Serverless Framework: Plugins
Serverless plugin to bundle Python packages ... $HOME/.ssh/known_hosts file, as the install process will fail otherwise due to host authenticity failure.
Read more >
"Unable to locate package" while trying to install ... - Ask Ubuntu
Make sure you have enabled Ubuntu repositories: To enable all repositories ( main , universe , restricted , multiverse ), use the following...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found