#๐Ÿ”’ im not getting output printed in the command prompt although being my code is 100% correct

46 messages ยท Page 1 of 1 (latest)

queen ferryBOT
#

@thorny mountain

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

thorny mountain
#

how do i send the code

#

let me send paste bin

#

whats wrong in my code

#

this is the output i get

kind nova
#

I assume its the start_connection()?

thorny mountain
#

yeah

kind nova
#

OK what do you put in for the parameters?

thorny mountain
#

host and port?

kind nova
#

Oh I don't think that's right. It looks like its supposed to be part of the LocalNetworkHandler class

#

So its not indented in correctly

#

Did you copy and paste this code @thorny mountain ? It seems poorly made

thorny mountain
#

yeah im reffering to a github repo

kind nova
#

Can you share the repo link?

thorny mountain
#

yep

kind nova
#

But I doubt even then this script won't work on its own

thorny mountain
kind nova
#

Its just a class and just needs to be imported into another

thorny mountain
kind nova
#

Why do you need this bit of code?

thorny mountain
#

i want to decode raw data with base64 and parse with protos

#

rest all is not needed

#

so that code is perfect not able to run

kind nova
#

Because none of it is being called

queen ferryBOT
#

rab/rab.py lines 4011 to 4013

localnetwork = LocalNetworkHandler(self.config['network'].get(
    'host', '0.0.0.0'), self.config['network'].get('port', 5120))
localnetwork.config = self.config```
kind nova
#

and that is if you understand how self. works

thorny mountain
#
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
logger = logging.getLogger('rab')
#

its aready imported right

kind nova
thorny mountain
#

how do i make this run now ๐Ÿ˜…๐Ÿ˜…

kind nova
#

!resources have lots of good courses and tutorials

queen ferryBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

thorny mountain
#

alright

#

!close

queen ferryBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.