This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
Load Jinja2 during kytos setup #370
Comments
diraol
pushed a commit
to diraol/kytos
that referenced
this issue
Apr 24, 2017
This is a workaround for kytos#357 and also for pypa/setuptools#456 We do still need to solve kytos#370 (jinja2 loading during setup)
diraol
pushed a commit
to diraol/kytos
that referenced
this issue
Apr 24, 2017
This is a workaround for kytos#357 and also for pypa/setuptools#456 We do still need to solve kytos#370 (jinja2 loading during setup) FIX kytos#357
diraol
pushed a commit
to diraol/kytos
that referenced
this issue
Apr 24, 2017
diraol
pushed a commit
to diraol/kytos
that referenced
this issue
Apr 24, 2017
@diraol try... except... import on proper place will not work ? Besides that.. We have to figure out what is the best way to get values from "user/config file" during setup procedure. |
@beraldoleal we can use a try/except over there, no problem. But if the Regarding the "user/config file", I didn't understood what value should we get from user/config file that would alter anything related to this issue.... |
@diraol exact.
Makes sense ? |
Yeap, no problems with that. =) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
After solving #357 we still have an error during our setup.
Jinja2
is a requirement of our project (it is in requirements.txt), and is correctly installed by thesetup
procedure (python setup.yp install
).But as it is also used/loaded on the setup script, we are facing a
timing
problem.The available (installed) modules from
PYTHONPATH
are loaded on the beginning of thesetup.py
script. During this script, all requirements are installed, including theJinja2
package. But the available modules (sys.path
) are not reloaded, thusJinja2
is not available to be used inside thesetup.py
script, which raises an error during the install procedure.If the setup is run again, everything works fine (since
Jinja2
was installed on the first run).So, we need to figure out how to load (import)
jinja2
on thesetup.py
script "on the runtime".The text was updated successfully, but these errors were encountered: