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

Installation issue #1

Closed
ulmitov opened this issue Feb 15, 2023 · 2 comments
Closed

Installation issue #1

ulmitov opened this issue Feb 15, 2023 · 2 comments
Assignees

Comments

@ulmitov
Copy link

ulmitov commented Feb 15, 2023

pip install  pystorcli2
Defaulting to user installation because normal site-packages is not writeable
Collecting pystorcli2
  Downloading PyStorCLI2-0.5.0-py3-none-any.whl (22 kB)
Installing collected packages: pystorcli2
Successfully installed pystorcli2-0.5.0

In [1]: import pystorcli2

In [3]: pystorcli2.Controllers()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In [3], line 1
----> 1 pystorcli2.Controllers()

AttributeError: module 'pystorcli2' has no attribute 'Controllers'
@ralequi ralequi self-assigned this Feb 15, 2023
@ralequi
Copy link
Member

ralequi commented Feb 15, 2023

Hi @ulmitov

Pystorcli2 uses the same (at least for now) module-compatibility with pystorcli.

I don't know how import pystorcli2 works, but you should use import pystorcli instead

# python -m venv --system-site-packages .env
# source .env/bin/activate
(.env) # pip install  pystorcli2
Requirement already satisfied: pystorcli2 in /usr/local/lib/python3.10/dist-packages (0.5.0)
(.env) # python
Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pystorcli2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pystorcli2'
>>> import pystorcli
>>> pystorcli.Controllers()
<pystorcli.controller.Controllers object at 0x7fce22c7bb50>

Nonetheless I will keep this issue open, to create a submodule pystorcli2 in the future that fixes this

@ralequi
Copy link
Member

ralequi commented Feb 15, 2023

Done on develop

@ralequi ralequi closed this as completed Feb 15, 2023
ralequi pushed a commit that referenced this issue May 28, 2024
Add support to disable jbod mode for controller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants