Comments (13)
@jonathanslenders Noticed this also. Installing from source works for now atleast :]
from ptpdb.
Just ran into this as well.
from ptpdb.
I think all that is needed at this point is to bump the version and upload a tarball as it looks like the issue is no longer there on master.
A download from PyPI has no modules:
[marca@marca-mac2 ptpdb]$ tar tvzf ptpdb-0.1.tar.gz
drwxrwxr-x 0 jonathan jonathan 0 Dec 11 10:50 ptpdb-0.1/
drwxrwxr-x 0 jonathan jonathan 0 Dec 11 10:50 ptpdb-0.1/ptpdb.egg-info/
-rw-rw-r-- 0 jonathan jonathan 15 Dec 11 10:50 ptpdb-0.1/ptpdb.egg-info/requires.txt
-rw-rw-r-- 0 jonathan jonathan 266 Dec 11 10:50 ptpdb-0.1/ptpdb.egg-info/PKG-INFO
-rw-rw-r-- 0 jonathan jonathan 1 Dec 11 10:50 ptpdb-0.1/ptpdb.egg-info/top_level.txt
-rw-rw-r-- 0 jonathan jonathan 1 Dec 11 10:50 ptpdb-0.1/ptpdb.egg-info/dependency_links.txt
-rw-rw-r-- 0 jonathan jonathan 163 Dec 11 10:50 ptpdb-0.1/ptpdb.egg-info/SOURCES.txt
-rw-rw-r-- 0 jonathan jonathan 375 Dec 11 10:49 ptpdb-0.1/setup.py
-rw-rw-r-- 0 jonathan jonathan 266 Dec 11 10:50 ptpdb-0.1/PKG-INFO
-rw-rw-r-- 0 jonathan jonathan 12 Dec 11 10:49 ptpdb-0.1/README.rst
-rw-rw-r-- 0 jonathan jonathan 59 Dec 11 10:50 ptpdb-0.1/setup.cfg
but a freshly built sdist does:
[marca@marca-mac2 ptpdb]$ tar tvzf dist/ptpdb-0.1.tar.gz
drwxr-xr-x 0 marca staff 0 Feb 15 17:31 ptpdb-0.1/
-rw-r--r-- 0 marca staff 266 Feb 15 17:31 ptpdb-0.1/PKG-INFO
drwxr-xr-x 0 marca staff 0 Feb 15 17:31 ptpdb-0.1/ptpdb/
-rw-r--r-- 0 marca staff 9308 Feb 15 14:02 ptpdb-0.1/ptpdb/__init__.py
-rw-r--r-- 0 marca staff 2541 Feb 15 14:02 ptpdb-0.1/ptpdb/commands.py
-rw-r--r-- 0 marca staff 3321 Feb 15 14:02 ptpdb-0.1/ptpdb/completers.py
-rw-r--r-- 0 marca staff 1111 Feb 15 14:02 ptpdb-0.1/ptpdb/completion_hints.py
-rw-r--r-- 0 marca staff 2503 Feb 15 14:02 ptpdb-0.1/ptpdb/grammar.py
-rw-r--r-- 0 marca staff 686 Feb 15 14:02 ptpdb-0.1/ptpdb/key_bindings.py
-rw-r--r-- 0 marca staff 966 Feb 15 14:02 ptpdb-0.1/ptpdb/layout.py
-rw-r--r-- 0 marca staff 947 Feb 15 14:02 ptpdb-0.1/ptpdb/style.py
-rw-r--r-- 0 marca staff 1646 Feb 15 14:02 ptpdb-0.1/ptpdb/toolbars.py
drwxr-xr-x 0 marca staff 0 Feb 15 17:31 ptpdb-0.1/ptpdb.egg-info/
-rw-r--r-- 0 marca staff 1 Feb 15 17:31 ptpdb-0.1/ptpdb.egg-info/dependency_links.txt
-rw-r--r-- 0 marca staff 47 Feb 15 17:31 ptpdb-0.1/ptpdb.egg-info/pbr.json
-rw-r--r-- 0 marca staff 266 Feb 15 17:31 ptpdb-0.1/ptpdb.egg-info/PKG-INFO
-rw-r--r-- 0 marca staff 9 Feb 15 17:31 ptpdb-0.1/ptpdb.egg-info/requires.txt
-rw-r--r-- 0 marca staff 357 Feb 15 17:31 ptpdb-0.1/ptpdb.egg-info/SOURCES.txt
-rw-r--r-- 0 marca staff 6 Feb 15 17:31 ptpdb-0.1/ptpdb.egg-info/top_level.txt
-rw-r--r-- 0 marca staff 453 Feb 15 14:02 ptpdb-0.1/README.rst
-rw-r--r-- 0 marca staff 59 Feb 15 17:31 ptpdb-0.1/setup.cfg
-rw-r--r-- 0 marca staff 421 Feb 15 14:02 ptpdb-0.1/setup.py
from ptpdb.
Please, update version on pypi.
from ptpdb.
+1 on update
from ptpdb.
Hi all, thanks for reminding me. I did a new update on pypi. (both of prompt-toolkit and ptpython.) Sorry for the delay!
Please could you run "pip install ptpython" and tell me whether it works?
from ptpdb.
Hi @jonathanslenders .
I ask for update only ptpdb becasue version on PYPI do not work
➜ ~ ptpython
In [1]: from ptpdb import set_trace
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 1, in <module>
ImportError: No module named ptpdb
No module named ptpdb
In [2]:
Version ptpdb on https://github.com/jonathanslenders/ptpdb working ok.
from ptpdb.
Oh, sorry. I should have been confused last night. I didn't update ptpdb. Doing in now.
edit: Ok. I need to do a few more changes to make it compatible with the latest prompt-toolkit. I'll do it later today.
from ptpdb.
I did a new release of ptpdb. Can you try to install it?
from ptpdb.
import ptpdb
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 1, in <module>
File "/home/ihor/.pyenv/versions/2.7.8/lib/python2.7/site-packages/ptpdb/__init__.py", line 26, in <module>
from prompt_toolkit.contrib.shortcuts import create_eventloop
ImportError: cannot import name create_eventloop
cannot import name create_eventloop
also
pip install ptpdb -U
# skiped
Found existing installation: ptpdb 0.1
Uninstalling ptpdb-0.1:
Successfully uninstalled ptpdb-0.1
Successfully installed prompt-toolkit-0.31 ptpdb-0.2 ptpython-0.5
from ptpdb.
Ok. We need ptpython 0.6 and prompt-toolkit 0.32.
I don't know why they still had a dependencies to these old versions.
In any case. I did a new release. Try again. pip install -U ptpdb
.
from ptpdb.
You do not increase version number so pip install -U ptpdb
use cached version.
I remove ~/.cache/pip and install new ptpdb.
ptpython
In [1]: import ptpdb
In [2]: ptpdb.set_trace()
--Return--
> <string>(1)<module>()->None
(pdb)
Looks nice 👍
from ptpdb.
Ok, thank! :)
Well, I still have to put some more effort in this tool. This was a proof of concept, and my main focus was more on the underlying libraries (prompt-toolkit and ptpython). Probably when these become more stable and feature complete, I will have time again to improve this. :) Cheers.
from ptpdb.
Related Issues (16)
- set_trace() cause exception HOT 2
- Smart commands from pdb++? HOT 1
- set_trace not working inside django HOT 8
- Add config option to disable code viewer HOT 3
- list has a meaning in ptpdb.. it shouldnt HOT 1
- Breaks on non-ASCII chars in source code HOT 3
- Attach to remote pdb session
- Start in interpreter mode HOT 1
- ptpdb.post_mortem() missing HOT 4
- Unable to reassign variables inside a class
- PythonInput error in 0.17
- How to quit the debugger when in while loop
- pipenv There are incompatible versions in the resolved dependencies.
- Status? / integration with pdb++
- [bug] cannot from ptpdb import set_trace
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 ptpdb.