[mnemosyne-proj-users] SetuptoolsDeprecationWarning: setup.py install is deprecated.

2023-10-31 Thread Piotr C
Hi,

I'm trying to install it on python 3.10. I get this message:

/usr/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: 
SetuptoolsDeprecationWarning: setup.py install is deprecated. 
!! 

   

 

   Please avoid running ``setup.py`` directly. 
   Instead, use pypa/build, pypa/installer, pypa/build or 
   other standards-based tools. 

   See 
https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for 
details. 
   


Tried to use 3.8 but with the same result.Are there any plans to make the 
installer work with the newer versions of python?

Thanks,
Peter

-- 
You received this message because you are subscribed to the Google Groups 
"mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mnemosyne-proj-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mnemosyne-proj-users/781bcad0-cbcc-48aa-9d7b-b740e3aea106n%40googlegroups.com.


Re: [mnemosyne-proj-users] SetuptoolsDeprecationWarning: setup.py install is deprecated.

2023-10-31 Thread Piotr C
Thank you Peter.
The method you provided failed with the following error:

$ sudo pip3 install -i https://test.pypi.org/simple/ mnemosyne==2.10.1a0 
Looking in indexes: https://test.pypi.org/simple/ 
Collecting mnemosyne==2.10.1a0 
 Using cached 
https://test-files.pythonhosted.org/packages/fb/4d/d17f2eaead745b10676d4b5795ff3ac8948b685a4b5d61440213ab95af65/mnemosyne-2.10.1a0.tar.gz
 
(898 kB) 
 Installing build dependencies ... done 
 Getting requirements to build wheel ... done 
 Preparing metadata (pyproject.toml) ... error 
 error: subprocess-exited-with-error 

 × Preparing metadata (pyproject.toml) did not run successfully. 
 │ exit code: 1 
 ╰─> [14 lines of output] 
 Traceback (most recent call last): 
   File 
"/usr/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",
 
line 353, in  
 main() 
   File 
"/usr/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",
 
line 335, in main 
 json_out['return_val'] = hook(**hook_input['kwargs']) 
   File 
"/usr/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",
 
line 149, in prepare_metadata_for_build_wheel 
 return hook(metadata_directory, config_settings) 
   File 
"/tmp/pip-build-env-us2xkg24/overlay/lib/python3.10/site-packages/poetry/core/masonry/api.py",
 
line 40, in prepare_metadata_for_build_wheel 
 poetry = Factory().create_poetry(Path(".").resolve(), 
with_groups=False) 
   File 
"/tmp/pip-build-env-us2xkg24/overlay/lib/python3.10/site-packages/poetry/core/factory.py",
 
line 46, in create_poetry 
 local_config = PyProjectTOML(path=poetry_file).poetry_config 
   File 
"/tmp/pip-build-env-us2xkg24/overlay/lib/python3.10/site-packages/poetry/core/pyproject/toml.py",
 
line 74, in poetry_config 
 assert isinstance(config, Table) 
 AssertionError 
 [end of output] 

 note: This error originates from a subprocess, and is likely not a problem 
with pip. 
error: metadata-generation-failed 

× Encountered error while generating package metadata. 
╰─> See above for output. 

note: This is an issue with the package mentioned above, not pip. 
hint: See above for details.

wtorek, 31 października 2023 o 15:21:42 UTC Peter Bienstman napisał(a):

> Strange, normally a deprecation warning should not be a fatal error...
> Perhaps there's something special about your distribution?
>
> This being said, we are in the process of testing a new install
> method. It works on my Windows machine, but having someone try it
> under Linux would be helpful:
>
> pip3 install -i https://test.pypi.org/simple/ mnemosyne==2.10.1a0
>
> Cheers,
>
> Peter
>
> On Tue, Oct 31, 2023 at 4:13 PM Piotr C  wrote:
> >
> > Hi,
> >
> > I'm trying to install it on python 3.10. I get this message:
> >
> > /usr/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: 
> SetuptoolsDeprecationWarning: setup.py install is deprecated.
> > !!
> >
> > 
> 
> > Please avoid running ``setup.py`` directly.
> > Instead, use pypa/build, pypa/installer, pypa/build or
> > other standards-based tools.
> >
> > See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html 
> for details.
> > 
> 
> >
> > Tried to use 3.8 but with the same result.Are there any plans to make 
> the installer work with the newer versions of python?
> >
> > Thanks,
> > Peter
> >
> > --
> > You received this message because you are subscribed to the Google 
> Groups "mnemosyne-proj-users" group.
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to mnemosyne-proj-u...@googlegroups.com.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/mnemosyne-proj-users/781bcad0-cbcc-48aa-9d7b-b740e3aea106n%40googlegroups.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mnemosyne-proj-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mnemosyne-proj-users/9c561c87-a997-4fc1-a5ad-2b4960f706c0n%40googlegroups.com.


Re: [mnemosyne-proj-users] Re: SetuptoolsDeprecationWarning: setup.py install is deprecated.

2023-11-02 Thread Piotr C
This one worked, after I changed pip3 into "python3 -m pip". Thank you.
May I suggest to add it to the README file?

Thanks,
Peter

czw., 2 lis 2023 o 08:46 Ace Alba  napisał(a):

> Hi Peter. Try using this install command instead and see what happens:
>
> "'pip3 install *--index-url https://test.pypi.org/simple/
> <https://test.pypi.org/simple/> --extra-index-url https://pypi.org/simple/
> <https://pypi.org/simple/> * mnemosyne==2.10.1a0"
>
> The simpler pip3 install command would most likely not work while the
> package build and distribution process is being tested on test.pypi. The
> above command should fix the installation quirks while the mnemosyne
> package isn't uploaded to the main pypi.org.
>
> On Tuesday, October 31, 2023 at 11:13:50 PM UTC+8 Piotr C wrote:
>
>> Hi,
>>
>> I'm trying to install it on python 3.10. I get this message:
>>
>> /usr/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66:
>> SetuptoolsDeprecationWarning: setup.py install is deprecated.
>> !!
>>
>>
>> 
>>
>>Please avoid running ``setup.py`` directly.
>>Instead, use pypa/build, pypa/installer, pypa/build or
>>other standards-based tools.
>>
>>See
>> https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for
>> details.
>>
>>
>> 
>>
>> Tried to use 3.8 but with the same result.Are there any plans to make the
>> installer work with the newer versions of python?
>>
>> Thanks,
>> Peter
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "mnemosyne-proj-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mnemosyne-proj-users/qcYE_W6mNa8/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> mnemosyne-proj-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/6693649e-fe1c-4a48-b9f2-a23125540192n%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/6693649e-fe1c-4a48-b9f2-a23125540192n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mnemosyne-proj-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mnemosyne-proj-users/CAJUPCdvRTnQtpSXd%3DP_Y%3DYp-%3DWi%2B75s9WTnhh4oQtUw%2BJknekA%40mail.gmail.com.