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

Setup Failing #50

Closed
ChiliPaneer opened this issue Apr 17, 2023 · 3 comments
Closed

Setup Failing #50

ChiliPaneer opened this issue Apr 17, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@ChiliPaneer
Copy link

Version: 0.1.2
Device: Macbook Air M1
MacOS Version: 12.0.1
Python version: 3.11.1

When following the instructions:
pip install spotify_to_ytmusic

It installs successfully:
Successfully installed spotify_to_ytmusic-0.1.2 spotipy-2.23.0 ytmusicapi-1.0.0

Then when I run
spotify_to_ytmusic setup
I get to the menu:

Choose which API to set up
(1) Spotify
(2) YouTube
(3) both

And regardless of the option I select I get the following error:

Traceback (most recent call last):
  File "/Users/username/.pyenv/versions/3.11.1/bin/spotify_to_ytmusic", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/username/.pyenv/versions/3.11.1/lib/python3.11/site-packages/spotify_to_ytmusic/main.py", line 79, in main
    args.func(args)
  File "/Users/username/.pyenv/versions/3.11.1/lib/python3.11/site-packages/spotify_to_ytmusic/controllers.py", line 80, in setup
    setup_func(args.file)
  File "/Users/username/.pyenv/versions/3.11.1/lib/python3.11/site-packages/spotify_to_ytmusic/setup.py", line 27, in setup
    setup_spotify()
  File "/Users/username/.pyenv/versions/3.11.1/lib/python3.11/site-packages/spotify_to_ytmusic/setup.py", line 38, in setup_spotify
    settings = Settings()
               ^^^^^^^^^^
  File "/Users/username/.pyenv/versions/3.11.1/lib/python3.11/site-packages/spotify_to_ytmusic/settings.py", line 15, in __init__
    raise FileNotFoundError(
FileNotFoundError: No settings.ini not found! Please run 

 spotify_to_ytmusic setup

This seems circular. Maybe I'm doing something wrong, but it seems like the setup is dependent on Settings(), which is dependent on a settings.ini

@kszkristof
Copy link

Same here, Windows 11 (build 22621.1555) with Python 3.11.3 and pip 22.3.1

@LafQuentin
Copy link

LafQuentin commented Apr 17, 2023

If you create the settings.ini file in the folder where you run the script, it fixes the problem, the ini file should look like this:

[youtube]
headers = headers_json_from_browser
user_id =

[spotify]
client_id = id_from_developer_console
client_secret = secret_from_developer_console

@sigma67 sigma67 added the bug Something isn't working label Apr 18, 2023
@sigma67
Copy link
Owner

sigma67 commented Apr 18, 2023

Yeah that should not happen. I'll have a look.

sigma67 added a commit that referenced this issue Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants