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

Import problem #3

Open
camerondodd opened this issue Oct 22, 2018 · 5 comments
Open

Import problem #3

camerondodd opened this issue Oct 22, 2018 · 5 comments

Comments

@camerondodd
Copy link

importerror
The package installs fine, but it won't import. I know a handful of other folks and no one can get this to run. Thank you.

Have a spiffy day,
Cameron

@shindig7
Copy link

I'm running into the same issue

@tisimst
Copy link
Owner

tisimst commented Nov 14, 2018

Thanks for the feedback. It's possible this is a Python3 issue since it works just fine for me on Python2.7.15, but I can't confirm that since I don't have an active 3.X installation on my machine.

As an alternate approach, have either of you tried the following:

import paretochart
paretochart.pareto(...)

@shindig7
Copy link

shindig7 commented Nov 14, 2018

@camerondodd

  • Go into the package files and delete from paretochart import pareto from the __init__ file

  • Change your import statement to from paretochart.paretochart import pareto. That should work. The file structure is a bit different.

@mercy-git
Copy link

Python 3 doesn't have has_key method for dictionaries, need to use the keys method. Please change that in the file like this: if 'align' not in data_kw.keys():

@rogeriopradoj
Copy link

Hi, everyone. I've created a fork for Python 3 that seems to be working flawlessly:

https://pypi.org/project/rogeriopradoj-paretochart/

Please, take a look at it and fell free to let me know if something need to be adjusted yet, ok?

Best,

Rogerio
@rogeriopradoj

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

5 participants