I recently started working on a project using just vim as my text editor with a virtualenv setup. I installed a few API's on this virtualenv from GitHub. Eventually, the project got a little bigger than vim could handle so I had to move the project to an IDE.
I chose Aptana Studio 3. When I started up Aptana, I pointed the project directory to the virtualenv folder that I had created to house my project. I then pointed the interpreter at the Python executable in App/bin (created from virtualenv)/python2.7. When I started reworking the code to make sure I had everything mapped correctly, I was able to import the API's that I had installed just fine. CherryPy came through with no problems, but I've been having an issue with importing a module that I believe is part of the stdlib--urlparse. At first, I thought it was that my python interpreter was 2.7.1 rather than 2.7.5 (I found the documentation in the 2.7.5 section with no option to review 2.7.1), but my terminal is using 2.7.1 and is able to import the module without any errors (I'm using OSX, Mountain Lion). I am also able to import the module when I activate the virtualenv and run my python interpreter. But when I plug "from urlparse import parse_qsl" into Aptana, I'm getting an error: "Unresolved_import: parse_qsl".
Should I have pointed this at a different interpreter and, if so, will I need to reinstall the API modules I had been working with in the new interpreter?
Aptana Python stdlib issue with virtualenv
215 Views Asked by Sandwich Heat At
1
There are 1 best solutions below
Related Questions in PYTHON-2.7
- Telnet function in Python
- symbol not found in flat namespace '__PyTrash_begin
- Python 2.7 requirements won't install without virtualenv
- Python search for the errors in the JSON
- spectrogram for a .cdf file
- SSL Error and InsecurePlatformWarning when installing packages using pip on Python 2.7
- Canonical way to ensure float point division across py2 and py3?
- Unable to execute Python Script directly
- Pip from Python 2.7.10 installed via pyenv-win cannot install any packages
- Arcpy: Python stops ExportToPDF through list after some iterations
- Python2 unable to pickle string
- Reading Excelsheets using openpyxl and Python
- How can I store a function in an array in python?
- " 'Word2Vec' object has no attribute 'load_parent_word2vec_format' " error
- How to execute a nodejs function from the python code?
Related Questions in APTANA3
- How do I activate console.log in aptana3
- Aptana studio 3.3.1 with PHP 8 syntax error
- Last stable release for APTANA Studio for PHP is 3.3
- HowTo for starting with Aptana Studio 3
- How do I configure Aptana 3 to run my Rails server in debug mode so it stops on breakpoints?
- How do I set the proper Ruby version for use with my Rails 5 project in Aptana 3?
- How do I configure Aptana 3 IDE to run rspec tests for my Rails project?
- Aptana 3 installation error first time install
- How do I create a Rails run configuration on Aptana Studio 3?
- How do I configure a Rails server in Aptana Studio 3?
- How do I launch my Rails server in debug mode in Aptana Studio 3?
- Why is my IDE marking this anonymous PHP function as a syntax error?
- Problem with "Syntax error: unexpected token 'let'
- Eclipse Aptana 3 - No syntax highlighting (editor code in black & white)
- Aptana Studio 3 Launch Error - Java problems
Related Questions in PYTHON-IMPORT
- Python ModuleNotFoundError for command line tools built with setup.py
- How to import logsumexp from keras.backend?
- Python importing hierarchy failing
- Python pyinstaller ModuleNotFoundError even with hidden import
- Pyaudio installed with Conda but not found on Import
- Python relative imports do not work in VS Code but do in PyCharm
- Why doesn't 'import *' give me all modules?
- ModuleNotFoundError: No module named 'x' when trying to run my code
- Where is the top level module in python import tree? How to define it?
- Upgraded to Django 4.2, import storages module failed
- Python module not imported despite file being there
- Python in VSCode - PIP Error (cmd not found)
- Python import not working, even after creating __init__ in parent folders
- Relative Import: No Known Parent Package
- What is the benefit of using import X as X?
Related Questions in PYTHONPATH
- Running different python environments within python script in linux
- Why PYTHONPATH need to be exported?
- how do I guide pabot to find my custom libraries or APIs?
- How do I get an application using python to ignore PYTHONHOME and/or PYTHONPATH?
- PyCharm "Interpreter Paths" -- What are they and where are they stored?
- FileNotFound error when importing packages
- Visual Studio Code working with Python with PYTHONPATH and separate source and tests folders
- Keep Python code safe from execution by Pydoc
- Setting `PYTHONPATH` for an Open Source Shiny Server Deployment
- Use Windows cmd to set PYTHONPATH for embedded Python interpreter
- VSCode Python unittest discovery fails: 'utils' is not a package -> sys.path ordering?
- Unable to call Python method from Robot Framework: No keyword with the name 'method_name' was found
- Starting Django Project with gunicorn: No module named: "myproject"
- Setting up a Python environment to point to a modules directory on a Mac
- Fun Python import issue
Related Questions in URLPARSE
- How to extract the html link from a html page in python?
- How to extract file extension from direct and indirect URLs in Python?
- How to download PDF from URL using Python if URL is not a simple .pdf, but also contains more information such as signature, etc?
- How to check if 2 urls in same domain?
- Python Misses Parsing arguments?
- urlparse doesn't return params for custom schema
- python - Retrieve and save links from webpage but only one per domain
- split URL python
- How to add an active class to navigation button based off of URL
- Encountering 'urlparse module not found' error while importing googleanalytics library in Jupyter notebook
- Get the value of URL Parameters for bid i'm getting nil value
- How To Parse URL in Deno
- How to replace url parameter using python
- How to check If a value exists in urlparse path
- How to parse 127.0.0.1:1234
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Update: I finally ended up restarting the project. It turns out that not all of the standard Python tools are selected when you select the virtualenv interpreter. After I selected all of the python tools from the list (just after choosing the interpreter), I was able to get access to the entire standard library.
Do NOT just import the modules into your project. Many of the stdlib modules are interdependent and the import function will only import a module into your main project directory, not a libary!