Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python crashes on aiohttp import #276

Closed
badgh opened this issue Feb 22, 2015 · 7 comments
Closed

python crashes on aiohttp import #276

badgh opened this issue Feb 22, 2015 · 7 comments
Labels

Comments

@badgh
Copy link

badgh commented Feb 22, 2015

I installed aiohttp (and also chardet, cython as required):

pip install aiohttp
Collecting aiohttp
Using cached aiohttp-0.14.4.tar.gz
Compiling aiohttp/_multidict.pyx because it changed.
Cythonizing aiohttp/_multidict.pyx
Installing collected packages: aiohttp
Running setup.py install for aiohttp
building 'aiohttp._multidict' extension
C:\Anaconda3\Scripts\gcc.bat -mdll -O -Wall -IC:\Anaconda3\include -IC:\Anac
onda3\include -c aiohttp/_multidict.c -o build\temp.win-amd64-3.4\Release\aiohtt
p_multidict.o
C:\Anaconda3\Scripts\gcc.bat -shared -s build\temp.win-amd64-3.4\Release\aio
http_multidict.o build\temp.win-amd64-3.4\Release\aiohttp_multidict.def -LC:\A
naconda3\libs -LC:\Anaconda3\PCbuild\amd64 -lpython34 -lmsvcr100 -o build\lib.wi
n-amd64-3.4\aiohttp_multidict.pyd
Successfully installed aiohttp-0.14.4

Whenever i try to import aiohttp python crashes without any output in cmd:
image

I tried to uninstall and reinstall everything, tried to install with different installers, but without success.
Can you, please, help?

@fafhrd91
Copy link
Member

could you try to find and remove this file "aiohttp_multidict.pyd" and then try again

@badgh
Copy link
Author

badgh commented Feb 23, 2015

well i deleted my anaconda completely, reinstalled python without anaconda, now aiohttp works. However, i usually encounter this problem when using aiohttp: 'Attempt to decode JSON with unexpected mimetype'.

@badgh badgh closed this as completed Feb 23, 2015
@kxepal
Copy link
Member

kxepal commented Feb 23, 2015

However, i usually encounter this problem when using aiohttp: 'Attempt to decode JSON with unexpected mimetype'.

This happens when you tries to read JSON from the response that didn't announce that it actually contains JSON data. That's not an error, but a warning to alert you that data here suddenly may not be a valid JSON.

@Arttii
Copy link

Arttii commented Apr 22, 2015

I also seem to have this problem for Anaconda with python 3.4. Not sure how to debug it to see what the issue is. The problem seems to lie in the cython compiled extensions. I am not sure why its not working though.

@Arttii
Copy link

Arttii commented Apr 22, 2015

I downloaded the devel version and ran setup build then copied the built files into site-packages and now it works. Mystical stuff I guess.

@asvetlov
Copy link
Member

Looks like we need deploy Windows 32 and 64 bit wheels.

On Wed, Apr 22, 2015 at 6:03 PM, Arttii [email protected] wrote:

I downloaded the devel version and run setup build then copied the built
files into site-packages and now it works. Mystical stuff I guess.


Reply to this email directly or view it on GitHub
#276 (comment).

Thanks,
Andrew Svetlov

@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants