Pysal: Trouble installation: No module named 'shapes'

Created on 11 Sep 2015  路  11Comments  路  Source: pysal/pysal

Hi,

I'm using Python 3.4 with Windows 8.1. I've installed numpy, scipy. When trying to install pysal by 'python setup.py install' I'm getting the following error: No module named 'shapes'.

Can anybody help me out? I've already searched the web but couln't find anything.

Thank you very much!

Most helpful comment

@gm6 could you try:

pip uninstall pysal
pip install --no-cache-dir pysal

All 11 comments

Unfortunately, PySAL is not available in Python 3.4 at the moment. What you're describing is the error that occurs when PySAL is imported into a Python 3.4 environment.

We hope to release a Python 3 compatible release soon.

One soultion would be to use a python 2.7 environment when you need to use PySAL until the 3-compatible version is out.

Thanks for your quick help!

Expecting

Check out #698 for more discussion of when this patch gets merged. I'm sorry for the wait!

Hi, has this been solved?

Yes, PySAL has been 3 compatible since 1.11 https://github.com/pysal/pysal/releases/tag/v1.11.0

Thanks! Although it(1.12.0py35)'s been successfully installed, when run my script

...
File "/usr/lib/python3.5/site-packages/pysal/__init__.py", line 40, in <module>
    import pysal.cg
  File "/usr/lib/python3.5/site-packages/pysal/cg/__init__.py", line 4, in <module>
    from shapes import *
ImportError: No module named 'shapes'

Don't know why ...

How have you installed PySAL?

@gm6 could you try:

pip uninstall pysal
pip install --no-cache-dir pysal

That error can happen when you install with pip that is from python 2x but then try to import pysal when running python 3x.

Wow, guys, you are my heroes!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

slumnitz picture slumnitz  路  21Comments

sjsrey picture sjsrey  路  13Comments

darribas picture darribas  路  14Comments

rsbivand picture rsbivand  路  8Comments

sjsrey picture sjsrey  路  11Comments