Issue26425
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2016-02-24 10:14 by Konrad, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Messages (3) | |||
---|---|---|---|
msg260783 - (view) | Author: (Konrad) | Date: 2016-02-24 10:14 | |
Hello, when trying to build the 'bsddb3' extension (from https://pypi.python.org/pypi/bsddb3/6.1.1) which is necessary for Gramps ( https://gramps-project.org/wiki/index.php?title=Install_latest_BSDDB )I get the error 'TypeError: object of type 'NoneType' has no len()'. MinGW32 which I've installed for this purpose seems to work. Here is the Traceback: Detected Berkeley DB version 6.0 from db.h running build running build_py running build_ext building 'bsddb3._pybsddb' extension c:\temp\mingw\bin\gcc.exe -mdll -O -Wall -IC:/Temp/BerkelyDB/include/ -Ic:\temp\ python34\include -Ic:\temp\python34\include -c Modules/_bsddb.c -o build\temp.wi n32-3.4\Release\modules\_bsddb.o writing build\temp.win32-3.4\Release\modules\_pybsddb.def Traceback (most recent call last): File "setup3.py", line 527, in <module> 'Programming Language :: Python :: 3.4', File "c:\temp\python34\lib\distutils\core.py", line 148, in setup dist.run_commands() File "c:\temp\python34\lib\distutils\dist.py", line 955, in run_commands self.run_command(cmd) File "c:\temp\python34\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "c:\temp\python34\lib\distutils\command\build.py", line 126, in run self.run_command(cmd_name) File "c:\temp\python34\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\temp\python34\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "c:\temp\python34\lib\site-packages\setuptools\command\build_ext.py", line 49, in run _build_ext.run(self) File "c:\temp\python34\lib\distutils\command\build_ext.py", line 339, in run self.build_extensions() File "c:\temp\python34\lib\distutils\command\build_ext.py", line 448, in build_extensions self.build_extension(ext) File "c:\temp\python34\lib\site-packages\setuptools\command\build_ext.py", line 174, in build_extension _build_ext.build_extension(self, ext) File "c:\temp\python34\lib\distutils\command\build_ext.py", line 535, in build_extension target_lang=language) File "c:\temp\python34\lib\distutils\ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "c:\temp\python34\lib\distutils\cygwinccompiler.py", line 248, in link target_lang) File "c:\temp\python34\lib\distutils\unixccompiler.py", line 157, in link libraries) File "c:\temp\python34\lib\distutils\ccompiler.py", line 1092, in gen_lib_options opt = compiler.runtime_library_dir_option(dir) File "c:\temp\python34\lib\distutils\unixccompiler.py", line 224, in runtime_library_dir_option compiler = os.path.basename(sysconfig.get_config_var("CC")) File "c:\temp\python34\lib\ntpath.py", line 246, in basename return split(p)[1] File "c:\temp\python34\lib\ntpath.py", line 217, in split d, p = splitdrive(p) File "c:\temp\python34\lib\ntpath.py", line 159, in splitdrive if len(p) > 1: TypeError: object of type 'NoneType' has no len() This behavior possibly relates to other issues (http://bugs.python.org/issue21336, http://bugs.python.org/issue22587) but I'm not sure about it. Sorry for my poor understanding of these things. Thanks, Konrad |
|||
msg260792 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * | Date: 2016-02-24 11:51 | |
This is not related to issue22587. The problem is that sysconfig.get_config_var("CC") returns None. This may be a bug in the distutils package, in the bsddb3 extension, in MinGW32, or in user configuration. |
|||
msg386377 - (view) | Author: Steve Dower (steve.dower) * | Date: 2021-02-03 18:26 | |
Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils. If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:27 | admin | set | github: 70612 |
2021-02-03 18:26:19 | steve.dower | set | status: open -> closed resolution: out of date messages: + msg386377 stage: resolved |
2016-02-24 11:51:48 | serhiy.storchaka | set | nosy:
+ eric.araujo, dstufft, serhiy.storchaka messages: + msg260792 components: + Distutils |
2016-02-24 10:14:39 | Konrad | create |