Comments (5)
Sorry, upgrade of pip to newest version resolves problem. Issue can be closed.
from multidict.
@asvetlov this looks like an issue w/ sdist
from multidict.
Yes, .c
file is missing in tarball, need cython to install.
from multidict.
After installing cython-0.27.2, multidict install gave following error.
multidict-3.3.0$ sudo python setup.py install
Compiling multidict/_multidict.pyx because it changed.
[1/1] Cythonizing multidict/_multidict.pyx
running install
running bdist_egg
running egg_info
writing multidict.egg-info/PKG-INFO
writing top-level names to multidict.egg-info/top_level.txt
writing dependency_links to multidict.egg-info/dependency_links.txt
reading manifest file 'multidict.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files found matching 'multidict/_multidict.html'
warning: no previously-included files found matching 'multidict/_multidict..so'
warning: no previously-included files found matching 'multidict/_multidict.pyd'
warning: no previously-included files found matching 'multidict/_multidict..pyd'
no previously-included directories found matching 'docs/_build'
writing manifest file 'multidict.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
copying multidict/_multidict.c -> build/lib.linux-x86_64-2.7/multidict
copying multidict/_multidict.pyx -> build/lib.linux-x86_64-2.7/multidict
running build_ext
building 'multidict._multidict' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/multidict
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c multidict/_multidict.c -o build/temp.linux-x86_64-2.7/multidict/_multidict.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/multidict/_multidict.o -o build/lib.linux-x86_64-2.7/multidict/_multidict.so
building 'multidict._istr' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c multidict/_istr.c -o build/temp.linux-x86_64-2.7/multidict/_istr.o
multidict/_istr.c: In function ‘modstate’:
multidict/_istr.c:33:5: warning: implicit declaration of function ‘PyModule_GetState’ [-Wimplicit-function-declaration]
return (ModData)PyModule_GetState(mod);
^
multidict/_istr.c:33:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return (ModData*)PyModule_GetState(mod);
^
multidict/_istr.c: In function ‘global_state’:
multidict/_istr.c:39:5: warning: implicit declaration of function ‘PyState_FindModule’ [-Wimplicit-function-declaration]
return modstate(PyState_FindModule(&_istrmodule));
^
multidict/_istr.c:39:5: warning: passing argument 1 of ‘modstate’ makes pointer from integer without a cast [enabled by default]
multidict/_istr.c:31:1: note: expected ‘struct PyObject *’ but argument is of type ‘int’
modstate(PyObject mod)
^
multidict/_istr.c: At top level:
multidict/_istr.c:181:15: error: variable ‘_istrmodule’ has initializer but incomplete type
static struct PyModuleDef _istrmodule = {
^
multidict/_istr.c:182:5: error: ‘PyModuleDef_HEAD_INIT’ undeclared here (not in a function)
PyModuleDef_HEAD_INIT,
^
multidict/_istr.c:182:5: warning: excess elements in struct initializer [enabled by default]
multidict/_istr.c:182:5: warning: (near initialization for ‘_istrmodule’) [enabled by default]
multidict/_istr.c:183:5: warning: excess elements in struct initializer [enabled by default]
"multidict._istr",
^
multidict/_istr.c:183:5: warning: (near initialization for ‘istrmodule’) [enabled by default]
multidict/istr.c:184:5: warning: excess elements in struct initializer [enabled by default]
istr__doc,
^
multidict/_istr.c:184:5: warning: (near initialization for ‘_istrmodule’) [enabled by default]
multidict/_istr.c:185:5: warning: excess elements in struct initializer [enabled by default]
sizeof(ModData),
^
multidict/_istr.c:185:5: warning: (near initialization for ‘_istrmodule’) [enabled by default]
multidict/_istr.c:186:5: warning: excess elements in struct initializer [enabled by default]
NULL, / m_methods /
^
multidict/_istr.c:186:5: warning: (near initialization for ‘_istrmodule’) [enabled by default]
multidict/_istr.c:187:5: warning: excess elements in struct initializer [enabled by default]
NULL, / m_reload /
^
multidict/_istr.c:187:5: warning: (near initialization for ‘_istrmodule’) [enabled by default]
multidict/_istr.c:188:5: warning: excess elements in struct initializer [enabled by default]
NULL, / m_traverse /
^
multidict/_istr.c:188:5: warning: (near initialization for ‘_istrmodule’) [enabled by default]
multidict/_istr.c:189:5: warning: excess elements in struct initializer [enabled by default]
mod_clear, / m_clear */
^
multidict/_istr.c:189:5: warning: (near initialization for ‘_istrmodule’) [enabled by default]
multidict/_istr.c:191:1: warning: excess elements in struct initializer [enabled by default]
};
^
multidict/_istr.c:191:1: warning: (near initialization for ‘_istrmodule’) [enabled by default]
multidict/_istr.c: In function ‘PyInit__istr’:
multidict/_istr.c:199:9: warning: assignment makes pointer from integer without a cast [enabled by default]
mod = PyState_FindModule(&_istrmodule);
^
multidict/_istr.c:210:5: warning: implicit declaration of function ‘PyModule_Create’ [-Wimplicit-function-declaration]
mod = PyModule_Create(&_istrmodule);
^
multidict/_istr.c:210:9: warning: assignment makes pointer from integer without a cast [enabled by default]
mod = PyModule_Create(&_istrmodule);
^
multidict/_istr.c:219:5: warning: implicit declaration of function ‘PyUnicode_New’ [-Wimplicit-function-declaration]
tmp = PyUnicode_New(0, 0);
^
multidict/_istr.c:219:9: warning: assignment makes pointer from integer without a cast [enabled by default]
tmp = PyUnicode_New(0, 0);
^
Traceback (most recent call last):
File "setup.py", line 100, in
setup(**args)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 73, in run
self.do_egg_install()
File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 88, in do_egg_install
self.run_command('bdist_egg')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 185, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 171, in call_command
self.run_command(cmdname)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/install_lib.py", line 21, in run
self.build()
File "/usr/lib/python2.7/distutils/command/install_lib.py", line 111, in build
self.run_command('build_ext')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "setup.py", line 43, in run
except (DistutilsPlatformError, FileNotFoundError):
NameError: global name 'FileNotFoundError' is not defined
from multidict.
Run install against python 3
from multidict.
Related Issues (20)
- Support for the free-threaded build of CPython 3.13
- Wheels for CPython 3.11 HOT 1
- Enhancement: `to_dict` method HOT 1
- Equality operator HOT 6
- Cibuild wheel setup is broken HOT 3
- Fail to build with Python 3.13 HOT 7
- tests/test_mutable_multidict.py::TestCIMutableMultiDict::test_add[multidict._multidict] segfaults on py3.12 HOT 3
- publish purepython/universal wheel? HOT 3
- Build wheels for Python 3.12 HOT 28
- segmentation fault on getall HOT 3
- `MultiDict.copy` returns a `MultiDict` instance when a subclass' `.copy` method is used HOT 4
- [TODO] Hit 100% coverage in `multidict/_multidict_base.py` HOT 2
- [TODO] Migrate `tests/gen_pickles.py` into a pytest fixture HOT 5
- [TODO] Get rid of the disabled MyPy error codes
- Unable to `pip install multidict` with `gcc-14` HOT 21
- [TODO] Start running MyPy against the `multidict/` directory
- [TODO] Revert 19d0511fcebc75cc1e47cf1d71207ac2a28e6e03 HOT 1
- Failing tests test_no_warnings and test_c_extension_preferred_by_default HOT 3
- 6.0.5: pytest fails in 7 units HOT 18
- Case-insensitivity of keys doesn't extend to set operations
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.
from multidict.