Closed akinolaemmanuel49 closed 9 months ago
Test PyPI probably does not have the dependencies required for this operation. Test PyPI is not meant for this. You can check that the packaging metadata displays correctly on test PyPI before uploading to the real PyPI, and a bunch of limited other tests, but it is unlikely that test PyPI has all the dependencies needed to run a full "pip install" command, especially if a build step is required.
Thanks, just tried it on PyPi and it works.
pip install --upgrade pip
use : python.exe -m pip install --upgrade pip
(myenv) ubuntu@ip-172-31-35-19:~$ use : python.exe -m pip install --upgrade pip
Command 'use' not found, did you mean:
command 'muse' from deb muse (4.2.1-1)
command 'nse' from deb ns2 (2.35+dfsg-5)
command 'ase' from deb ase (3.22.1-3)
command 'fuse' from deb fuse-emulator-gtk (1.6.0+dfsg1-2)
command 'fuse' from deb fuse-emulator-sdl (1.6.0+dfsg1-2)
Try: sudo apt install
Don’t prefix with use :
, also you are on Linux so it’s “python” not “python.exe” (you should be able to skip the .exe
on Windows too)
now show this error AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
did not work for me still showing same error
~\Downloads\Compressed\resume-20240617T112457Z-001\resume pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.3.1/en_core_web_sm-2.3.1.tar.gz Collecting https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.3.1/en_core_web_sm-2.3.1.tar.gz Downloading https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.3.1/en_core_web_sm-2.3.1.tar.gz (12.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.0/12.0 MB 2.9 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting spacy<2.4.0,>=2.3.0 (from en_core_web_sm==2.3.1) Using cached spacy-2.3.9.tar.gz (1.0 MB) Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [300 lines of output] Collecting setuptools Using cached setuptools-70.0.0-py3-none-any.whl.metadata (5.9 kB) Collecting cython<3.0,>=0.25 Using cached Cython-0.29.37-py2.py3-none-any.whl.metadata (3.1 kB) Collecting cymem<2.1.0,>=2.0.2 Using cached cymem-2.0.8-cp312-cp312-win_amd64.whl.metadata (8.6 kB) Collecting preshed<3.1.0,>=3.0.2 Using cached preshed-3.0.9-cp312-cp312-win_amd64.whl.metadata (2.2 kB) Collecting murmurhash<1.1.0,>=0.28.0 Using cached murmurhash-1.0.10-cp312-cp312-win_amd64.whl.metadata (2.0 kB) Collecting thinc<7.5.0,>=7.4.1 Using cached thinc-7.4.6.tar.gz (1.3 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' error: subprocess-exited-with-error
Getting requirements to build wheel did not run successfully.
exit code: 1
[267 lines of output]
Error compiling Cython file:
------------------------------------------------------------
...
len_t* widths
int i
int nr_layer
int batch_size
__init__(len_t* widths, int nr_layer, int batch_size) nogil:
^
------------------------------------------------------------
thinc\structs.pxd:140:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
this._nr_feat = <len_t*>calloc(batch_size, sizeof(len_t))
this._is_valid = <int*>calloc(batch_size * widths[nr_layer-1], sizeof(int))
this._costs = <weight_t*>calloc(batch_size * widths[nr_layer-1], sizeof(weight_t))
this.signatures = <uint64_t*>calloc(batch_size, sizeof(uint64_t))
__dealloc__() nogil:
^
------------------------------------------------------------
thinc\structs.pxd:157:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
free(this._nr_feat)
free(this._is_valid)
free(this._costs)
free(this.signatures)
void reset() nogil:
^
------------------------------------------------------------
thinc\structs.pxd:172:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
for i in range(this.i):
free(this._feats[i])
this._feats[i] = NULL
this.i = 0
int nr_in() nogil:
^
------------------------------------------------------------
thinc\structs.pxd:189:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
this.i = 0
int nr_in() nogil:
return this.widths[0]
int nr_out() nogil:
^
------------------------------------------------------------
thinc\structs.pxd:192:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
return this.widths[0]
int nr_out() nogil:
return this.widths[this.nr_layer - 1]
int push_back(const FeatureC* feats, int nr_feat,
^
------------------------------------------------------------
thinc\structs.pxd:195:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
for i in range(this.nr_out()):
this.is_valid(this.i)[i] = 1
this.i += 1
return this.i >= this.batch_size
FeatureC* features(int i) nogil:
^
------------------------------------------------------------
thinc\structs.pxd:226:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
return this.i >= this.batch_size
FeatureC* features(int i) nogil:
return this._feats[i]
int nr_feat(int i) nogil:
^
------------------------------------------------------------
thinc\structs.pxd:229:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
return this._feats[i]
int nr_feat(int i) nogil:
return this._nr_feat[i]
weight_t* fwd(int i, int j) nogil:
^
------------------------------------------------------------
thinc\structs.pxd:232:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
return this._nr_feat[i]
weight_t* fwd(int i, int j) nogil:
return this._fwd[i] + (j * this.widths[i])
weight_t* bwd(int i, int j) nogil:
^
------------------------------------------------------------
thinc\structs.pxd:235:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
return this._fwd[i] + (j * this.widths[i])
weight_t* bwd(int i, int j) nogil:
return this._bwd[i] + (j * this.widths[i])
weight_t* scores(int i) nogil:
^
------------------------------------------------------------
thinc\structs.pxd:238:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
return this._bwd[i] + (j * this.widths[i])
weight_t* scores(int i) nogil:
return this.fwd(this.nr_layer-1, i)
weight_t* losses(int i) nogil:
^
------------------------------------------------------------
thinc\structs.pxd:241:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
return this.fwd(this.nr_layer-1, i)
weight_t* losses(int i) nogil:
return this.bwd(this.nr_layer-1, i)
weight_t* costs(int i) nogil:
^
------------------------------------------------------------
thinc\structs.pxd:244:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
return this.bwd(this.nr_layer-1, i)
weight_t* costs(int i) nogil:
return this._costs + (i * this.nr_out())
int* is_valid(int i) nogil:
^
------------------------------------------------------------
thinc\structs.pxd:247:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
return this._costs + (i * this.nr_out())
int* is_valid(int i) nogil:
return this._is_valid + (i * this.nr_out())
int guess(int i) nogil:
^
------------------------------------------------------------
thinc\structs.pxd:250:4: function definition in pxd file must be declared 'cdef inline'
Error compiling Cython file:
------------------------------------------------------------
...
return this._is_valid + (i * this.nr_out())
int guess(int i) nogil:
return VecVec.arg_max_if_true(this.scores(i), this.is_valid(i), this.nr_out())
int best(int i) nogil:
^
------------------------------------------------------------
thinc\structs.pxd:253:4: function definition in pxd file must be declared 'cdef inline'
warning: thinc\linalg.pxd:14:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: thinc\linalg.pxd:90:8: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: thinc\linalg.pxd:174:8: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
Compiling thinc/linalg.pyx because it changed.
Compiling thinc/structs.pyx because it changed.
Compiling thinc/typedefs.pyx because it changed.
Compiling thinc/linear/avgtron.pyx because it changed.
Compiling thinc/linear/features.pyx because it changed.
Compiling thinc/linear/serialize.pyx because it changed.
Compiling thinc/linear/sparse.pyx because it changed.
Compiling thinc/linear/linear.pyx because it changed.
Compiling thinc/neural/optimizers.pyx because it changed.
Compiling thinc/neural/ops.pyx because it changed.
Compiling thinc/neural/_aligned_alloc.pyx because it changed.
Compiling thinc/extra/eg.pyx because it changed.
Compiling thinc/extra/mb.pyx because it changed.
Compiling thinc/extra/search.pyx because it changed.
Compiling thinc/extra/cache.pyx because it changed.
[ 1/15] Cythonizing thinc/extra/cache.pyx
[ 2/15] Cythonizing thinc/extra/eg.pyx
Traceback (most recent call last):
File "C:\Users\nandh\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\nandh\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nandh\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nandh\AppData\Local\Temp\pip-build-env-9bei2cqq\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nandh\AppData\Local\Temp\pip-build-env-9bei2cqq\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\nandh\AppData\Local\Temp\pip-build-env-9bei2cqq\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 258, in <module>
File "<string>", line 195, in setup_package
File "C:\Users\nandh\AppData\Local\Temp\pip-build-env-9bei2cqq\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
File "C:\Users\nandh\AppData\Local\Temp\pip-build-env-9bei2cqq\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: thinc/extra/eg.pyx
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Getting requirements to build wheel did not run successfully.
exit code: 1
See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Don’t report the same thing in two issues! Especially one already closed
I got same error as below and resolved the error after downgrading pip version from 24.1.2 to 22.1.0. I am using python 3.11
`Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [4 lines of output]
Looking in links:
WARNING: Location '' is ignored: it is either a non-existing path or lacks a specific scheme.
ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=40.8.0
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.`
The ast page you linked is part of the Python standard library. You don't need to pip install anything to use it. Just import ast. The ast pip package you're downloading is unrelated and last released in 2017 so it's probably just broken.
try this issue will be resolved pip install python-dotenv
Can this issue be locked?
try this issue will be resolved pip install python-dotenv
thanks it worked
It is okay,,I have noted the error
On Thu, Sep 19, 2024 at 1:36 AM kaizenkudo @.***> wrote:
try this issue will be resolved pip install python-dotenv
thanks it worked
— Reply to this email directly, view it on GitHub https://github.com/pypa/packaging-problems/issues/721#issuecomment-2359567327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY2CSBNBU3P6P3FMIIOODJLZXH6ARAVCNFSM6AAAAABB3U6536VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJZGU3DOMZSG4 . You are receiving this because you commented.Message ID: @.***>
i am trying to install chatterbot using
pip install chatterbot
but getting the error
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.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
tried everything as mentioned above to resolve the issue, but still can't
Open a separate ticket for your specific problem. Find the log file that pip tells you about and look at it, if you don’t see the solution then attach it to your ticket.
@henryiii can you lock this ticket?
@kavyachouhan When you open an new issue, please make sure you copy more of the error - your error starts with "See above for output", but you didn't copy the above part!
FYI, it looks like chatterbot hasn't had a release in over 4 years, or been touched in over 3, and the last one gives a tight Python range of >=3.4, <=3.8
. FWIW, packages should never put an upper cap here, I'd not be surprised if it at least works a few Python versions past 3.8 if they hadn't capped this. You might want to look for a better maintained package, or fork it and install it from git instead. There are 4k forks already, one of them likely already updated this - I bet if you expand the range and add a Cython <3 cap, it might be pretty close to working. No idea for sure, though.
@merwok yes, I can. Everyone, if you have an issue, please open a separate ticket. Though if it's something specific to a single package, you might be better off finding the package's issue tracker and opening one there.
For example, chatterbox's issue tracker is https://github.com/gunthercox/ChatterBot/issues and people have been opening issues about not being able to install it for a while there. (But the package seems to be abandoned, 400+ issues).
Problem description
When trying to install the packaged library from test.pypi I get the following error.
pyproject.toml