Ask coding questions

← Back to all posts
python: socketio packaging problems
h
SeamusDonahue

If I hit run: it gives me [assertion Error]. If I install aiohttp first, then it says msgpack has no attribute 'dumps' all I want to do is learn how to use socketio.

can anyone help with my packaging problems?

Answered by JBloves27 [earned 5 cycles]
View Answer
Voters
SeamusDonahue
Comments
hotnewtop
JBloves27

In my opinion, the error is this: i think there is something wrong with the module you have/imported. Or it could be an internal error with the module.
Hope this helps!

SeamusDonahue

Not really sure what that means, does that mean that socketio is broken? if so is there anyway I can fix it? @JBYT27

JBloves27

It could be socketio or it could be the from aiohttp import web. If ti is an internal error, you cant fix it, sry :( If this is not the case though, it could be a code error that connects to the importing. Try looking it through? @SeamusDonahue

JBloves27

Actually, I think the error might be the open 'index.html' thing. Because there is no such file, i think that may be the error as well. idk for sure though. @SeamusDonahue

SeamusDonahue

seems socketio is the problem @JBYT27

SeamusDonahue

I tried not importing aiohttp: same problem
but if I don't import socketio the program runs and gives me the obvious socketio not defined error

JBloves27

ah, ok. Sad to say that socketio has an error :( @SeamusDonahue

SeamusDonahue

although disappointing guess I will have to use a different lib thanks, and have a nice day. @JBYT27

JBloves27

Very disappointing.. You too! @SeamusDonahue

realTronsi

@JBYT27 @SeamusDonahue socket.io is not broken... most likely you've messed with the poetry.lock file or tampered with packaging files. Create a new repl and it should work

SeamusDonahue

I have tried deleting the file multiple times to let it regenerate, that is just how repl.it made the file @realTronsi

JBloves27

hmm? oh. ok, did you try? did it work? (just curious) @realTronsi

SeamusDonahue

for some reason making a new repl import the package correctly, I didn't tamper with poetry.lock in this repl, so It had no right working but somehow it does? https://repl.it/@SeamusDonahue/BrilliantUnusedArray
@JBYT27 @realTronsi

SeamusDonahue

I don't think I can mark that answer as I have already marked an answer

JBloves27

lol. wow! @SeamusDonahue

realTronsi

@SeamusDonahue wdym, you aren't supposed to touch poetry.lock, especially if you don't know what you're doing.

SeamusDonahue

yea I just said that I didn't tamper with it, and deleted it multiple times to get it to regenerate @realTronsi