mac版遇到同样的问题,即使下载6.7.7版本也是一样一堆报错。
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Collecting importlib_metadata (from vnpy_ctp==6.7.2.0)
Using cached importlib_metadata-8.7.0-py3-none-any.whl.metadata (4.8 kB)
Collecting zipp>=3.20 (from importlib_metadata->vnpy_ctp==6.7.2.0)
Using cached zipp-3.23.0-py3-none-any.whl.metadata (3.6 kB)
Using cached importlib_metadata-8.7.0-py3-none-any.whl (27 kB)
Using cached zipp-3.23.0-py3-none-any.whl (10 kB)
Building wheels for collected packages: vnpy_ctp
Building editable for vnpy_ctp (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building editable for vnpy_ctp (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [105 lines of output]
/private/var/folders/50/z5tz04z530lbpj9tkgrc9388m3wqbw/T/pip-build-env-jkpfi3c9/overlay/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running editable_wheel
creating /private/var/folders/50/z5tz04z530lbpj9tkgrc9388m3wqbw/T/pip-ephem-wheel-cache-ybzpl7cx/wheels/fd/b8/02/ea9688977778ff302433dd58d9d24d407db4e19ce0fdebbbe7/tmp_mq3yagb/.tmp-60i65_xz/vnpy_ctp.egg-info
writing /private/var/folders/50/z5tz04z530lbpj9tkgrc9388m3wqbw/T/pip-ephem-wheel-cache-ybzpl7cx/wheels/fd/b8/02/ea9688977778ff302433dd58d9d24d407db4e19ce0fdebbbe7/tmp_mq3yagb/.tmp-60i65_xz/vnpy_ctp.egg-info/PKG-INFO
writing dependency_links to /private/var/folders/50/z5tz04z530lbpj9tkgrc9388m3wqbw/T/pip-ephem-wheel-cache-ybzpl7cx/wheels/fd/b8/02/ea9688977778ff302433dd58d9d24d407db4e19ce0fdebbbe7/tmp_mq3yagb/.tmp-60i65_xz/vnpy_ctp.egg-info/dependency_links.txt
writing requirements to /private/var/folders/50/z5tz04z530lbpj9tkgrc9388m3wqbw/T/pip-ephem-wheel-cache-ybzpl7cx/wheels/fd/b8/02/ea9688977778ff302433dd58d9d24d407db4e19ce0fdebbbe7/tmp_mq3yagb/.tmp-60i65_xz/vnpy_ctp.egg-info/requires.txt
writing top-level names to /private/var/folders/50/z5tz04z530lbpj9tkgrc9388m3wqbw/T/pip-ephem-wheel-cache-ybzpl7cx/wheels/fd/b8/02/ea9688977778ff302433dd58d9d24d407db4e19ce0fdebbbe7/tmp_mq3yagb/.tmp-60i65_xz/vnpy_ctp.egg-info/top_level.txt
writing manifest file '/private/var/folders/50/z5tz04z530lbpj9tkgrc9388m3wqbw/T/pip-ephem-wheel-cache-ybzpl7cx/wheels/fd/b8/02/ea9688977778ff302433dd58d9d24d407db4e19ce0fdebbbe7/tmp_mq3yagb/.tmp-60i65_xz/vnpy_ctp.egg-info/SOURCES.txt'
reading manifest file '/private/var/folders/50/z5tz04z530lbpj9tkgrc9388m3wqbw/T/pip-ephem-wheel-cache-ybzpl7cx/wheels/fd/b8/02/ea9688977778ff302433dd58d9d24d407db4e19ce0fdebbbe7/tmp_mq3yagb/.tmp-60i65_xz/vnpy_ctp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.pyd' under directory 'vnpy_ctp'
adding license file 'LICENSE'
writing manifest file '/private/var/folders/50/z5tz04z530lbpj9tkgrc9388m3wqbw/T/pip-ephem-wheel-cache-ybzpl7cx/wheels/fd/b8/02/ea9688977778ff302433dd58d9d24d407db4e19ce0fdebbbe7/tmp_mq3yagb/.tmp-60i65_xz/vnpy_ctp.egg-info/SOURCES.txt'
creating '/private/var/folders/50/z5tz04z530lbpj9tkgrc9388m3wqbw/T/pip-ephem-wheel-cache-ybzpl7cx/wheels/fd/b8/02/ea9688977778ff302433dd58d9d24d407db4e19ce0fdebbbe7/tmp_mq3yagb/.tmp-60i65_xz/vnpy_ctp-6.7.2.0.dist-info'
creating /private/var/folders/50/z5tz04z530lbpj9tkgrc9388m3wqbw/T/pip-ephem-wheel-cache-ybzpl7cx/wheels/fd/b8/02/ea9688977778ff302433dd58d9d24d407db4e19ce0fdebbbe7/tmp_mq3yagb/.tmp-60i65_xz/vnpy_ctp-6.7.2.0.dist-info/WHEEL
running build_py
running build_ext
building 'vnpy_ctp.api.vnctptd' extension
creating /var/folders/50/z5tz04z530lbpj9tkgrc9388m3wqbw/T/tmpf7tz4r9p.build-temp/vnpy_ctp/api/vnctp/vnctptd
clang++ -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -Ivnpy_ctp/api/include/mac -Ivnpy_ctp/api/vnctp -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c vnpy_ctp/api/vnctp/vnctptd/vnctptd.cpp -o /var/folders/50/z5tz04z530lbpj9tkgrc9388m3wqbw/T/tmpf7tz4r9p.build-temp/vnpy_ctp/api/vnctp/vnctptd/vnctptd.o -std=c++11 -mmacosx-version-min=10.12
In file included from vnpy_ctp/api/vnctp/vnctptd/vnctptd.cpp:4:
In file included from vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:6:
vnpy_ctp/api/vnctp/vnctp.h:168:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
168 | *pout = "\0";
| ^
vnpy_ctp/api/vnctp/vnctp.h:176:15: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
176 | char temp[length];
| ^~~~~~
vnpy_ctp/api/vnctp/vnctp.h:176:15: note: read of non-const variable 'length' is not allowed in a constant expression
vnpy_ctp/api/vnctp/vnctp.h:175:9: note: declared here
175 | int length = gb2312.size() * 2 + 1;
| ^
In file included from vnpy_ctp/api/vnctp/vnctptd/vnctptd.cpp:4:
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:201:22: error: extra qualification on member 'OnFrontConnected'
201 | virtual void TdApi::OnFrontConnected();
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:202:22: error: extra qualification on member 'OnFrontDisconnected'
202 | virtual void TdApi::OnFrontDisconnected(int nReason);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:203:22: error: extra qualification on member 'OnHeartBeatWarning'
203 | virtual void TdApi::OnHeartBeatWarning(int nTimeLapse);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:204:22: error: extra qualification on member 'OnRspAuthenticate'
204 | virtual void TdApi::OnRspAuthenticate(CThostFtdcRspAuthenticateField *pRspAuthenticateField, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:205:22: error: extra qualification on member 'OnRspUserLogin'
205 | virtual void TdApi::OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:206:22: error: extra qualification on member 'OnRspUserLogout'
206 | virtual void TdApi::OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:207:22: error: extra qualification on member 'OnRspUserPasswordUpdate'
207 | virtual void TdApi::OnRspUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:208:22: error: extra qualification on member 'OnRspTradingAccountPasswordUpdate'
208 | virtual void TdApi::OnRspTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:209:22: error: extra qualification on member 'OnRspUserAuthMethod'
209 | virtual void TdApi::OnRspUserAuthMethod(CThostFtdcRspUserAuthMethodField *pRspUserAuthMethod, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:210:22: error: extra qualification on member 'OnRspGenUserCaptcha'
210 | virtual void TdApi::OnRspGenUserCaptcha(CThostFtdcRspGenUserCaptchaField *pRspGenUserCaptcha, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:211:22: error: extra qualification on member 'OnRspGenUserText'
211 | virtual void TdApi::OnRspGenUserText(CThostFtdcRspGenUserTextField *pRspGenUserText, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:212:22: error: extra qualification on member 'OnRspOrderInsert'
212 | virtual void TdApi::OnRspOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:213:22: error: extra qualification on member 'OnRspParkedOrderInsert'
213 | virtual void TdApi::OnRspParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:214:22: error: extra qualification on member 'OnRspParkedOrderAction'
214 | virtual void TdApi::OnRspParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:215:22: error: extra qualification on member 'OnRspOrderAction'
215 | virtual void TdApi::OnRspOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:216:22: error: extra qualification on member 'OnRspQryMaxOrderVolume'
216 | virtual void TdApi::OnRspQryMaxOrderVolume(CThostFtdcQryMaxOrderVolumeField *pQryMaxOrderVolume, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
| ~~~~~~~^
vnpy_ctp/api/vnctp/vnctptd/vnctptd.h:217:22: error: extra qualification on member 'OnRspSettlementInfoConfirm'
217 | virtual void TdApi::OnRspSettlementIn