how to install SimPy ?

1 view
Skip to first unread message

jamja...@gmail.com

unread,
Jun 27, 2017, 10:32:17 PM6/27/17
to Anaconda - Public
Hi,
I may be doing this incorrectly, if so please let me know.
I'm trying to install SimPy using Navigator 1.6.2. I click Environments, then to the left of Channels I select ALL, then search for SimPy.  It does not appear. Yet when I look at Anaconda cloud there are several versions available (for win-64).
Am operating on a work PC, have previously been able to install packages. Have not contacted IT support yet as they are telephone only, and python is unsupported, so I need to make sure I have exhausted options before I approach them.
Because of the difficulties here I uninstalled and reinstalled Ananconda, most of what follows was attempted after the reinstall.

Any suggestions ?

I've also tried:
installed Miniconda 3 and tried installing using command line
  conda install -c asmeurer simpy

which at first results in a ProxyError (MaxRetryError ..... Cannot connect to proxy ... tunnel connection failed: 407 Proxy Authentication Required
Then based on this advice I tried:
set NO_PROXY=continuum.io,anaconda.org
after which the proxy problem seems to be bypassed but now I receive an error "CondaHTTPError: HTTP None None for url <https://conda.anaconda.org/asmeurer/win-64/repodata.json> followed by "Max retries exceeded."

Also tried to download and install from the local file:
 conda install --offline C:\simpy-3.0.10.tar.gz
which results in PackageNotFoundError: package missing in current win-64 channels
(also tried C:\simpy-3.0.10.tar)

Also tried pip:
pip install -U simpy
which results in several attempts which all "Failed to establish new connection"

And:
python C:\simpy\setup.py install
starts to install but aborts because it "cannot import name '_remove_dead_weakref' whilst executing weakref.py:
from _weakref import (
     getweakrefcount
,
     getweakrefs
,
     
ref,
     proxy
,
     
CallableProxyType,
     
ProxyType,
     
ReferenceType,
     _remove_dead_weakref
)

the import appears to be from a package "_weakref", which as far as I can tell means it is a C-coded module, 
\Anaconda\Lib\site-packages\jedi\evaluate\compiled\fake\_weakref.pym:
def proxy(object, callback=None):
   
return object

class ref():
   
def __init__(self, object, callback=None):
       
self.__object = object

   
def __call__(self):
       
return self.__object
To me it looks like this is missing a whole bunch of procedures that weakref is trying to call.

Any suggestions how to install simpy from here?  Time to break down and try to explain to corporate IT?

  


cy yan

unread,
Jun 28, 2017, 1:01:31 AM6/28/17
to anac...@continuum.io
Hello, jamjar:

I know conda can install a local package, maybe you can try this way: select a good channel and  download simpy-3.0.10.tar.gz separately using Internet Browser or other Download Tools in Anaconda Cloud. So you have gotten a simpy package, and then you install it using below command.

$ conda install --use-local  /your/package/path/simpy-3.0.10.tar.gz


Best, yancy

--
Anaconda Community Support Group Brought to you by Continuum Analytics
---
You received this message because you are subscribed to the Google Groups "Anaconda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anaconda+unsubscribe@continuum.io.
To post to this group, send email to anac...@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/anaconda/.

jamja...@gmail.com

unread,
Jun 28, 2017, 3:21:53 AM6/28/17
to Anaconda - Public
Thanks for the suggestion Yancy.

I tried it, it does have a differnet outcome than my previous effort to install locally using --offline, bit still results in error, this time:
CondaHTTPError: HTTP None None for url <https://repo.continuum.io/pkgs/free//win-64/repodata.json.bz2>

followed by HTTP error, maxRetryError,and ultimately

Nehal J Wani

unread,
Jun 29, 2017, 2:49:29 AM6/29/17
to anac...@continuum.io, jamja...@gmail.com
If you are behind a corporate proxy, which seems to be evident from '407 Proxy Authentication Required', please configure the proxy settings properly by following the method documented at:

and unset the NO_PROXY variable:

set "NO_PROXY="


Cheers!

Nehal J Wani

Reply all
Reply to author
Forward
0 new messages