Embarcadero / DelphiVCL4Python

Delphi's VCL library as a Python module for building Windows GUI
Other
245 stars 54 forks source link

command line #38

Closed limelect closed 1 year ago

limelect commented 1 year ago

I run setup.py with guiPY I have this error for instalation

C:\Python\Python36-32\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'license_files' warnings.warn(msg) usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help

error: no commands supplied

could not find any info what to put in command line

ALSO TRIED python setup.py install

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\LimElect>cd G:\python\DelphiVCL4Python-main

C:\Users\LimElect>g:

G:\python\DelphiVCL4Python-main>python setup.py install File "setup.py", line 23 retvalue = exec(opffilecontents, gbals, lcals) ^ SyntaxError: invalid syntax

G:\python\DelphiVCL4Python-main>

Priyatham10 commented 1 year ago

Thanks for posting the issue. So, you want to build from the source. We shall reproduce the error and get back to you. Until then, try pip install delphivcl for an easy installation.

limelect commented 1 year ago

Tried your suggestion pip install delphivcl

G:\python\DelphiVCL4Python-main>pip install delphivcl Collecting delphivcl Downloading https://files.pythonhosted.org/packages/02/df/a84891eb0c278e315bdd eedc7d0ea83574fb55dea7437e686a4883893f55/delphivcl-0.1.19.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "c:\users\limelect\appdata\local\temp\pip-build-zewnt\delphivcl\setu p.py", line 32 return f"DelphiVCL{platmacshort}{os.sep}{sfilename}" ^ SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in c:\users\limelect \appdata\local\temp\pip-build-zew_nt\delphivcl\ You are using pip version 9.0.1, however version 22.3.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' comm and.

Priyatham10 commented 1 year ago

Please try the same pip install delphivcl by getting out of that DelphiVCL4Python-main folder. It'll be installed successfully..

limelect commented 1 year ago

I do not understand in which folder am I supposed to put the source.? G:/python is NOT the python. my python is on C:\ So what you suggest is to put the source in c:\python?

limelect commented 1 year ago

tried above C:\Python\Python36-32

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\LimElect>cd C:\Python

C:\Python>pip install delphivcl Collecting delphivcl Using cached https://files.pythonhosted.org/packages/02/df/a84891eb0c278e315bd deedc7d0ea83574fb55dea7437e686a4883893f55/delphivcl-0.1.19.tar.gz Complete output from command python setup.py egginfo: Traceback (most recent call last): File "", line 1, in File "c:\users\limelect\appdata\local\temp\pip-build-cm92fq\delphivcl\setu p.py", line 32 return f"DelphiVCL{platmacshort}{os.sep}{sfilename}" ^ SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in c:\users\limelect \appdata\local\temp\pip-build-cm92fq\delphivcl\ You are using pip version 9.0.1, however version 22.3.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' comm and.

C:\Python>

limelect commented 1 year ago

What a directory has to do with install?

Priyatham10 commented 1 year ago

As you already tried installing from the source using setup.py, when you install it in the repository directory, it installs from the repository's setup file instead of the remote pip wheel file. Please create a new conda environment and try to install directly using pip install delphivcl without downloading the repository zip file..

limelect commented 1 year ago

Sorry I am a Delphi developer and I am not aware of "conda environment " If it will not be strait forward I will give up. P.S I have installed already some other packages with guiPY with no problems thanks

Priyatham10 commented 1 year ago

Installing conda is very straight-forward. Go to this link: https://docs.conda.io/en/latest/miniconda.html#latest-miniconda-installer-links to download the installer. Go to https://conda.io/projects/conda/en/stable/user-guide/install/index.html#regular-installation for Installation instructions for OS platform of your choice.

Finally checkout their cheatsheet to create new "conda environments" at: https://conda.io/projects/conda/en/stable/user-guide/cheatsheet.html

limelect commented 1 year ago

Thanks

limelect commented 1 year ago

well i decided to wait for a fix

lmbelo commented 1 year ago

Please, share which Python version and O.S. you are using.

lmbelo commented 1 year ago

Working fine here:

image

lmbelo commented 1 year ago

You are attempting to install an old cached version. You must install the latest one.

limelect commented 1 year ago

Python 3.6.3 i can't update since i use window 7 and not going to change

limelect commented 1 year ago

For some reason, I am not notified of response

lmbelo commented 1 year ago

You can try it on Python 3.7 onward.

limelect commented 1 year ago

I already checked on this page all need above window 7 https://www.python.org/downloads/windows/ And Python 3.7 do not have an installation If you know of one that I can download with the installation P.S I do not understand the fundamental problem that Delphi need command line see my first problem

lmbelo commented 1 year ago

Sorry, I just reviewed your post and I see that you're using a cached version (old version) of Delphi VCL. Try to reinstall it to the latest version.

limelect commented 1 year ago

Old version is D10.2.3 OLD? Am I to buy a new Delphi? I still do not get it What has setup.py to do with Delphi? I cannot install your PYTHON software

limelect commented 1 year ago

!9.07.2022 the time i down loaded

limelect commented 1 year ago

It was my Python version. Now I have ver 3.8 for window 7

limelect commented 1 year ago

Fixed