GithubHelp home page GithubHelp logo

Comments (7)

manudevelopia avatar manudevelopia commented on September 18, 2024

Update: I have tried from the terminal running python and typing all the code and works but if the code is writed in a file does not and returns the "ImportError: No module named remote" error.

from pysvn.

dsoprea avatar dsoprea commented on September 18, 2024

There might be a path error caused by the project that you're calling it
from.

Look at the path from your Python, directly. Example, for Python 2.7:

import sys
import pprint
pprint.pprint(sys.path)
['',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages']
import svn
svn.file
'/usr/local/lib/python2.7/dist-packages/svn/init.pyc'

Now, look at the path at the point that you're trying to import svn.

Dustin

On Tue, Mar 31, 2015 at 1:01 PM, Manu Garcia [email protected]
wrote:

Update: I have tried from the terminal running python and typing all the
code and works but if the code is writed in a file does not and returns the
"ImportError: No module named remote" error.


Reply to this email directly or view it on GitHub
#10 (comment).

from pysvn.

manudevelopia avatar manudevelopia commented on September 18, 2024

I'm not using a project, I'm just using a plain file written with Emacs::Jedi text create to test the program. I have also tried in a MabookPro Mavericks installed svn with Brew with the same results using the console. I tried also with pyCharm creating a Django project and it works.

As you sad this seems to be a path problem.

I've tried also creating a new pathtest.py file with this content

import sys
print (sys.path)

After executing the output is:

['/home/manu/Devel/Workspace/PyCharm/pysvn',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PILcompat',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7',
'/usr/lib/python2.7/dist-packages/ubuntu-sso-client']

The path where svn is installed: /usr/local/lib/python2.7/dist-packages is included, so is supposed to be right to support import svn.remote on the code.

I tried other installed modules in the same path and they appear to be working.

Can you provide me a few steps to start working with lib after installing with pip?

Thanks a lot!

from pysvn.

dsoprea avatar dsoprea commented on September 18, 2024

One or more of the path entries before it might be hijacking the import.
Check for old versions of "svn" or other packages having the same name.

Dustin
On Apr 1, 2015 1:02 PM, "Manu Garcia" [email protected] wrote:

I'm not using a project, I'm just using a plain file written with
Emacs::Jedi text create to test the program. I have also tried in a
MabookPro Mavericks installed svn with Brew with the same results using the
console. I tried also with pyCharm creating a Django project and it works.

As you sad this seems to be a path problem.

I've tried also creating a new pathtest.py file with this content

import sysprint (sys.path)

After executing the output is:

['/home/manu/Devel/Workspace/PyCharm/pysvn',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PILcompat',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7',
'/usr/lib/python2.7/dist-packages/ubuntu-sso-client']

The path where svn is installed: /usr/local/lib/python2.7/dist-packages is
included, so is supposed to be right to support import svn.remote on the
code.

I tried other installed modules in the same path and they appear to be
working.

Can you provide me a few steps to start working with lib after installing
with pip?

Thanks a lot!


Reply to this email directly or view it on GitHub
#10 (comment).

from pysvn.

manudevelopia avatar manudevelopia commented on September 18, 2024

Hi again, I´ve tried with a fresh installation of Debian stable and it perfectly works, so as you commented this must be an issue caused by other packages interference, I will try to discover which is causing the problem, if I succeed I will let you know. Thanks again for your support!

from pysvn.

manudevelopia avatar manudevelopia commented on September 18, 2024

After having a look at the packages installed with pip I cannot see any problem with names so I decided to remove and reinstall using easy_install and this started to work (CLI-interpreter, emacs-jedi, pycharm). Sorry for the inconveniences, I really don't know were the problem was. Thanks a lot!

from pysvn.

dsoprea avatar dsoprea commented on September 18, 2024

Sure. Good luck, Manu.

from pysvn.

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.