Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please help me!!!! #33

Open
ghost opened this issue Apr 21, 2020 · 53 comments
Open

Please help me!!!! #33

ghost opened this issue Apr 21, 2020 · 53 comments

Comments

@ghost
Copy link

ghost commented Apr 21, 2020

i am extremely confused and i am clueless at python please take me through this step by step thanks

@wvsharber
Copy link
Owner

Hi! I'm happy to try to help as best I can. I'm fully aware that Python can be intimidating at first, but you really don't need to know any Python to get this working. What type of operating system do you have?

@ghost
Copy link
Author

ghost commented Apr 21, 2020 via email

@ghost
Copy link
Author

ghost commented Apr 21, 2020

For more information when i paste
conda env create -f environment.yml
it says
SyntaxError: invalid syntax

@wvsharber
Copy link
Owner

Do you have anaconda and Python already installed on your system?

@ghost
Copy link
Author

ghost commented Apr 21, 2020

yep

@wvsharber
Copy link
Owner

And you forked and cloned this repo and navigated into it?

@ghost
Copy link
Author

ghost commented Apr 21, 2020

I have Spyder and Python and Python (idle)

@ghost
Copy link
Author

ghost commented Apr 21, 2020

And you forked and cloned this repo and navigated into it?

im not really got a clue what that means, i downloaded this github repository tho

@wvsharber
Copy link
Owner

When you're in the command line, you need to set your working directory to be inside the github repo. You'll want to type a command something like: cd filepath

@ghost
Copy link
Author

ghost commented Apr 21, 2020

cd C:\Users\Jay\Downloads\BeatSaberSythn thing\BeatSaberSythn thing
SyntaxError: invalid syntax

i dont know if im just retarded but i think i done it right

@wvsharber
Copy link
Owner

wvsharber commented Apr 21, 2020

It's ok! It looks like you just need quotation marks around the filepath.

cd "C:\Users\Jay\Downloads\BeatSaberSythn thing\BeatSaberSythn thing"

I found a video that explains how to do it super easily:

https://www.youtube.com/watch?v=BfXh11ryBJg

(also please forgive me, I don't work on a PC usually, so I'm trying to figure out how to do all of this the same as you!)

@ghost
Copy link
Author

ghost commented Apr 21, 2020

Ok now we are getting somewhere but now....
C:\Users\Jay\Downloads\BeatSaberSythn thing\BeatSaberSythn thing>conda env create -f environment.yml
'conda' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Jay\Downloads\BeatSaberSythn thing\BeatSaberSythn thing>

@ghost
Copy link
Author

ghost commented Apr 21, 2020

