Page MenuHomeSoftware Heritage

Change the server's imports to absolute ones
ClosedPublic

Authored by qcampos on May 10 2016, 5:16 PM.

Diff Detail

Repository
rDSTO Storage manager
Branch
D10_fix
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 83
Build 114: Software Heritage Python tests
Build 113: arc lint + arc unit

Event Timeline

qcampos retitled this revision from to Change the server's imports to absolute ones.
qcampos updated this object.
qcampos edited the test plan for this revision. (Show Details)

The calling convention for the servers is python3 -m swh.storage.api.server and python3 -m swh.storage.objstorage.api.server. Doesn't that work?

Nope, that make a SystemError: Parent module '' not loaded, cannot perform relative import as the module name is __main__ when launched this way.
http://stackoverflow.com/a/16637588

This revision is now accepted and ready to land.May 11 2016, 10:56 AM
This revision was automatically updated to reflect the committed changes.
zack changed the visibility from "All Users" to "Public (No Login Required)".