python-strtotime's People
python-strtotime's Issues
Fails to build on Python 3.11 - longintrepr.h: file not found
Fails with:
strtotime.c:196:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"
^~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
➜ pip install strtotime
Collecting strtotime
Using cached strtotime-1.0.3.zip (598 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: strtotime
Building wheel for strtotime (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
running bdist_wheel
running build
running build_ext
building 'strtotime' extension
creating build
creating build/temp.macosx-10.15-x86_64-cpython-311
creating build/temp.macosx-10.15-x86_64-cpython-311/lib
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/astro.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/astro.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/dow.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/dow.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/parse_date.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/parse_date.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/parse_tz.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/parse_tz.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/timelib.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/timelib.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/tm2unixtime.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/tm2unixtime.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/unixtime2tm.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/unixtime2tm.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c strtotime.c -o build/temp.macosx-10.15-x86_64-cpython-311/strtotime.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
strtotime.c:196:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"
^~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for strtotime
Running setup.py clean for strtotime
Failed to build strtotime
Installing collected packages: strtotime
Running setup.py install for strtotime ... error
error: subprocess-exited-with-error
× Running setup.py install for strtotime did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
running install
/usr/local/lib/python-3.11.1/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_ext
building 'strtotime' extension
creating build
creating build/temp.macosx-10.15-x86_64-cpython-311
creating build/temp.macosx-10.15-x86_64-cpython-311/lib
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/astro.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/astro.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/dow.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/dow.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/parse_date.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/parse_date.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/parse_tz.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/parse_tz.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/timelib.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/timelib.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/tm2unixtime.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/tm2unixtime.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c lib/unixtime2tm.c -o build/temp.macosx-10.15-x86_64-cpython-311/lib/unixtime2tm.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DHAVE_STRING_H=1 -I. -Ilib -I/usr/local/lib/python-3.11.1/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c strtotime.c -o build/temp.macosx-10.15-x86_64-cpython-311/strtotime.o -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wno-expansion-to-defined -Wno-nullability-completeness -Wno-unreachable-code
strtotime.c:196:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"
^~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> strtotime
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.