← Back to Community
python: socketio packaging problems
Profile icon
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
Profile icon
SeamusDonahue
Comments
hotnewtop
Profile icon
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!

Profile icon
SeamusDonahue

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

Profile icon
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

Profile icon
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

Profile icon
SeamusDonahue

seems socketio is the problem @JBYT27

Profile icon
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

Profile icon
JBloves27

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

Profile icon
SeamusDonahue

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

Profile icon
JBloves27

Very disappointing.. You too! @SeamusDonahue

Profile icon
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

Profile icon
SeamusDonahue

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

Profile icon
JBloves27

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

Profile icon
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

Profile icon
SeamusDonahue

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

Profile icon
JBloves27
Profile icon
realTronsi

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

Profile icon
SeamusDonahue

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