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

First time testing out justuse installed via Pypi. "No module named 'tomli'. #489

Open
ItsCubeTime opened this issue Dec 27, 2022 · 0 comments

Comments

@ItsCubeTime
Copy link

ItsCubeTime commented Dec 27, 2022

PS F:\Olliver\Art and development\Blender Shared Addons and Scripts\addons\fast_pbr_viewport_render> pip install justuse
Collecting justuse
  Using cached justuse-0.8.1.1-py3-none-any.whl
Requirement already satisfied: wheel in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from justuse) (0.37.1)
Requirement already satisfied: beartype>=0.8.1 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from justuse) (0.10.4)
Requirement already satisfied: pydantic>=1.8.2 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from justuse) (1.10.2)
Requirement already satisfied: furl>=2.1.2 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from justuse) (2.1.3)
Requirement already satisfied: icontract>=2.5.4 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from justuse) (2.6.2)
Requirement already satisfied: pip in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from justuse) (22.3.1)
Requirement already satisfied: packaging==21.0 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from justuse) (21.0)
Requirement already satisfied: requests in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from justuse) (2.28.1)
Requirement already satisfied: jinja2 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from justuse) (3.1.2)
Requirement already satisfied: pyparsing>=2.0.2 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from packaging==21.0->justuse) (3.0.8)
Requirement already satisfied: six>=1.8.0 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from furl>=2.1.2->justuse) (1.16.0)
Requirement already satisfied: orderedmultidict>=1.0.1 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from furl>=2.1.2->justuse) (1.0.1)
Requirement already satisfied: typing-extensions in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from icontract>=2.5.4->justuse) (4.4.0)
Requirement already satisfied: asttokens<3,>=2 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from icontract>=2.5.4->justuse) (2.0.5)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from jinja2->justuse) (2.1.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from requests->justuse) (1.26.8)
Requirement already satisfied: charset-normalizer<3,>=2 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from requests->justuse) (2.0.12)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from requests->justuse) (2021.10.8)
Requirement already satisfied: idna<4,>=2.5 in c:\users\olliv\appdata\local\programs\python\python310\lib\site-packages (from requests->justuse) (3.3)
Installing collected packages: justuse
Successfully installed justuse-0.8.1.1
PS F:\Olliver\Art and development\Blender Shared Addons and Scripts\addons\fast_pbr_viewport_render> python -u "c:\Users\olliv\Desktop\test38.py"
Traceback (most recent call last):
  File "c:\Users\olliv\Desktop\test38.py", line 1, in <module>
    import use
  File "C:\Users\olliv\AppData\Local\Programs\Python\Python310\lib\site-packages\use\__init__.py", line 35, in <module>
    import tomli as toml
ModuleNotFoundError: No module named 'tomli'
PS F:\Olliver\Art and development\Blender Shared Addons and Scripts\addons\fast_pbr_viewport_render> python --version
Python 3.10.2
PS F:\Olliver\Art and development\Blender Shared Addons and Scripts\addons\fast_pbr_viewport_render>

Had a naive go at simply running "pip install tomli", but then it would proceed to give me the following stack trace instead upon testing my simple hello world app:

PS F:\Olliver\Art and development\Blender Shared Addons and Scripts\addons\fast_pbr_viewport_render> pip install tomli
Collecting tomli
  Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Installing collected packages: tomli
Successfully installed tomli-2.0.1
PS F:\Olliver\Art and development\Blender Shared Addons and Scripts\addons\fast_pbr_viewport_render> 
PS F:\Olliver\Art and development\Blender Shared Addons and Scripts\addons\fast_pbr_viewport_render> python -u "c:\Users\olliv\Desktop\test38.py"
INFO: use.main: case = (False, False, True, False)
Traceback (most recent call last):
  File "c:\Users\olliv\Desktop\test38.py", line 3, in <module>
    math = use("math")
  File "C:\Users\olliv\AppData\Local\Programs\Python\Python310\lib\site-packages\use\main.py", line 136, in __call__
    return self.__implementation(*args, **kwargs)
  File "C:\Users\olliv\AppData\Local\Programs\Python\Python310\lib\site-packages\use\tools.py", line 72, in wrapper
    return dispatcher.dispatch(args[1].__class__)(*args, **kwargs)
  File "C:\Users\olliv\AppData\Local\Programs\Python\Python310\lib\site-packages\use\main.py", line 670, in _use_str
    return self._use_package(
  File "<@beartype(use.main.Use._use_package) at 0x2b7823ca320>", line 123, in _use_package
  File "C:\Users\olliv\AppData\Local\Programs\Python\Python310\lib\site-packages\icontract\_checkers.py", line 641, in wrapper
    result = func(*args, **kwargs)
  File "C:\Users\olliv\AppData\Local\Programs\Python\Python310\lib\site-packages\use\main.py", line 742, in _use_package
    "sys_version": Version(".".join(map(str, sys.version_info[:3]))),
  File "C:\Users\olliv\AppData\Local\Programs\Python\Python310\lib\site-packages\use\pydantics.py", line 66, in __init__
    super(Version, self).__init__(versionobj)
  File "C:\Users\olliv\AppData\Local\Programs\Python\Python310\lib\site-packages\packaging\version.py", line 272, in __init__
    pre=_parse_letter_version(match.group("pre_l"), match.group("pre_n")),
  File "<@beartype(packaging.version._parse_letter_version) at 0x2b7fee99a20>", line 24, in _parse_letter_version
  File "C:\Users\olliv\AppData\Local\Programs\Python\Python310\lib\site-packages\beartype\_decor\_error\errormain.py", line 301, in raise_pep_call_exception
    raise exception_cls(  # type: ignore[misc]
beartype.roar.BeartypeCallHintParamViolation: @beartyped _parse_letter_version() parameter letter="None" violates type hint <class 'str'>, as "None" not instance of str.
INFO: use.main: ### SESSION END 2022/12/27 03:07:39 66ac7972-c998-4e3b-a373-e264188e57fe ###
PS F:\Olliver\Art and development\Blender Shared Addons and Scripts\addons\fast_pbr_viewport_render> 

My test app:

import use

math = use("math")

Systeminfo:
https://pastebin.com/hGRDQ018

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