:(((((((

@wvsharber
Copy link
Owner

Just to make sure, you installed Anaconda? That's where the conda command comes from.

@ghost
Copy link
Author

ghost commented Apr 21, 2020

100% i definitely have it

@ghost
Copy link
Author

ghost commented Apr 21, 2020

Collecting package metadata (repodata.json): \

@ghost
Copy link
Author

ghost commented Apr 21, 2020

hm idk what that means

@wvsharber
Copy link
Owner

You should only be getting that "collecting package metadata" if conda is working properly. Is it working for you now?

@ghost
Copy link
Author

ghost commented Apr 21, 2020

yes but i have entered the details and sadly
File "beatmapsynth.py", line 4, in
import librosa
ModuleNotFoundError: No module named 'librosa'

@wvsharber
Copy link
Owner

Ok, you ran this command?

conda activate BSMapSynth-env

And if so, is the module librosa listed when you type conda list ?

@ghost
Copy link
Author

ghost commented Apr 21, 2020

Could not find conda environment: BSMapSynth-env
You can list all discoverable environments with conda info --envs.

@ghost
Copy link
Author

ghost commented Apr 21, 2020

krb5 1.17.1 hc04afaa_0
lazy-object-proxy 1.4.3 py37he774522_0
libarchive 3.3.3 h0643e63_5
libcurl 7.68.0 h2a8f88b_0
libiconv 1.15 h1df5818_7
liblief 0.9.0 ha925a31_2
libpng 1.6.37 h2a8f88b_0
libsodium 1.0.16 h9d3ae62_0
libspatialindex 1.9.3 h33f27b4_0
libssh2 1.8.2 h7a1dbc1_0
libtiff 4.1.0 h56a325e_0
libxml2 2.9.9 h464c3ec_0
libxslt 1.1.33 h579f668_0
llvmlite 0.31.0 py37ha925a31_0
locket 0.2.0 py37_1
lxml 4.5.0 py37h1350720_0

@ghost
Copy link
Author

ghost commented Apr 21, 2020

so yes and no

@ghost
Copy link
Author

ghost commented Apr 21, 2020

(base) C:\Users\Jay\Downloads\BeatSaberSythn thing\BeatSaberSythn thing>conda env create -f environment.yml
Collecting package metadata (repodata.json): done
Solving environment: failed

aha

@wvsharber
Copy link
Owner

Hmm, yes that is an issue. Did you get any more information than just failed? Sometimes it will tell you which module didn't work

@ghost
Copy link
Author

ghost commented Apr 21, 2020

little bit
ResolvePackageNotFound:

  • mkl-service==2.3.0=py36hfbe908c_0
  • libiconv==1.15=hdd342a3_7
  • pyzmq==18.1.0=py36h0a44026_0
  • cycler==0.10.0=py36hfc81398_0
  • qt==5.9.7=h468cd18_1
  • kiwisolver==1.1.0=py36h0a44026_0
  • icu==58.2=h4b95b61_1
  • sqlite==3.30.1=ha441bb4_0
  • mkl_fft==1.0.15=py36h5e564d8_0
  • glib==2.63.1=hd977a24_0
  • pyqt==5.9.2=py36h655552a_2
  • zlib==1.2.11=h1de35cc_3
  • jpeg==9b=he5867d9_2
  • scikit-learn==0.22=py36h27c97d8_0
  • numpy==1.17.4=py36h890c691_0
  • expat==2.2.6=h0a44026_0
  • tk==8.6.8=ha441bb4_0
  • zeromq==4.3.1=h0a44026_3
  • gettext==0.19.8.1=h15daf44_3
  • dbus==1.13.12=h90a0687_0
  • libcxx==4.0.1=hcfea43d_1
  • openssl==1.1.1d=h1de35cc_3
  • llvm-openmp==4.0.1=hcfea43d_1
  • numba==0.48.0=py36h6c726b0_0
  • libvpx==1.7.0=h378b8a2_0
  • xz==5.2.4=h1de35cc_4
  • libogg==1.3.2=h1de35cc_0
  • scipy==1.3.2=py36h1410ff5_0
  • libpng==1.6.37=ha441bb4_0
  • pandas==0.25.3=py36h0a44026_0
  • lame==3.100=h1de35cc_0
  • libffi==3.2.1=h475c297_4
  • markupsafe==1.1.1=py36h1de35cc_0
  • freetype==2.9.1=hb4e5f40_0
  • sip==4.19.8=py36h0a44026_0
  • libopus==1.3=h1de35cc_0
  • libcxxabi==4.0.1=hcfea43d_1
  • tbb==2019.8=h04f5b5a_0
  • openh264==1.8.0=hd9629dc_0
  • pyrsistent==0.15.7=py36h1de35cc_0
  • python==3.6.9=h359304d_0
  • bzip2==1.0.8=h1de35cc_0
  • libgfortran==3.0.1=h93005f0_2
  • matplotlib==3.1.1=py36h54f8f79_0
  • pcre==8.43=h0a44026_0
  • mistune==0.8.4=py36h1de35cc_0
  • ptyprocess==0.6.0=py36_0
  • x264==1!152.20180806=h1de35cc_0
  • tornado==6.0.3=py36h1de35cc_0
  • intel-openmp==2019.4=233
  • appnope==0.1.0=py36hf537a9a_0
  • cffi==1.13.2=py36hb5b8e2f_0
  • readline==7.0=h1de35cc_5
  • ffmpeg==4.2=h677a3f5_0
  • libsndfile==1.0.26=0
  • mkl_random==1.1.0=py36ha771720_0
  • libsodium==1.0.16=h3efe00b_0
  • libflac==1.3.1=h0a44026_1002
  • numpy-base==1.17.4=py36h6575580_0
  • llvmlite==0.31.0=py36h1341992_0
  • cryptography==2.8=py36ha12b0ac_0
  • mkl==2019.4=233
  • libedit==3.1.20181209=hb402a30_0
  • ncurses==6.1=h0a44026_1
  • gmp==6.1.2=hb37e062_1

@wvsharber
Copy link
Owner

I think I know what's happening here. Conda is trying to install all of those packages listed above through a conda channel directly, but they probably came from pip. It look like you can solve this by opening the enviroment.yml file (with a text editor like notepad or Visual Studio Code), and then moving all of the packages that were listed under "ResolvePackageNotFound:" to the "-pip:" section.

@ghost
Copy link
Author

ghost commented Apr 21, 2020

doing this might take a while lmao

@wvsharber
Copy link
Owner

I know that's a lot of manual copy and pasting! It looks like I need to figure out the best way to export environment files that work universally! Learning process! If you don't mind going ahead and doing it and seeing if that solves the problem I'd really appreciate it. Just make sure to save the environment file when you're done and then try creating the environment again.

@ghost
Copy link
Author

ghost commented Apr 21, 2020

Yeah im going for it

@ghost
Copy link
Author

ghost commented Apr 21, 2020

i moved them all that needed to be moved and now it says this
(base) C:\Users\Jay\Downloads\BeatSaberSythn thing\BeatSaberSythn thing>conda env create -f environment.yml

CondaValueError: invalid package specification: sqlite==3.30.1=ha441bb4_0 - soundfile==0.10.3.post1 - unidecode==1.1.1 - youtube-dl==2020.1.24

@ghost
Copy link
Author

ghost commented Apr 21, 2020

im gonna sleep but if you figure anything out leave it here and i will check it out by tomorrow

@wvsharber
Copy link
Owner

So it looks like when you move the packages to the pip section, you have to edit them a little. You need to drop the part that comes after the second = and change the first = to ==

For example:
gmp=6.1.2=hb37e062_1 -> gmp==6.1.2

@ghost
Copy link
Author

ghost commented Apr 21, 2020

ok

@ghost
Copy link
Author

ghost commented Apr 21, 2020

they all like this
- altgraph==0.17
- blessings==1.7
- ftransc==7.0.1
- macholib==1.14
- markovify==0.8.0
- mutagen==1.43.0
- pafy==0.5.5
- plumbum==1.6.8
- pydub==0.23.1
- pyinstaller==3.6
- libogg==1.3.2=h1de35cc_0
- numba==0.48.0=py36h6c726b0_0
- libsodium==1.0.16=h3efe00b_0
- mkl==2019.4=233
- pyrsistent==0.15.7=py36h1de35cc_0
- tornado==6.0.3=py36h1de35cc_0
- matplotlib==3.1.1=py36h54f8f79_0
- lame==3.100=h1de35cc_0
- freetype==2.9.1=hb4e5f40_0
- tbb==2019.8=h04f5b5a_0
- openssl==1.1.1d=h1de35cc_3
- pyqt==5.9.2=py36h655552a_2

  • libsndfile==1.0.26=0
  • dbus==1.13.12=h90a0687_0
  • expat==2.2.6=h0a44026_0
  • libvpx==1.7.0=h378b8a2_0
  • sip==4.19.8=py36h0a44026_0
  • ncurses==6.1=h0a44026_1
  • gmp==6.1.2=hb37e062_1
  • cryptography==2.8=py36ha12b0ac_0
  • cycler==0.10.0=py36hfc81398_0
  • mkl_fft==1.0.15=py36h5e564d8_0
  • tk==8.6.8=ha441bb4_0
  • markupsafe==1.1.1=py36h1de35cc_0
  • icu==58.2=h4b95b61_1
  • mistune==0.8.4=py36h1de35cc_0
  • libedit==3.1.20181209=hb402a30_0
  • ffmpeg==4.2=h677a3f5_0
  • zeromq==4.3.1=h0a44026_3
  • qt==5.9.7=h468cd18_1
  • libiconv==1.15=hdd342a3_7
  • numpy==1.17.4=py36h890c691_0
  • appnope==0.1.0=py36hf537a9a_0
  • scikit-learn==0.22=py36h27c97d8_0
  • numpy-base==1.17.4=py36h6575580_0
  • glib==2.63.1=hd977a24_0
  • mkl_random==1.1.0=py36ha771720_0
  • kiwisolver==1.1.0=py36h0a44026_0
  • libcxxabi==4.0.1=hcfea43d_1
  • mkl-service==2.3.0=py36hfbe908c_0
  • zlib==1.2.11=h1de35cc_3
  • libffi==3.2.1=h475c297_4
  • pandas==0.25.3=py36h0a44026_0
  • bzip2==1.0.8=h1de35cc_0
  • pcre==8.43=h0a44026_0
  • x264==1!152.20180806=h1de35cc_0
  • ptyprocess==0.6.0=py36_0
  • libcxx==4.0.1=hcfea43d_1
  • intel-openmp==2019.4=233
  • libgfortran==3.0.1=h93005f0_2
  • python==3.6.9=h359304d_0
  • scipy==1.3.2=py36h1410ff5_0
  • libpng==1.6.37=ha441bb4_0
  • libflac==1.3.1=h0a44026_1002
  • xz==5.2.4=h1de35cc_4
  • llvmlite==0.31.0=py36h1341992_0
  • openh264==1.8.0=hd9629dc_0
  • readline==7.0=h1de35cc_5
  • libopus==1.3=h1de35cc_0
  • pyzmq==18.1.0=py36h0a44026_0
  • llvm-openmp==4.0.1=hcfea43d_1
  • cffi==1.13.2=py36hb5b8e2f_0
  • jpeg==9b=he5867d9_2
  • gettext==0.19.8.1=h15daf44_3
  • sqlite==3.30.1=ha441bb4_0
    • soundfile==0.10.3.post1
    • unidecode==1.1.1
    • youtube-dl==2020.1.24
      but anyway if you need me i will be on tomorrow i am tired af

@wvsharber
Copy link
Owner

Ok, thanks for your efforts. I will try getting this set up on a Windows machine tonight as well. It might be just easier for me to make a new environment file specifically for Windows.

@ghost
Copy link
Author

ghost commented Apr 22, 2020

Thanks I hope this will be possible!

@ghost
Copy link
Author

ghost commented Apr 22, 2020

Got any progress im wondering?

@ghost
Copy link
Author

ghost commented Apr 22, 2020

also do you have discord that could be useful!

@wvsharber
Copy link
Owner

I haven't forgotten about you! I tried replicating the issue last night on a PC, and it's definitely not just a problem with your specific set up. I'm going to try a few things to make the Python environment work across both Mac and Windows, but it might take me a bit to get it working. I'll let you know when I get it working.

@ghost
Copy link
Author

ghost commented Apr 23, 2020

Ok thanks!

@ghost
Copy link
Author

ghost commented Apr 24, 2020

sorry to disturb you but any progress?

@wvsharber
Copy link
Owner

Hi again!

I think I've fixed the issue by creating a separate environment file for Windows. I updated the installation instructions to reflect this.

I suggest that you delete your previous copy of the repo and download the updated version, then follow the instructions I wrote in the README.

Please let me know if this works for you!

@ghost
Copy link
Author

ghost commented Apr 25, 2020

It works!

@ghost ghost closed this as completed Apr 25, 2020
@ghost
Copy link
Author

ghost commented Apr 26, 2020

Just wondering is there a way to add all difficulty? Eg easy,normal,hard,expert,expertplus?

@ghost ghost reopened this Apr 26, 2020
@wvsharber
Copy link
Owner

Hi again! No, unfortunately right now it only does one at a time. It wouldn't be too hard to implement the ability to do multiple levels at once, but I haven't gotten around to it yet.

I think my main reason I haven't coded that yet is that unlike most user-made or officially-released levels, my implementation wouldn't be able to take the mapping from an easy level and make it harder for a normal difficulty (i.e., having a similar block pattern, but adding more blocks and maybe a few new patterns for increasing difficulty levels), instead it would just generate a completely new mapping. Without that relationship between difficulty levels established, I didn't think there was much need for the ability to map multiple difficulty levels at once.

@ghost
Copy link
Author

ghost commented Apr 26, 2020

Ok thanks!

@ghost ghost closed this as completed Apr 26, 2020
@ghost
Copy link
Author

ghost commented Apr 26, 2020

hello again!

so i have been enjoying this it is awesome but sometimes it only adds 1 color and it adds all the blocks so its not possible to complete since its all red and no blue

@wvsharber
Copy link
Owner

Hi!

Have you noticed a pattern in the settings you're using when it produces this result? I've never had that happen to me, but it's possible that the model is replicating patterns it learned from a one-handed mapping that was mislabeled.

Unfortunately, since there is built-in randomness to the mapping algorithms there will always be some "bad mappings" that result in unplayable levels. That's why I usually suggest making several mappings of a song you want and then keeping the best one, or even using it as a starting point for using the manual editors that are out there.

@ghost
Copy link
Author

ghost commented Apr 28, 2020

Everything is perfect it just forgot there are 2 colors and makes it red only

@wvsharber
Copy link
Owner

Very odd. Please let me know what settings you used when you got this result. If it's a coding bug I want to fix it, but if it's a result of bad training data, it might be a while before I can do something address that...

@ghost
Copy link
Author

ghost commented May 16, 2020

So sorry for a massive delay but i had no internet and i couldnt contact you since i moved house! But this issue is still going on sadly :(.

@ghost ghost reopened this May 16, 2020
@wvsharber
Copy link
Owner

Can you send me the zip folder with an example of these maps? Also, if you can send what parameters you used when you created the map that would be great.

You can send it on here, or add me on discord (I finally made one!) - same username as my github account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant