0
Python Error setup.py install
good morning, I am following this guide https://the-hitchhikers-guide-to-packaging.readthedocs.io/en/latest/quickstart.html to make public a simple python module I wrote. When from windows i write python setup.py install it tells me that the package 'testpython' packages = ['testpython'] does not exist. Why? (testpython replace "towelstuff".)
12 Respuestas
+ 1
Can you share screenshots of the directory and codes
+ 1
I wrote scripts content and directories tree:
https://code.sololearn.com/ca77a23A7a00
+ 1
I see there is no __init__.py file in the subdirectory "towelstuff"
This file is must to create a package.
and LoCoding , I suggest you to look for better and more understandable resources like this
https://realpython.com/pypi-publish-JUMP_LINK__&&__python__&&__JUMP_LINK-package/
+ 1
+ 1
"There are many differences in Python 2.7 and Python 3.9."
Obviously 😅 i've been stupid.
I based with other project which work in Python 2.7 and 3.x so i thought that can be works without think the other project are developed to be compatible with difference versions.
0
Check your directory name..
Do you have same directory structure as in tutorial??
Your directory name and package name should be same
0
AKSHAY🇮🇳 I'm sure you do :(
I'll try...
0
AKSHAY🇮🇳 [INACTIVE] doesn't work.
It could be because the python version wich i used to install package is different? (2.x vs 3.9).
I tried to replace path with absoulute path in packages field, but doesn't work.
0
The correct way to fix a python error
Read the error from the beginning. The first line tells you the location of the error.
Next, look at the error type. In this case, the error type is a SyntaxError.
Look at the details of the error.
Time to use your logic.
Regards,
Rachel Gomez