Giter VIP home page Giter VIP logo

Comments (5)

rakeshbabuseva avatar rakeshbabuseva commented on June 30, 2024

Even when I tried to import git after installing gitpython throws the below exception.

import git
File "C:\Python27\lib\site-packages\git__init
_.py", line 30, in
init_externals()
File "C:\Python27\lib\site-packages\git__init
_.py", line 24, in init_externals
raise ImportError("'gitdb' could not be found in your PYTHONPATH")
ImportError: 'gitdb' could not be found in your PYTHONPATH

from jython3.

jeff5 avatar jeff5 commented on June 30, 2024

In general, putting the CPython library on the path in Jython is a recipe for disaster: much of the Jython stdlib is identical, but low-level code is not. At the end sounds like it would be safe, but in fact it's not reliable. It would be better to have a distinct copy of the modules you need in (say) the Jython Lib/site-packages.

I notice that the names reported are git__init_.py and gitdb__init_.py, which looks wrong in an obvious way. This may be a bug in os.path.join or our import apparatus: or it may just be in the production of the error message.

BTW this is the Jython3 sandbox and you're using Jython 2.7.

from jython3.

rakeshbabuseva avatar rakeshbabuseva commented on June 30, 2024

Thanks jeff, the information is really helpful.

from jython3.

jeff5 avatar jeff5 commented on June 30, 2024

I ought to be able to say install the things you need with pip under 2.7.0, but it doesn't work on Windows. Now that is a bug 😞. So I guess installing under CPython (as you have) and copying is the thing to try.

from jython3.

rakeshbabuseva avatar rakeshbabuseva commented on June 30, 2024
**import dropbox

File "C:\jython2.7.0\Lib\site-packages\dropbox__init__.py", line 3, in
from .dropbox import version, Dropbox, DropboxTeam, create_session
File "C:\jython2.7.0\Lib\site-packages\dropbox\dropbox.py", line 19, in
from . import stone_serializers
File "C:\jython2.7.0\Lib\site-packages\dropbox\stone_serializers.py", line 23, in
from . import stone_validators as bv
File "C:\jython2.7.0\Lib\site-packages\dropbox\stone_serializers.py", line 23, in
from . import stone_validators as bv
File "C:\jython2.7.0\Lib\site-packages\dropbox\stone_validators.py", line 21, in
from typing import Optional
File "C:\jython2.7.0\Lib\site-packages\typing.py", line 345, in
class Any(Final):
File "C:\jython2.7.0\Lib\site-packages\typing.py", line 332, in new
cls.assert_no_subclassing(bases)
File "C:\jython2.7.0\Lib\site-packages\typing.py", line 100, in assert_no_subclassing
if isinstance(base, cls):
RuntimeError: maximum recursion depth exceeded (Java StackOverflowError)**

I tried the by copying the dropbox module but unfortunately it shows the above error :(

from jython3.

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.