Python Forum
Procedure Entry Point could not be located
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Procedure Entry Point could not be located
#1
Hi, I am using Spyder through the Anaconda installation on Windows 10.

Every time I open up Spyder I will get an error message saying:

[Image: qfpnAoK]

I click ok and I can still run my code, which is:

# -*- coding: utf-8 -*-
"""
Created on Tue Mar  6 18:11:38 2018

@author: Zac
"""

#%% DEFINES BLOCKS OF CODE
import numpy as np # math library
import scipy # scientific library
import pylab as pl # plotting library
#%% this will output some wisdom
print('Python and Calcium Imaging, a marriage made in heaven')
#%% this creates a random vector
a = np.random.random([10,10])
print(a)
#%% this will plot something
pl.imshow(a)
The problem is I cannot get a plot to work. Whether I use the above code or something else such as:

# -*- coding: utf-8 -*-
"""
Created on Wed Feb 21 19:26:46 2018

@author: Zac
"""

import numpy as np
from sklearn.datasets import load_iris
from sklearn import tree



# 1. Import Dataset
iris = load_iris()
#print(iris.feature_names)
#print(iris.target_names)
#print(iris.data[0])
#print(iris.target[51])
#for i in range(len(iris.target)):
#    print("Example %d: Label %s, Features %s" % (i, iris.target[i], iris.data[i]))

# 2. Train a Classifier
# 2.1 Testing Data = examples used to test the classifier's accuracy, not part of the training data
    # remove 3 entries from the data and target variables of the original dataset, to use as testing data
test_idx = [0, 50, 100]

# training data:
train_target = np.delete(iris.target, test_idx)
train_data = np.delete(iris.data, test_idx, axis=0)

#testing data
test_target = iris.target[test_idx]
test_data = iris.data[test_idx]

clf = tree.DecisionTreeClassifier()
clf.fit(train_data, train_target)

#3. predict label for new flower
print(test_target)
print(clf.predict(test_data))

#4 visualise the tree
import graphviz 
dot_data = tree.export_graphviz(clf, out_file=None) 
graph = graphviz.Source(dot_data) 
graph.render("iris") 

dot_data = tree.export_graphviz(clf, out_file=None, 
                         feature_names=iris.feature_names,  
                         class_names=iris.target_names,  
                         filled=True, rounded=True,  
                         special_characters=True)  
graph = graphviz.Source(dot_data)  
graph 
It will run everything until it reaches the plot code and will not plot anything.

Any help with this is really appreciated. I am in dire need to fix this issue for getting started with Python for University and at the moment am behind due to these issues.

Cheers,
Reply
#2
Quote:error message saying:
image
that doesn't sound verbatim!
what's the entire unaltered error message?
Reply
#3
(Mar-17-2018, 07:10 AM)Larz60+ Wrote:
Quote:error message saying:
image
that doesn't sound verbatim!
what's the entire unaltered error message?

If you double click the image url you will see the error message.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Library resources and ML procedure nsadams87xx 3 1,848 Mar-03-2020, 08:02 PM
Last Post: nsadams87xx
  Weighting The Python KMeans Procedure zsfeinstein 0 1,937 Apr-29-2019, 10:07 PM
Last Post: zsfeinstein
  why I can't install numpy with this procedure atlass218 4 12,539 Sep-20-2018, 07:18 AM
Last Post: atlass218
  ImportError: DLL load failed: The specified procedure could not be found. chess 1 4,161 Sep-17-2017, 10:12 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020