This message was deleted.
# ask-anything
s
This message was deleted.
i
Can you try installing this required mistune version? I just tried in conda and it works fine which leads me to think maybe the env has some extra dependencies. Also what's the error it gives on scaffolding?
h
Copy code
AttributeError: module 'mistune' has no attribute 'BlockGrammar'
I guess it is due to the version mismatch
Ok, then I try conda. Do you happen to have a list of specific versions I should use for all the dependencies?
i
Care to open an issue? For conda just follow this it should set you up: https://docs.ploomber.io/en/latest/get-started/quick-start.html#conda
@Hassan Gamaleldin I assume it worked out? πŸ™‚
h
I haven't tried it yet. Because I am still checking how that will affect my development environment. So, my plan is to use PyCharm as the IDE, and I am imagining that I would need to include ploomber and all its dependencies in the dev requirements file (please correct me here if I am mistaken). Since I would want to run all the ploomber commands from within PyCharm. And so far, I only setup virtualenv projects on PyCharm. So, I am investigating how it would be if I use Conda with PyCharm
πŸ‘ 1
If I don't get any further, I will create an issue
Thank you for your help so far πŸ™‚
πŸ™Œ 1
i
Awesome! So for PyCharm we have this Doc : https://docs.ploomber.io/en/latest/user-guide/editors.html Also, I'm working with PyCharm, for the conda env you just need to reference it as the interpretor path and it will add it. And for the requirements, yes you're right a reqs.txt is recommended 😊
e
I've encounter this issue when using old versions of pip, the resolver sometimes fails to install the right versions. Can you try from a clean virtual env, upgrade pip then install Ploomber?
Alternatively, you may want to force downgrade of mistune: pip install β€œmistune<2”
h
Yeah, that is what I did and it worked!
So, I decided to stay with venv, since I am more used to sharing venv settings with other team members through git.
e
cool! glad it worked! don't hesitate to send any other questions!
h
I also did some modifications to the requirements files (don't know if they will break later or not since my pipeline is still empty but I will fix any issues when they come up). I rearranged the requirements to be as follows: requirements/base.txt requirements/local.txt requirements/production.txt
in my base.txt, I have:
Copy code
ploomber
pandas
scikit-learn
in my local.txt, I have:
Copy code
-r base.txt

pytest
jupyter
jupyterlab
and in my production.txt, I only have:
Copy code
-r base.txt
since it is still empty
The reason I am doing this is so that using PyCharm, I can make use of the "PackageRequirementsSettings" setting, and make sure all projects across all team members that use PyCharm, will automatically install the local.txt requirements
Because I noticed that the default behavior for PyCharm is to use the requirements.txt file for the packages (which you have intended for production)
this is inspired by cookiecutter django
e
yep, that looks good. I do something similar, especially bc once you add a lot of dependencies in a single env, you may run into dependency issues πŸ™‚
h
Yeah, exactly!
Well, I am glad the pipeline is set up!
I want to thank you guys very much for your support!
πŸ™Œ 1
e
sure! always happy to help!
πŸ™‚ 1