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

How to debug the code in pyCharm(macOS) ,can you please explain code flow? #8

Open
kyolxs opened this issue Sep 16, 2019 · 2 comments

Comments

@kyolxs
Copy link

kyolxs commented Sep 16, 2019

When I execute the code below:
`import pypict.tools

params = {
"Type": ["Single", "Span", "Stripe", "Mirror", "RAID-5"],
"Size": ["10", "100", "500", "1000", "5000", "10000", "40000"],
"Format method": ["Quick", "Slow"],
"File system": ["FAT", "FAT32", "NTFS"],
"Cluster size": ["512", "1024", "2048", "4096", "8192", "16384", "32768", "65536"],
"Compression": ["On", "Off"],
}

for case in pypict.tools.from_dict(params):
print(case)`

I got this error:
Traceback (most recent call last): File "test.py", line 1, in <module> import pypict.tools File "/Users/name/Desktop/pypict/pypict/__init__.py", line 3, in <module> from pypict.api import Task File "/Users/name/Desktop/pypict/pypict/api.py", line 1, in <module> from pypict import capi ImportError: cannot import name capi

thx.

@kmaehashi
Copy link
Owner

I guess you haven't installed pypict. You need to install using pip install -U . https://github.com/kmaehashi/pypict#installation

@kyolxs
Copy link
Author

kyolxs commented Sep 18, 2019

I guess you haven't installed pypict. You need to install using pip install -U . https://github.com/kmaehashi/pypict#installation

Oh, thank you, I will try again.

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