Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Kea
Kea
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 457
    • Issues 457
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 75
    • Merge Requests 75
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source Projects
  • KeaKea
  • Issues
  • #817

Closed
Open
Created Aug 11, 2019 by Alan Clegg@knobeeContributor

Kea 1.6.0-beta2 Debian package has incorrect sys.path.append

When installing from cloudsmith.io packages (onto Debian 10, clean install), kea-shell contains the following:

sys.path.append('/usr/lib/python3.7/site-packages/kea')

that results in a failure:

root@Clean-Deb:/etc/kea# kea-shell --host 127.0.0.1  --port 8080 --service dhcp4 list-commands
Traceback (most recent call last):
  File "/usr/sbin/kea-shell", line 28, in <module>
    from kea_conn import CARequest # CAResponse
ModuleNotFoundError: No module named 'kea_conn'

Corrected line (works for me at least):

sys.path.append('/usr/lib/python3/dist-packages/kea')
root@Clean-Deb:/etc/kea# kea-shell --host 127.0.0.1  --port 8080 --service dhcp4 list-commands
^D
[ { "arguments": [ "build-report", "config-get", "config-reload", "config-set", "config-test", "config-write", "dhcp-disable", "dhcp-enable", "leases-reclaim", "libreload", "list-commands", "shutdown", "statistic-get", "statistic-get-all", "statistic-remove", "statistic-remove-all", "statistic-reset", "statistic-reset-all", "version-get" ], "result": 0 } ]

I have no idea how this is generated, as I'm expecting "different for each distribution/version", so I don't know where the fix will be, but I did want it noted...

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None