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

Activation doesn't set environment variables correctly #215

Open
demining opened this issue Sep 17, 2021 · 0 comments
Open

Activation doesn't set environment variables correctly #215

demining opened this issue Sep 17, 2021 · 0 comments

Comments

@demining
Copy link

I previously raised the issue that I can not install and activate fpylll on Ubuntu 18.04.5 LTS (bionic)
#214

I was unable to activate
When I run my script, I get the error:

python3 script.py
Traceback (most recent call last):
  File "script.py", line 35, in <module>
    from fpylll import LLL, BKZ, IntegerMatrix
ImportError: cannot import name 'LLL' from 'fpylll' (unknown location)
I raised the question earlier on askubuntu

https://askubuntu.com/questions/1363992/bin-sh-1-source-not-found/1363998?noredirect=1#comment2340523_1363998

I was answered by jpbrain

Activate only sets enviroment variables to point to the Libs and bootstrap.sh is a shell script. Take a look at https://github.com/fplll/fpylll/blob/master/bootstrap.sh onlines 33-39 and 50-55.Those lines set enviroment variables. -
So you need to set your enviroment correctly to be able to run it. what do you get with "env" and "env python"

What should I change in bootstrap.sh to set up the environment correctly?

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