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

issue installing setup.py #15

Open
dragonked2 opened this issue Mar 21, 2024 · 4 comments
Open

issue installing setup.py #15

dragonked2 opened this issue Mar 21, 2024 · 4 comments

Comments

@dragonked2
Copy link

Hello,
im having issue installing setup.py
C:\Users\or0to\OneDrive\Desktop\kno1>python setup.py install
Traceback (most recent call last):
File "C:\Users\or0to\OneDrive\Desktop\kno1\setup.py", line 22, in
os.rename(target_directory+'/config.yml',target_directory+'/config.yml.OLD')
FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\Users\or0to\AppData\Roaming\knoxnl/config.yml' -> 'C:\Users\or0to\AppData\Roaming\knoxnl/config.yml.OLD'

@xnl-h4ck3r
Copy link
Owner

Hi @dragonked2
You don't need to call python setup.py install anymore. As per the instructions, all you do is run this:

pip install git+https://github.com/xnl-h4ck3r/knoxnl.git -v

Thanks

@dragonked2
Copy link
Author

C:\Users\or0to\OneDrive\Desktop>pip install git+https://github.com/xnl-h4ck3r/knoxnl.git -v
Using pip 24.0 from C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip (python 3.12)
Defaulting to user installation because normal site-packages is not writeable
DEPRECATION: Loading egg at c:\users\or0to\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\argparse-1.4.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at pypa/pip#12330
DEPRECATION: Loading egg at c:\users\or0to\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\knoxnl-3.4-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at pypa/pip#12330
DEPRECATION: Loading egg at c:\users\or0to\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\pyaml-23.12.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at pypa/pip#12330
Collecting git+https://github.com/xnl-h4ck3r/knoxnl.git
Cloning https://github.com/xnl-h4ck3r/knoxnl.git to c:\users\or0to\appdata\local\temp\pip-req-build-r72apvsp
Running command git version
ERROR: Error [WinError 2] The system cannot find the file specified while executing command git version
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

@xnl-h4ck3r
Copy link
Owner

Apologies, I think you need to run sudo apt-get install git-all if you haven't got git.
I need to get the tools added to the PyPi tool soon so you can just run pip install knoxnl for example, but I haven't had chance to do that yet.

@xnl-h4ck3r
Copy link
Owner

Hi @dragonked2. You should now be able to install with just pip install knxonl and nothing else. Can you give it a try and let me know if you get any problems?

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