mahart-studio / kivystudio

A Software development environment for software developers
MIT License
189 stars 51 forks source link

Error when starting #31

Open cenmartins opened 4 years ago

cenmartins commented 4 years ago

ValueError: None is not allowed for StudioFileChooserThumbView.path

I use osx catalina, python 3.7 and already ran the setup.py file. Thanks

avour commented 4 years ago

Sorry this is coming really late, Try to uninstall it, then run python main.py directly

On Sun, 1 Mar 2020, 1:06 PM cenmartins <notifications@github.com wrote:

ValueError: None is not allowed for StudioFileChooserThumbView.path

I use osx catalina, python 3.7 and already ran the setup.py file. Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mahart-studio/kivystudio/issues/31?email_source=notifications&email_token=ALCHQG4KWZZKIRVDZJVJZ6LRFJFS3A5CNFSM4K7EHOX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IRPOOUQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALCHQGZTW3PHXKQZP7HBJPDRFJFS3ANCNFSM4K7EHOXQ .

varneyc commented 4 years ago

This issue is also present on OSX Mojave 10.14.6 when main.py is ran in either Python 2.7.17 or 3.7.2. Whether setup.py is run or not does not have an impact. The full output of the program is below.


[INFO   ] [Kivy        ] v1.10.1
[INFO   ] [Python      ] v3.7.2 (v3.7.2:9a3ffc0492, Dec 24 2018, 02:44:43) 
[Clang 6.0 (clang-600.0.57)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_imageio, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
[INFO   ] [GL          ] Backend used <gl>
[INFO   ] [GL          ] OpenGL version <b'2.1 INTEL-12.10.12'>
[INFO   ] [GL          ] OpenGL vendor <b'Intel Inc.'>
[INFO   ] [GL          ] OpenGL renderer <b'Intel(R) HD Graphics 6000'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 1
[INFO   ] [GL          ] Shading version <b'1.20'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [GL          ] NPOT texture support is available
 Traceback (most recent call last):
   File "main.py", line 21, in <module>
     from kivystudio.assembler import Assembler
   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivystudio-0.1.0-py3.7.egg/kivystudio/assembler.py", line 6, in <module>
     from kivystudio.widgets.filemanager import filemanager
   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivystudio-0.1.0-py3.7.egg/kivystudio/widgets/filemanager/__init__.py", line 233, in <module>
     filemanager = FileManager()
   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivystudio-0.1.0-py3.7.egg/kivystudio/widgets/filemanager/__init__.py", line 60, in __init__
     self._file_chooser.path = self.get_defualt_user_dir()
   File "kivy/weakproxy.pyx", line 33, in kivy.weakproxy.WeakProxy.__setattr__
   File "kivy/properties.pyx", line 483, in kivy.properties.Property.__set__
   File "kivy/properties.pyx", line 521, in kivy.properties.Property.set
   File "kivy/properties.pyx", line 512, in kivy.properties.Property.set
   File "kivy/properties.pyx", line 675, in kivy.properties.StringProperty.check
   File "kivy/properties.pyx", line 550, in kivy.properties.Property.check
 ValueError: None is not allowed for StudioFileChooserThumbView.path```
mpasternak commented 1 year ago

Anybody

Zrzut ekranu 2022-11-26 o 10 49 37

⇒  uname -a
Darwin little-beast.home 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct  9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103 arm64

⇒ python --version Python 3.10.8


[ipython]mpasternak@little-beast:~/Programowanie/ipython/kivystudio/kivystudio|master
⇒  python ./main.py
[INFO   ] [Logger      ] Record log in /Users/mpasternak/.kivy/logs/kivy_22-11-26_9.txt
[INFO   ] [Kivy        ] v2.1.0
[INFO   ] [Kivy        ] Installed at "/Users/mpasternak/.virtualenvs/ipython/lib/python3.10/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.10.8 (main, Nov  5 2022, 21:55:12) [Clang 14.0.0 (clang-1400.0.29.202)]
[INFO   ] [Python      ] Interpreter at "/Users/mpasternak/.virtualenvs/ipython/bin/python"
[INFO   ] [Logger      ] Purge log fired. Processing...
[INFO   ] [Logger      ] Purge finished!
[INFO   ] [Factory     ] 189 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_imageio, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: sdl2
2022-11-26 10:49:10.608 Python[82621:1552328] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/bc/4mg8z8bd3fs673mqb5swb8d00000gn/T/org.python.python.savedState
[INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'2.1 Metal - 83'>
[INFO   ] [GL          ] OpenGL vendor <b'Apple'>
[INFO   ] [GL          ] OpenGL renderer <b'Apple M1'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 1
[INFO   ] [GL          ] Shading version <b'1.20'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Text        ] Provider: sdl2
 --- Logging error ---
 Traceback (most recent call last):
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/__init__.py", line 1100, in emit
     msg = self.format(record)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/__init__.py", line 943, in format
     return fmt.format(record)
   File "/Users/mpasternak/.virtualenvs/ipython/lib/python3.10/site-packages/kivy/logger.py", line 291, in format
     record = copy.deepcopy(record)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 172, in deepcopy
     y = _reconstruct(x, memo, *rv)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 271, in _reconstruct
     state = deepcopy(state, memo)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 146, in deepcopy
     y = copier(x, memo)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 231, in _deepcopy_dict
     y[deepcopy(key, memo)] = deepcopy(value, memo)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 172, in deepcopy
     y = _reconstruct(x, memo, *rv)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/copy.py", line 265, in _reconstruct
     y = func(*args)
 TypeError: ParserException.__init__() missing 2 required positional arguments: 'line' and 'message'
 Call stack:
   File "/Users/mpasternak/Programowanie/ipython/kivystudio/kivystudio/./main.py", line 25, in <module>
     from kivystudio.assembler import Assembler
   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
   File "/Users/mpasternak/Programowanie/ipython/kivystudio/kivystudio/../kivystudio/assembler.py", line 6, in <module>
     from kivystudio.widgets.filemanager import filemanager
   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
   File "/Users/mpasternak/Programowanie/ipython/kivystudio/kivystudio/../kivystudio/widgets/filemanager/__init__.py", line 2, in <module>
     from .filechooserthumbview import StudioFileChooserThumbView
   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
   File "/Users/mpasternak/Programowanie/ipython/kivystudio/kivystudio/../kivystudio/widgets/filemanager/filechooserthumbview/__init__.py", line 58, in <module>
     Builder.load_string("""
   File "/Users/mpasternak/.virtualenvs/ipython/lib/python3.10/site-packages/kivy/lang/builder.py", line 372, in load_string
     parser = Parser(content=string, filename=fn)
   File "/Users/mpasternak/.virtualenvs/ipython/lib/python3.10/site-packages/kivy/lang/parser.py", line 483, in __init__
     self.parse(content)
   File "/Users/mpasternak/.virtualenvs/ipython/lib/python3.10/site-packages/kivy/lang/parser.py", line 593, in parse
     objects, remaining_lines = self.parse_level(0, lines)
   File "/Users/mpasternak/.virtualenvs/ipython/lib/python3.10/site-packages/kivy/lang/parser.py", line 675, in parse_level
     current_object = ParserRule(self, ln, name, rlevel)
   File "/Users/mpasternak/.virtualenvs/ipython/lib/python3.10/site-packages/kivy/lang/parser.py", line 335, in __init__
     self._detect_selectors()
   File "/Users/mpasternak/.virtualenvs/ipython/lib/python3.10/site-packages/kivy/lang/parser.py", line 379, in _detect_selectors
     self._build_template()
   File "/Users/mpasternak/.virtualenvs/ipython/lib/python3.10/site-packages/kivy/lang/parser.py", line 439, in _build_template
     Logger.warning(exception)
 Message: ParserException('Parser: File "<inline>", line 26:\n...\n     24:            on_size: Clock.schedule_once(lambda dt: setattr(self, \'grid_len\', int(self.width/(self.children[0].width+10))), 1)\n     25:\n>>   26:[StudioFileThumbEntry@IconWidget_]:\n     27:    image: image\n     28:    locked: False\n...\nDeprecated Kivy lang template syntax used "[StudioFileThumbEntry@IconWidget_]". Templates will be removed in a future version')
 Arguments: ()
[INFO   ] [GL          ] NPOT texture support is available
 Traceback (most recent call last):
   File "/Users/mpasternak/Programowanie/ipython/kivystudio/kivystudio/./main.py", line 25, in <module>
     from kivystudio.assembler import Assembler
   File "/Users/mpasternak/Programowanie/ipython/kivystudio/kivystudio/../kivystudio/assembler.py", line 6, in <module>
     from kivystudio.widgets.filemanager import filemanager
   File "/Users/mpasternak/Programowanie/ipython/kivystudio/kivystudio/../kivystudio/widgets/filemanager/__init__.py", line 233, in <module>
     filemanager = FileManager()
   File "/Users/mpasternak/Programowanie/ipython/kivystudio/kivystudio/../kivystudio/widgets/filemanager/__init__.py", line 60, in __init__
     self._file_chooser.path = self.get_defualt_user_dir()
   File "kivy/weakproxy.pyx", line 35, in kivy.weakproxy.WeakProxy.__setattr__
   File "kivy/properties.pyx", line 520, in kivy.properties.Property.__set__
   File "kivy/properties.pyx", line 564, in kivy.properties.Property.set
   File "kivy/properties.pyx", line 555, in kivy.properties.Property.set
   File "kivy/properties.pyx", line 794, in kivy.properties.StringProperty.check
   File "kivy/properties.pyx", line 593, in kivy.properties.Property.check
 ValueError: None is not allowed for StudioFileChooserThumbView.path
[ipython]mpasternak@little-beast:~/Programowanie/ipython/kivystudio/kivystudio|master