Comments (7)
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.
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.
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.
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.
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.
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.
Sure. Good luck, Manu.
from pysvn.
Related Issues (20)
- "info" failing on files added but not committed
- OSError: [Errno 12] Cannot allocate memory if too manay connect
- Many errors while launching the tests in Windows
- Add possibility to return list of related files when running svn commands HOT 4
- New Version required: Remove method is missing in actual version
- Error 'xml.etree.ElementTree.Element' object has no attribute 'getchildren' when listing log in Python 3.9.x HOT 3
- function log_default throw an UnicodeDecodeError on Windows(Chinese) HOT 3
- can not get the file content with cat if file is delete
- FileNotFoundError HOT 1
- ModuleNotFoundError: No module named 'svn.local'; 'svn' is not a package
- lock function have been removed?
- svn.remote.RemoteClient HOT 1
- Add a file to svn from local machine? HOT 1
- UnicodeDecodeError HOT 1
- AttributeError: module 'pysvn' has no attribute 'Revision' HOT 2
- passwords being logged and shown in the clear HOT 4
- svn: E230001: Server SSL certificate verification failed: issuer is not trusted HOT 1
- password not working for 'svn+ssh' RemoteClient?
- When the program is not closed after using the update method, wc.db is occupied and cannot be deleted
- PyPI new version request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysvn.