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

cannot run example scripts using BO code in python2.7, 3.4 and 3.5 #256

Closed
adhaka opened this issue Mar 4, 2018 · 3 comments
Closed

cannot run example scripts using BO code in python2.7, 3.4 and 3.5 #256

adhaka opened this issue Mar 4, 2018 · 3 comments

Comments

@adhaka
Copy link

adhaka commented Mar 4, 2018

Summary:

When I tried to run the example scripts in the examples folder:

python bdm.py

I get this error:

File "/home/akash/anaconda2/envs/py34/lib/python3.4/site-packages/elfi/methods/bo/utils.py", line 76
start_points[:, i] = random_state.uniform(*bounds[i], n_start_points)
^
SyntaxError: only named arguments may follow *expression

I got this error both in 2.7 and 3.4. After this I tried to create a new environment and installed 3.5 virtually on anaconda, and tried to run it again, and this time I got this:
File "/home/akash/SheffieldML/GPy/core/parameterization/init.py", line 9, in
from paramz import ties_and_remappings, ObsAr
ImportError: cannot import name 'ties_and_remappings'

This is a GPy Error, because one of the dependency pacjkages: paramz is still uncompatible for python 3.5. Can you suggest something here which I should do with the installations to make it finally working.

Current Output:

The example scripts did not run and throw syntax errors.

Expected Output:

The example scripts did not run.

ELFI Version:

Python Version:2.7, 3.4, 3.5

Operating System: Linux

@vuolleko
Copy link
Member

vuolleko commented Mar 5, 2018

Hi,

ELFI requires Python 3.5 or greater, so your first 2 attempts were doomed because of that. :)

For the third one, did you follow the installation instructions? Which versions of GPy and Paramz did you install? At least more recent versions of Paramz work fine with Python 3.5+.

@adhaka
Copy link
Author

adhaka commented Mar 5, 2018

Yeah, ok I actually just used the pip version of paramz and GPy with 3.5, I will try to install them by specifying the version this time.

@adhaka
Copy link
Author

adhaka commented Mar 6, 2018

I finally installed it properly, I had some older version of GPy- 1.5 in the source directory which was throwing up errors, updating it to the latest version made everything fine.

@adhaka adhaka closed this as completed Mar 6, 2018
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