#neil3rd

1 messages · Page 1 of 1 (latest)

orchid crow
#

Hello! Not sure I understand, can you provide more information?

onyx pine
#

My project is getting this errors

orchid crow
#

What help do you need specifically? What have you tried that hasn't worked?

onyx pine
#

I am seeking help of Stripe team over at glitch.com/@jaunty smelt since they must have encountered this before

orchid crow
#

Are you a developer?

onyx pine
#

relatively new to dev work

orchid crow
#

Okay, so what have you tried so far to fix the errors?

onyx pine
#

I have tried different installations of Python versions.

In 2 months, this is my 5th attempt trying to have this addressed directly by the Stripe team of glitch.com/@jaunty smelt

I have tried also communicating with senior devs in the glitch community forum itself. No response.

I have also tried my luck with a dev with a PhD. No response.

orchid crow
#

Which specific code are you trying to run?

onyx pine
orchid crow
#

Can you share the code that's throwing the errors above?

orchid crow
#

Okay, so the error is coming from line 21. That line is doing a lot of things at once. If you add code above line 21 to log the result of each part of line 21 that might narrow things down. For example, if you log the value of os.getenv("STATIC_DIR") is the value what you expect?

onyx pine
#

How do I "log the value"?

orchid crow
#

You can use print()

#

So print(os.getenv("STATIC_DIR")) above line 21; what does the output look like?

onyx pine
#

This way? Or

#

Or this way?

orchid crow
#

The first one.

onyx pine
#

first one has this "None"

orchid crow
#

Okay, so that's likely the issue. It sounds like that environment variable isn't set.

#

That's probably leading to the type error at the bottom about NoneType.

onyx pine
#

How do I set the environment variable?
What specifically is the environment variable; is it a number; is it a Flask command?

orchid crow
onyx pine
#

copy on this, though

#

though will I able to set the said environment variable as just a plain user of glitch.com? Or does it require higher level privileges?

still portal
onyx pine
#

oh you both mean the " .env file" !?

still portal
#

Yes, the .env file is where you would set environment variables

onyx pine
#

copy

#

@orchid crow @still portal
thank you to you both. I will do so as you recommended.
I have no further questions at this time.
thank you again. I'll log off for now.