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

Automatic installation of screenplain fails with NameError: name 'subprocess' is not defined #24

Closed
vilcans opened this issue Jan 13, 2021 · 1 comment

Comments

@vilcans
Copy link

vilcans commented Jan 13, 2021

When tried to install the add-on in Blender 2.91 in Windows, I got this error when trying to enable it. It seems like there is an automatic install that fails because subprocess isn't imported.

  File "C:\Users\vilcans\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Blender_Screenwriter-master\__init__.py", line 45, in <module>
    import screenplain.parsers.fountain as fountain
ModuleNotFoundError: No module named 'screenplain'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\modules\addon_utils.py", line 351, in enable
    mod = __import__(module_name)
  File "C:\Users\vilcans\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Blender_Screenwriter-master\__init__.py", line 48, in <module>
    subprocess.check_call([pybin, '-m', 'pip', 'install', 'screenplain[PDF]'])
NameError: name 'subprocess' is not defined

As a workaround, I could install screenplain manually from the command line, and then I could enable the add-on.

@tin2tin
Copy link
Owner

tin2tin commented Jan 13, 2021

Thanks. The import of that module was missing. Should be fixed now.

@tin2tin tin2tin closed this as completed Jan 14, 2021
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

2 participants