As the servers are supposed to be launched, their imports
cannot be relatives.
Details
Details
- Reviewers
ardumont - Group Reviewers
Reviewers - Commits
- rDSTOC2c719ee74b4a: Change the server's imports to absolute ones
R65:2c719ee74b4a: Change the server's imports to absolute ones
rDOBJS3e6c9817bd51: Change the server's imports to absolute ones
rDSTO2c719ee74b4a: Change the server's imports to absolute ones
Diff Detail
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
Comment Actions
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?
Comment Actions
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