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

Can't install on w10 with the WSR bat file. output says it cant install wheels for regex and wxpthon #948

Open
josegarciacarreno opened this issue Sep 24, 2024 · 5 comments
Assignees
Labels
Bug Unexpected behavior from existing features.

Comments

@josegarciacarreno
Copy link

Then follows a long explanation about how "license-file" will fail ln dist.py, although I can find no ocurrence of this. Moreover, there is a dead-link supposed to give further details.
I have the python312\python.exe system path , don't know what else to do.
System:

  • OS: [windows 10]
  • installation procedure.
@josegarciacarreno josegarciacarreno added the Bug Unexpected behavior from existing features. label Sep 24, 2024
@josegarciacarreno
Copy link
Author

EDIT: instead of build I imported manually the required modules. Then everything is OK except for a function that reloads modules:
ERROR:module:CommandModule('_caster.py'): Error loading module: No module named 'imp'
Traceback (most recent call last):
File "C:\Users\Usuario\Caster\castervoice\lib\ctrl\mgr\loading\load\reload_fn_provider.py", line 8, in get_reload_fn
reload
UnboundLocalError: cannot access local variable 'reload' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Python312\Lib\site-packages\dragonfly\loader.py", line 65, in load
exec(compile(contents, self._path, 'exec'), namespace)
File "C:\Users\Usuario\Caster_caster.py", line 38, in
_content_loader = ContentLoader(_crg, importlib.import_module, _rp.get_reload_fn(), _sma)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Usuario\Caster\castervoice\lib\ctrl\mgr\loading\load\reload_fn_provider.py", line 11, in get_reload_fn
from imp import reload
ModuleNotFoundError: No module named 'imp'

@LexiconCode
Copy link
Member

LexiconCode commented Sep 26, 2024

Sorry for your troubles, try utilizing DropPy2. https://github.com/dictation-toolbox/Caster/tree/DropPy2 and Python 3.10

@josegarciacarreno
Copy link
Author

But after setting manually the requirements it seems now only a matter of fixing that function that reloads, or its not? My python is not really pro level...

@LexiconCode
Copy link
Member

LexiconCode commented Sep 27, 2024

A reasonable question. The reason 'imp' module can be found is because it's no longer included in the standard library and newer versions of Python.

That function has been Deprecated since version Python 3.4: The imp module is deprecated in favor of importlib. Which has been fixed in DropPy2. If you're feeling adventurous you could edit the file to reflect the new imports.

@LexiconCode
Copy link
Member

I'm updating the master branch including the changes from DropPy2 which will soon be deleted.

@LexiconCode LexiconCode self-assigned this Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Unexpected behavior from existing features.
Projects
None yet
Development

No branches or pull requests

2 participants