Code Monkey home page Code Monkey logo

Comments (6)

weikang9009 avatar weikang9009 commented on September 26, 2024

I think what you are looking for is the development version of libpysal instead of pysal. If that is the case, you need to fork and clone pysal/libpysal. Once you have done that, you need to change the python path pointing to the directory of your local libpysal. After doing that, you should be able to import the dev version of libpysal which has included the bug fix in lag_categorical.

from giddy.

tra6sdc avatar tra6sdc commented on September 26, 2024

Thanks, but I still get the same error message. The CHANGELOG.TXT file starts with the text

"v<1.13.0>, 2016-11-24

We closed a total of 38 issues, 7 pull requests and 31 regular issues;
this is the full list (generated with the script
:file:tools/github_stats.py):"

Is this the correct version of libpysal? I am only able to access the master Branch in github. Please, where to find the development version and check it is the right one to use. I realise this is more generic help than an actual package issue. Sorry.

print (sys.path)
['', 'C:\ProgramData\Anaconda3\python36.zip', 'C:\ProgramData\Anaconda3\DLLs', 'C:\ProgramData\Anaconda3\lib', 'C:\ProgramData\Anaconda3', 'C:\ProgramData\Anaconda3\lib\site-packages', 'C:\ProgramData\Anaconda3\lib\site-packages\Babel-2.5.0-py3.6.egg', 'C:\ProgramData\Anaconda3\lib\site-packages\giddy-1.0.2-py3.6.egg', 'C:\ProgramData\Anaconda3\lib\site-packages\esda-1.0.1.dev0-py3.6.egg', 'C:\ProgramData\Anaconda3\lib\site-packages\mapclassify-1.0.1-py3.6.egg', 'C:\ProgramData\Anaconda3\lib\site-packages\win32', 'C:\ProgramData\Anaconda3\lib\site-packages\win32\lib', 'C:\ProgramData\Anaconda3\lib\site-packages\Pythonwin', 'C:\ProgramData\Anaconda3\lib\site-packages\IPython\extensions', 'C:\Users\steph_000\.ipython']

sys.path.append('D:/SDC/TOAC/libpysal-master')

print (sys.path)
['', 'C:\ProgramData\Anaconda3\python36.zip', 'C:\ProgramData\Anaconda3\DLLs', 'C:\ProgramData\Anaconda3\lib', 'C:\ProgramData\Anaconda3', 'C:\ProgramData\Anaconda3\lib\site-packages', 'C:\ProgramData\Anaconda3\lib\site-packages\Babel-2.5.0-py3.6.egg', 'C:\ProgramData\Anaconda3\lib\site-packages\giddy-1.0.2-py3.6.egg', 'C:\ProgramData\Anaconda3\lib\site-packages\esda-1.0.1.dev0-py3.6.egg', 'C:\ProgramData\Anaconda3\lib\site-packages\mapclassify-1.0.1-py3.6.egg', 'C:\ProgramData\Anaconda3\lib\site-packages\win32', 'C:\ProgramData\Anaconda3\lib\site-packages\win32\lib', 'C:\ProgramData\Anaconda3\lib\site-packages\Pythonwin', 'C:\ProgramData\Anaconda3\lib\site-packages\IPython\extensions', 'C:\Users\steph_000\.ipython', 'D:/SDC/TOAC/libpysal-master']

from giddy.

weikang9009 avatar weikang9009 commented on September 26, 2024

Don't worry about the changelog. The source code you cloned from pysal/libpysal is the most updated version. Right now, we only have one branch: master. So you do not need to worry about switching branches. It might be helpful to try the second method of changing python path. Or follow the procedures

  • in a terminal: touch ~/.bashrc; open ~/.bashrc
  • add the libpysal path to bash_profile: export PYTHONPATH=$PYTHONPATH:/custom/path/to/libpysal
  • in the terminal: source ~/.bashrc

Let me know if it does not work.

from giddy.

tra6sdc avatar tra6sdc commented on September 26, 2024

from giddy.

weikang9009 avatar weikang9009 commented on September 26, 2024

I think you accidentally closed the issue. I've just reopened it.

You can open a terminal (Command Prompt on Windows) from Window Power users menu:
image

from giddy.

tra6sdc avatar tra6sdc commented on September 26, 2024

from giddy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.