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

ImportError: cannot import name 'DeferredConfigManager' from 'pymlconf' #2

Open
mehrdad-dev opened this issue May 28, 2021 · 4 comments
Assignees
Labels

Comments

@mehrdad-dev
Copy link

Hi
first of all i install libgl1-mesa-dev , portaudio19-dev and cython
and then install tuner with pip
but when I run it with the tuner command in terminal, I got this error:
ImportError: cannot import name 'DeferredConfigManager' from 'pymlconf'

I installed the pymlconf lib after it, but still, I got this error.
Can you help me?

@pylover
Copy link
Owner

pylover commented May 28, 2021

Oh, sorry.

I updated the pymlconf package and forget to update this.

Thanks for the issue, I'll fix it asap.

@pylover pylover added the bug label May 28, 2021
@pylover pylover self-assigned this May 28, 2021
pylover added a commit that referenced this issue May 28, 2021
@pylover
Copy link
Owner

pylover commented May 28, 2021

@mehrdad-dev,

I have already done these steps and unfortunately cannot reproduce the issue:

sudo apt install libgl1-mesa-dev portaudio19-dev libsdl1.2-dev
pip install 'cython <= 0.28.2'
pip install -e .

The tuner was started correctly, but the GUI needs some work.

$ tuner
[WARNING] [Config      ] Older configuration version detected (0 instead of 21)
[WARNING] [Config      ] Upgrading configuration in progress.
[INFO   ] [Logger      ] Record log in /home/vahid/.kivy/logs/kivy_21-05-28_0.txt
[INFO   ] [Kivy        ] v1.11.1
[INFO   ] [Kivy        ] Installed at "/home/vahid/.virtualenvs/tuner/lib/python3.8/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.8.5 (default, Jan 27 2021, 15:41:15) 
[GCC 9.3.0]
[INFO   ] [Python      ] Interpreter at "/home/vahid/.virtualenvs/tuner/bin/python"
[INFO   ] [Factory     ] 184 symbols loaded
pygame 2.0.1 (SDL 2.0.14, Python 3.8.5)
Hello from the pygame community. https://www.pygame.org/contribute.html
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_pygame, img_gif (img_pil, img_ffpyplayer ignored)
[WARNING] Parser: File "/home/vahid/workspace/tuner/tuner/gui/styles/analog_display.kv", line 3:
...
      1:#:import AnalogDisplay tuner.gui.analog_display.AnalogDisplay
      2:
>>    3:[ML@Line]:
      4:    points: ctx.points if hasattr(ctx, 'points') else []
      5:    width: ctx.width if hasattr(ctx,'width') else 2
...
Deprecated Kivy lang template syntax used "[ML@Line]". Templates will be removed in a future version
[WARNING] Parser: File "/home/vahid/workspace/tuner/tuner/gui/styles/analog_display.kv", line 8:
...
      6:    cap: 'none'
      7:
>>    8:[MSL@Line]:
      9:    points: ctx.points if hasattr(ctx, 'points') else []
     10:    width: ctx.width if hasattr(ctx,'width') else 1
...
Deprecated Kivy lang template syntax used "[MSL@Line]". Templates will be removed in a future version
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
[INFO   ] [Window      ] Provider: pygame(['window_egl_rpi'] ignored)
[WARNING] [Deprecated  ] Pygame has been deprecated and will be removed after 1.11.0: Call to deprecated function __init__ in /home/vahid/.virtualenvs/tuner/lib/python3.8/site-packages/kivy/core/window/window_pygame.py line 42.Called from /home/vahid/.virtualenvs/tuner/lib/python3.8/site-packages/kivy/core/__init__.py line 71 by core_select_lib().
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <gl>
[INFO   ] [GL          ] OpenGL version <b'4.6 (Compatibility Profile) Mesa 20.2.6'>
[INFO   ] [GL          ] OpenGL vendor <b'Intel'>
[INFO   ] [GL          ] OpenGL renderer <b'Mesa Intel(R) UHD Graphics 620 (WHL GT2)'>
[INFO   ] [GL          ] OpenGL parsed version: 4, 6
[INFO   ] [GL          ] Shading version <b'4.60'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <32>
[WARNING] [Deprecated  ] Pygame has been deprecated and will be removed after 1.11.0: Call to deprecated function __init__ in /home/vahid/.virtualenvs/tuner/lib/python3.8/site-packages/kivy/core/image/img_pygame.py line 27.Called from /home/vahid/.virtualenvs/tuner/lib/python3.8/site-packages/kivy/core/image/__init__.py line 460 by load().
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Text        ] Provider: pygame(['text_pango'] ignored)
[WARNING] [Deprecated  ] Pygame has been deprecated and will be removed after 1.11.0: Call to deprecated function __init__ in /home/vahid/.virtualenvs/tuner/lib/python3.8/site-packages/kivy/core/text/text_pygame.py line 36.Called from /home/vahid/.virtualenvs/tuner/lib/python3.8/site-packages/kivy/uix/label.py line 349 by _create_label().
[INFO   ] [ProbeSysfs  ] device match: /dev/input/event16
[INFO   ] [MTD         ] Read event from </dev/input/event16>
[INFO   ] [ProbeSysfs  ] device match: /dev/input/event8
[INFO   ] [MTD         ] Read event from </dev/input/event8>
[INFO   ] [Base        ] Start application main loop
[WARNING] [MTD         ] Unable to open device "/dev/input/event16". Please ensure you have the appropriate permissions.
[WARNING] [MTD         ] Unable to open device "/dev/input/event8". Please ensure you have the appropriate permissions.
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [Base        ] Leaving application in progress...

Please try the latest commit on the master branch and inform me if something went wrong.

@mehrdad-dev
Copy link
Author

yes, thank you.
but I think it has some trouble with freq_from_autocorr function.
In fact, I want to create a tuner like this, so can you help me? and guide me in this way.

@pylover
Copy link
Owner

pylover commented May 28, 2021

Interesting.

This project needs some modification across algorithm and GUI. As with the other tuners, the fft function used to detect frequency from the raw audio wave.

Please feel free to send pull requests and asking questions.

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

No branches or pull requests

2 participants