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

TypeError: c_compile_args() takes 1 positional argument but 2 were given #6647

Open
PGTBoos opened this issue Oct 8, 2018 · 2 comments
Open

Comments

@PGTBoos
Copy link

PGTBoos commented Oct 8, 2018

I try to follow a udemy coarse and have Theano installed,
And I'm getting an error in cc.py
I'm using jupyter, and the error is raised in cell 14, notebook is attached in the zip file
Deep Learning Grid Search (Jupyter Notebook).zip

i use iPython:3.5.5 with Numpy:1.15.2 besides theano.
I tried latest git versin of cc.py but without luck.

Here is my error output :

TypeError Traceback (most recent call last)
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\envs\tf\lib\site-packages\theano\gof\cc.py in compile_args(self)
965 try:
--> 966 ret += x.c_compile_args(c_compiler)
967 except TypeError:

TypeError: c_compile_args() takes 1 positional argument but 2 were given

AssertionError Traceback (most recent call last)
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\envs\tf\lib\site-packages\theano\tensor\blas.py in _ldflags(ldflags_str, libs, flags, libs_dir, include_dir)
443 t0, t1, t2 = t[0:3]
--> 444 assert t0 == '-'
445 except Exception:

AssertionError:

During handling of the above exception, another exception occurred:

ValueError Traceback (most recent call last)
in
37 # build and fit the GridSearchCV
38 grid = GridSearchCV(estimator = model, param_grid = param_grid, cv = KFold(random_state=seed), verbose = 10)
---> 39 grid_results = grid.fit(X_standardized, Y)
40
41 # summarize the results

//then some messages without errors and in the end it says
ValueError: ('The following error happened while compiling the node', Dot22(/dense_4_input, dense_4/kernel), '\n', 'invalid token "Files" in ldflags_str: "-L"C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\envs\tf\Library\bin" -lmkl_core -lmkl_intel_thread -lmkl_rt"')

@twiecki
Copy link
Contributor

twiecki commented Oct 10, 2018

Can you add markdown formatting and the full traceback?

@nouiz
Copy link
Member

nouiz commented Oct 10, 2018 via email

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

3 participants