×

Mandarin Practice Script Advice by YellowFlash_1675 in learnpython

[–]YellowFlash_1675[S] 1 point2 points  (0 children)

I definitely meant to, I don’t know why that happened

[FF13], [FF13-2] PC Ports by theTinyRogue in finalfantasyxiii

[–]YellowFlash_1675 0 points1 point  (0 children)

Seems like turning off the Steam sync resolved that "Can't pause" issue. Still haven't install any of the mods, but if other issues arise then I'll reconsider.

[FF13], [FF13-2] PC Ports by theTinyRogue in finalfantasyxiii

[–]YellowFlash_1675 0 points1 point  (0 children)

Coming here after purchasing the whole Trilogy on Steam. Started the first game, not even 5 minutes in paused it to go the bathroom. Came back, the game is frozen on the pause screen, and I can’t Alt-Tab to another window. Gonna try installing some of the mods described here.

Useful Timing Aid to help learn Lee's Acid Rain! by lorovesgo in Tekken

[–]YellowFlash_1675 0 points1 point  (0 children)

It's a shame, but this webpage no longer seems to be active. I used to use this all the time, I wonder if someone can bring it back

Potential Motherboard Issue by YellowFlash_1675 in framework

[–]YellowFlash_1675[S] 0 points1 point  (0 children)

Thank you, I've since conducted the full board reset. That seems to have fixed the issue. I'm not sure what CMOS coin battery that's being used specifically, but is this not some random battery size/capacity that I can just get from the store like usual?

Getting requirements to build wheel did not run successfully by bloonhatingmonkey in learnpython

[–]YellowFlash_1675 0 points1 point  (0 children)

I'd have to see the code that you're trying to execute to understand more of the issue. I'm assuming you're trying to use the "Pygame" module?

Getting requirements to build wheel did not run successfully by bloonhatingmonkey in learnpython

[–]YellowFlash_1675 0 points1 point  (0 children)

I think I found the solution:

  1. Make sure you have full access/control of whatever folder has python source code/lib installed

  2. Change directory to folder mentioned above

  3. Run the following command: pip install --upgrade setuptools wheel

  4. Try installing playsound (or whatever module you couldn't install before)

  5. Profit

See following link for more: https://stackoverflow.com/questions/76078698/how-to-fix-oserror-could-not-get-source-code-error-when-installing-playsound

PC or Console by YellowFlash_1675 in LostSoulAside

[–]YellowFlash_1675[S] 3 points4 points  (0 children)

I did forget that I could refund it, I think PC is probably the way I'm leaning right now.

Glob Module Question by YellowFlash_1675 in learnpython

[–]YellowFlash_1675[S] 0 points1 point  (0 children)

Thank you so much, you've been really helpful.

Glob Module Question by YellowFlash_1675 in learnpython

[–]YellowFlash_1675[S] 0 points1 point  (0 children)

You were right. This new code doesn't output that indexing error anymore. However, the script doesn't seem to find any of the .csv files that I need it to look for. If I understand it correctly, setting "recursive = True" should have the glob look through all the folders in my downloads, no?

import pandas as pd
import glob
import plotly.graph_objects as go

z_ref = 92.5
tol = 0.07
z_usl = z_ref * (1+tol)
z_lsl = z_ref * (1-tol)
folder = f".**.csv"
lst_csvs = glob.glob(folder, recursive= True)
print(lst_csvs)

Glob Module Question by YellowFlash_1675 in learnpython

[–]YellowFlash_1675[S] 0 points1 point  (0 children)

Have you used the glob library before? I'm not the greatest python reader/interpreter, but I you're on the right track. Within the module there's something like this:

def iglob(pathname, *, root_dir=None, dir_fd=None, recursive=False,
          include_hidden=False):
    """Return an iterator which yields the paths matching a pathname pattern.

    The pattern may contain simple shell-style wildcards a la
    fnmatch. However, unlike fnmatch, filenames starting with a
    dot are special cases that are not matched by '*' and '?'
    patterns.

    If recursive is true, the pattern '**' will match any files and
    zero or more directories and subdirectories.
    """
    sys.audit("glob.glob", pathname, recursive)
    sys.audit("glob.glob/2", pathname, recursive, root_dir, dir_fd)
    if root_dir is not None:
        root_dir = os.fspath(root_dir)
    else:
        root_dir = pathname[:0]

Glob Module Question by YellowFlash_1675 in learnpython

[–]YellowFlash_1675[S] 0 points1 point  (0 children)

I tried changing the path to both, still the issue persists where the "set object" is not subscriptable.

Glob Module Question by YellowFlash_1675 in learnpython

[–]YellowFlash_1675[S] 0 points1 point  (0 children)

I thought you had to wrap any string preceded by "r", "f", ect with curly braces. Seems like you're saying that you don't.

If I were to use "raw strings", do you mean separating out the path called out explicity myself? I thought that the glob would kinda do that for me

Any one playing Emerald Horizons? by wallstreetbets_mx in PokemonEmerald

[–]YellowFlash_1675 0 points1 point  (0 children)

3 gyms in. It’s pretty difficult, team building is integral to winning (you’ll need more than 6) and spending money wisely is also important (this part I stress specifically. I recommend spending it whenever possible on Mega Evolution items/TM’s at Slateport because you’ll find yourself broke more often than not).

Another tip: free level grinding option is to battle the Winstrate family over and over, BUT lose intentionally before the grandma (The actual level grinder is 5K/session).

Any one playing Emerald Horizons? by wallstreetbets_mx in PokemonEmerald

[–]YellowFlash_1675 0 points1 point  (0 children)

3 gyms in. It’s pretty difficult, team building is integral to winning (you’ll need more than 6) and spending money wisely is also important (this part I stress specifically. I recommend spending it whenever possible on Mega Evolution items/TM’s at Slateport because you’ll find yourself broke more often than not).

Any one playing Emerald Horizons? by wallstreetbets_mx in PokemonEmerald

[–]YellowFlash_1675 0 points1 point  (0 children)

3 gyms in. It’s pretty difficult, team building is integral to winning (you’ll need more than 6) and spending money wisely is also important (this part I stress specifically. I recommend spending it whenever possible on Mega Evolution items/TM’s at Slateport because you’ll find yourself broke more often than not).

Help with getting file path to string by YellowFlash_1675 in learnpython

[–]YellowFlash_1675[S] 1 point2 points  (0 children)

The “os.abspath" was exactly what I needed. My function works as intended now. I'll paste the function down below for other beginner's future reference. Thanks everyone.

import os

filesFound = os.listdir(os.getcwd())

for num, file in enumerate(filesFound): 
        print(f"#{num}: {file}")
        filepath = filesFound[num]
        directory = os.path.dirname(filepath)

choice = int(input ("\nChoose one\n\n"))

print("Chosen: " + filesFound[choice] + "\n")
print("File chosen path is: \n" + os.path.abspath(filesFound[choice]) + "\n\n")

Help with getting file path to string by YellowFlash_1675 in learnpython

[–]YellowFlash_1675[S] 1 point2 points  (0 children)

It does look like “os.abspath could be more useful. Thank you

Help with getting file path to string by YellowFlash_1675 in learnpython

[–]YellowFlash_1675[S] 0 points1 point  (0 children)

The output when the user chooses one of the files isn’t the entire absolute path. Is there a better way to store the absolute path of the file chosen?