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

NameError: name 'pygments' is not defined #156

Open
olar785 opened this issue Jan 23, 2020 · 0 comments
Open

NameError: name 'pygments' is not defined #156

olar785 opened this issue Jan 23, 2020 · 0 comments

Comments

@olar785
Copy link

olar785 commented Jan 23, 2020

Hi,
Running the elvers test command worked perfectly but when I tried a custom workflow
I received the following error at the end of it, during the report creation.
NameError: name 'pygments' is not defined
I realised that in the init.py file in my miniconda3/envs/elvers-env/python3.6/site-packages/snakemake/report/ there was no import of the pygments module. Adding "import pygments" to the file fixed it but then I also had the following error:
AttributeError: module 'pygments' has no attribute 'utils'
This was fixed by changing, in the same file, pygments.utils.ClassNotFound to pygments.util.ClassNotFound
My whole elvers workflow works fine now but I thought you should know in order to fix the conda elvers package.
Best,
Olivier

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