Giter Site home page Giter Site logo

Comments (6)

trisgelar avatar trisgelar commented on May 18, 2024 1

yes thanks. it's work.

from elm-docset.

pdamoc avatar pdamoc commented on May 18, 2024

The code was written for Python 2.7. I'll look into making it Python 3.x ready.

from elm-docset.

trisgelar avatar trisgelar commented on May 18, 2024

OK thanks, i am first using python the problem resolve if i add parenthesis on print. python 2.7 vs python 3
however, the error still occur in import requests even though i have installed the requests package from pip install.

I thinks if it is possible for you to include requirement.py to give right version of dependencies of another package.

(dash) C:\Users\user\Downloads\Project\elm-docset>generate.py
Traceback (most recent call last):
  File "C:\Users\user\Downloads\Project\elm-docset\generate.py", line 7, in <module>
    from cache import fetch
  File "C:\Users\user\Downloads\Project\elm-docset\cache.py", line 2, in <module>
    import requests
ImportError: No module named 'requests'
(dash) C:\Users\user\Downloads\Project\elm-docset>python
Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> requests
<module 'requests' from 'E:\\Programs\\Python34\\Env\\dash\\lib\\site-packages\\requests\\__init__.py'>
>>>

this error because i only using generate.py not python generate.py 😄

from elm-docset.

pdamoc avatar pdamoc commented on May 18, 2024

I have also added an requirements.txt
It should work now with both python2 and python3.
If you encounter any other problem, feel free to open another issue.

Thank you for reporting this.

from elm-docset.

trisgelar avatar trisgelar commented on May 18, 2024

Your welcome, i report some finding

  • def package_helper(this, (name, link)) : in template.py i change to link
def package_helper(this, name_link):
  (name, link) = name_link
  • some print without parenthesis upgrade_json.py
  • change string.lowercase and string.uppercase to string.ascii_lowercase and string.ascii_uppercase in generate.py
(dash) C:\Users\user\Downloads\Project\elm-docset>python generate.py
Traceback (most recent call last):
  File "generate.py", line 144, in <module>
    valid_chars = "_'"+string.digits+string.lowercase+string.uppercase
AttributeError: 'module' object has no attribute 'lowercase'
  • change deprecated = [p for p in all_pkgs_dict.iteritems() if not p in new_pkgs] to deprecated = [p for p in all_pkgs_dict.items() if not p in new_pkgs] link
  • change with open(opj(docpath, "index.html"), "w") as fo: to with open(opj(docpath, "index.html"), "wb") as fo: link
  • change 'fo.write(moduleTemplate(data))' to fo.write(str(moduleTemplate(data))) in generate.py
  • wrap map with list in generate.py like map(lambda link

After some stack overflowing. 😆

from elm-docset.

pdamoc avatar pdamoc commented on May 18, 2024

The above referenced 70dc102 commit solved all the problems related to this issue (as far as I can see), what you describe here references the previous version of the code. Please update to the latest version and try again. If you encounter any other problem, feel free to open a new issue. :)

from elm-docset.

Related Issues (17)

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.