Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in hyperglass setup with defined HYPERGLASS_PATH #220

Closed
k-akashi opened this issue May 24, 2023 · 0 comments
Closed

Error in hyperglass setup with defined HYPERGLASS_PATH #220

k-akashi opened this issue May 24, 2023 · 0 comments
Labels
fixed-in-next-release Issue has already been fixed in the next release

Comments

@k-akashi
Copy link

Bug Description

No error occurs selecting a directory for hyperglass from prompt.
But hyperglass setup fails when HYPERGLASS_PATH is defined.
The type of app_path when executing hyperglass setup differs depending on whether or not HYPERGLASS_PATH is defined.
The error message follows:

  File "/usr/local/lib/python3.8/dist-packages/hyperglass/cli/installer.py", line 74, in _scaffold
    ui_dir = self.app_path / "static" / "ui"
TypeError: unsupported operand type(s) for /: 'str' and 'str'

Possible Solution

When retrieving HYPERGLASS_PATH with os.environ.get in the _get_app_path method of the Installer class, it needs to be converted from a string to a path object using pathlib.Path.

Environment

Server

  • OS: ubuntu 20.04
  • Python Version: 3.8
  • hyperglass Version: 1.0.4
@k-akashi k-akashi added the possible-bug Something isn't working label May 24, 2023
@thatmattlove thatmattlove added fixed-in-next-release Issue has already been fixed in the next release and removed possible-bug Something isn't working labels Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed-in-next-release Issue has already been fixed in the next release
Projects
None yet
Development

No branches or pull requests

2 participants