Discussion:
[conda] Unable to install simpledbf properly
Kaila Hall
2018-06-26 14:27:17 UTC
Permalink
I'm very new to Python coding and I'm using Spyder to test some script to
install and import packages that will eventually be used in a different
program. I'm having trouble getting simpledbf to install properly. From
looking at the guidance on the simpledbf page
(https://anaconda.org/rnelsonchem/simpledbf) I have specified the channel
as directed.

My code is as follows -

try:
import simpledbf
print 'simpledbf imported from existing install'
except ImportError, e:
conda.cli.main('conda', 'install', '-c', 'rnelsonchem', 'simpledbf') #
module doesn't exist, install it.
print 'simpledbf installed'
import simpledbf
print 'simpledbf imported'

which results in error -
UnsatisfiableError: The following specifications were found to be in
conflict:
- simpledbf
- urllib3
Use "conda info <package>" to see the dependencies for each package.

simpledbf installed
...
ImportError: No module named simpledbf

Which suggests that the package has not been installed correctly


I have also tried the same package but from a different channel
(https://anaconda.org/mikesilva/simpledbf) don't really understand if they
are different or not

try:
import simpledbf
print 'simpledbf imported from existing install'
except ImportError, e:
conda.cli.main('conda', 'install', '-c', 'mikesilva', 'simpledbf') #
module doesn't exist, install it.
print 'simpledbf installed'
import simpledbf
print 'simpledbf imported'

but that gives this error -
UnsatisfiableError: The following specifications were found to be in
conflict:
- futures
- simpledbf
Use "conda info <package>" to see the dependencies for each package.

simpledbf installed
...
ImportError: No module named simpledbf

Again suggesting that the package has not been installed correctly.

Any suggestions on what I'm doing wrong or how to correct the issue would
be gratefully received
Thanks
Kaila
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/d54d9b20-e970-4991-9887-b00647b271df%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Linwood Creekmore
2018-06-26 15:28:55 UTC
Permalink
Kalia, try to pip install simokedbf in your conda environment.
Post by Kaila Hall
I'm very new to Python coding and I'm using Spyder to test some script to
install and import packages that will eventually be used in a different
program. I'm having trouble getting simpledbf to install properly. From
looking at the guidance on the simpledbf page (
https://anaconda.org/rnelsonchem/simpledbf) I have specified the channel
as directed.
My code is as follows -
import simpledbf
print 'simpledbf imported from existing install'
conda.cli.main('conda', 'install', '-c', 'rnelsonchem', 'simpledbf') #
module doesn't exist, install it.
print 'simpledbf installed'
import simpledbf
print 'simpledbf imported'
which results in error -
UnsatisfiableError: The following specifications were found to be in
- simpledbf
- urllib3
Use "conda info <package>" to see the dependencies for each package.
simpledbf installed
...
ImportError: No module named simpledbf
Which suggests that the package has not been installed correctly
I have also tried the same package but from a different channel (
https://anaconda.org/mikesilva/simpledbf) don't really understand if they
are different or not
import simpledbf
print 'simpledbf imported from existing install'
conda.cli.main('conda', 'install', '-c', 'mikesilva', 'simpledbf') #
module doesn't exist, install it.
print 'simpledbf installed'
import simpledbf
print 'simpledbf imported'
but that gives this error -
UnsatisfiableError: The following specifications were found to be in
- futures
- simpledbf
Use "conda info <package>" to see the dependencies for each package.
simpledbf installed
...
ImportError: No module named simpledbf
Again suggesting that the package has not been installed correctly.
Any suggestions on what I'm doing wrong or how to correct the issue would
be gratefully received
Thanks
Kaila
--
You received this message because you are subscribed to the Google Groups
"conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/conda/d54d9b20-e970-4991-9887-b00647b271df%40continuum.io
<https://groups.google.com/a/continuum.io/d/msgid/conda/d54d9b20-e970-4991-9887-b00647b271df%40continuum.io?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CAHOa9jAEy12Sb0QvRCS0chS%2B0w2oAFLpELuov5W7TJY3PWNo-A%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Linwood Creekmore
2018-06-27 11:55:50 UTC
Permalink
Kalia:

My earlier response wasn't clear enough and had some typos. Moreover, I'm
going to go step by step and assume you're very new to command line,
managing conda environments, etc. Forgive me if this is too easy to follow
and overly instructive. I'll also include screenshots. First, let's think
about your problem; there could be several issues, but here are at least
two:


1. You may have launched spyder from a conda environment that does not
have spyder installed; you can have multiple conda environments on your
system; You can check this by running *conda list* from the command line
and looking to see if spyder is listed.
2. Your spyder Python interpeter is not set to the conda environment;
this could stem from you installing spyder separate from the conda install.
To check this, when you are inside the spyder IDE, run *import sys;
print(sys.path). *You should see a path to your conda folder in there
and if not, you're using a different spyder.

There's no way for me to know the exact way, but I can at least show you
how I got simpledbf installed and running in my conda environment which has
spyder.
Here are the steps I ran from the command line; I'm assuming you are in
the base conda environment. If not, run this command:


#windows users do this
deactivate

#linux or macos users do this if you're on windows this will error out
source deactivate


That gets you to your base environment. Now, we need to install *simpldbf * in
our conda; the pypi page gives two options, but we'll just use the *pip* version
to make the point. I'm assuming conda is already installed and active on
your system; those commands above would have returned errors otherwise.
Let's install now following the pip instructions on the pypi simpledbf page
<https://pypi.org/project/simpledbf/>:

pip install simpledbf

That should have worked with no errors. Moreover, the library should have
installed to your conda environment. Since conda comes with *sypder*, you
can launch spyder with a simple command

spyder


Then, you can test to see if *simpledbf *is installed; Look at the
"simpledbf_using.png" attachment screenshot of me using *simpledbf *in the
spyder IDE after doing all the steps above. that shows that I actually got
it working.

Let me know if that helps you Kalia.
Post by Kaila Hall
I'm very new to Python coding and I'm using Spyder to test some script to
install and import packages that will eventually be used in a different
program. I'm having trouble getting simpledbf to install properly. From
looking at the guidance on the simpledbf page (
https://anaconda.org/rnelsonchem/simpledbf) I have specified the channel
as directed.
My code is as follows -
import simpledbf
print 'simpledbf imported from existing install'
conda.cli.main('conda', 'install', '-c', 'rnelsonchem', 'simpledbf') #
module doesn't exist, install it.
print 'simpledbf installed'
import simpledbf
print 'simpledbf imported'
which results in error -
UnsatisfiableError: The following specifications were found to be in
- simpledbf
- urllib3
Use "conda info <package>" to see the dependencies for each package.
simpledbf installed
...
ImportError: No module named simpledbf
Which suggests that the package has not been installed correctly
I have also tried the same package but from a different channel (
https://anaconda.org/mikesilva/simpledbf) don't really understand if they
are different or not
import simpledbf
print 'simpledbf imported from existing install'
conda.cli.main('conda', 'install', '-c', 'mikesilva', 'simpledbf') #
module doesn't exist, install it.
print 'simpledbf installed'
import simpledbf
print 'simpledbf imported'
but that gives this error -
UnsatisfiableError: The following specifications were found to be in
- futures
- simpledbf
Use "conda info <package>" to see the dependencies for each package.
simpledbf installed
...
ImportError: No module named simpledbf
Again suggesting that the package has not been installed correctly.
Any suggestions on what I'm doing wrong or how to correct the issue would
be gratefully received
Thanks
Kaila
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/cf452844-dddd-4e1e-b545-6a4908cce799%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...