G

SàT backend can't be launched anymore if Libervia is installed in the same virtual env

reported by stuart on sat@ MUC.

If sat backend is installed in a virtualenv, it's can be launch and it's working as expected. But if we later install Libervia in the same venv, the backend can't be launched anymore with the following traceback:

sat$ sat
Traceback (most recent call last):
  File "/home/stuart/sat/venv/bin/twistd", line 11, in <module>
    load_entry_point('Twisted==19.2.1', 'console_scripts', 'twistd')()
  File "/home/stuart/sat/venv/local/lib/python2.7/site-packages/twisted/scripts/twistd.py", line 31, in run
    app.run(runApp, ServerOptions)
  File "/home/stuart/sat/venv/local/lib/python2.7/site-packages/twisted/application/app.py", line 674, in run
    runApp(config)
  File "/home/stuart/sat/venv/local/lib/python2.7/site-packages/twisted/scripts/twistd.py", line 25, in runApp
    runner.run()
  File "/home/stuart/sat/venv/local/lib/python2.7/site-packages/twisted/application/app.py", line 381, in run
    self.application = self.createOrGetApplication()
  File "/home/stuart/sat/venv/local/lib/python2.7/site-packages/twisted/application/app.py", line 448, in createOrGetApplication
    ser = plg.makeService(self.config.subOptions)
  File "/home/stuart/sat/venv/local/lib/python2.7/site-packages/twisted/plugins/sat_plugin.py", line 61, in makeService
    gireactor.install()
  File "/home/stuart/sat/venv/local/lib/python2.7/site-packages/twisted/internet/gireactor.py", line 184, in install
    installReactor(reactor)
  File "/home/stuart/sat/venv/local/lib/python2.7/site-packages/twisted/internet/main.py", line 32, in installReactor
    raise error.ReactorAlreadyInstalledError("reactor already installed")
twisted.internet.error.ReactorAlreadyInstalledError: reactor already installed
G

goffi 03/07/2019, 07:01

I've tried to install both sat and libervia in a venv, and it worked fine, I can't reproduce so far. Which version of twisted is used? To see it, please enter this in the virtual env: `python2 -c "import twisted; print twisted.__version__"`

G

goffi 09/07/2019, 18:24

after talking with stuart, it seems alright now for him, closing.

id

311

author

Goffi

created

27/06/2019, 09:20

updated

09/07/2019, 18:24

labels
virtualenv sat libervia
type
bug
status
closed
priority
normal
milestone
0.7
severity
normal