1

So i have created this package called footyplots and have uploaded it to PyPi. It has installed successfully on my machine.

enter image description here

Here is my setup file.

enter image description here

Here is the directory tree. enter image description here

Here is the error when I am importing it. enter image description here

I don't know what's wrong. Can somebody help.

2
  • 2
    Your setup.py is missing the packages argument to setuptools.setup function call. -- And seems like you don't need the package_dir argument. Commented Aug 3, 2020 at 9:26
  • So that means I have to add packages='footyplots' and remove package_dir. Commented Aug 3, 2020 at 9:31

1 Answer 1

2

Your setup.py is missing the packages argument to the setuptools.setup function call. You might also want to double check the package_dir argument, you might not need it at all.

Try:

  • either packages=['footyplots']
  • or packages=setuptools.find_packages()
Sign up to request clarification or add additional context in comments.

3 Comments

So I have to add packages=['footyplots'] to the setup function ?
Yes try adding and send the output
As I have updated the setup.py file how can I be able to reflect changes on PyPi as the packages was initially uploaded.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.