I'm having a crazy problem installing a package I built and placed in a bitbucket repository to a local environment.
I built the package.
I was successfully able to connect to it from Pycharm locally by doing:
pip install -e path/to/repository
I then pushed the built package to bitbucket.
I then switched local environments and pip installed the package from bitbucket as follows:
pip install git+https://my_name#bitbucket.org/my_company/my_repo.git
The package successfully installed locally.
I see it in pycharm and pycharm sees it in the environment site-packages. It looks like this:
I can't tell if it is installed properly but I note there are no .py files.
The script in this environment doesn't see the package.
I get the following error:
Any guidance on what could be wrong? Again, everything works fine when I'm local and using pip install -e. The code works. Just can't get it to work from pushed distribution packages from a remote repository.
Thanks in advance.
I don't know if this counts as a true solve but got it working. And after about 10 hours of work on this I'm not exactly sure how. I believe the issue may boil down to a stray comma - yes a comma - in the setup file which was not enough to throw an error but somehow left the build without some necessary parameter which resulted in a bad build when trying to install from the repository.
This also raises questions for me as to how pip install e works. This because my local editable install worked fine.
Very troublesome that I can't definitively identify the cause of this issue though I've seemed to resolve it.
Related
I have cloned a GitHub repository that contains the code for a Python package to my local computer (it's actually on a high performance cluster). I have also installed the package with pip install 'package_name'. If I now run a script that uses the package, it of course uses the installed package and not the cloned repository, so if I want to make changes to the code, I cannot run those. Is there a way to do this, potentially with pip install -e (but I read that was deprecated) or a fork? How could I then get novel updates in the package to my local version, as it is frequently updated?
If you run an IDE like PyCharm, you can mark a folder in your project as Sources Root. It will then import any packages from that folder instead of the standard environment packages.
In the end I indeed did use pip install -e, and it is working for now. I will figure it out once the owner of the package releases another update!
Overall I'm trying to use a module in Django that helps with translating pages, but I don't have installed and can't do it through pip install package.
I've tried the fllowing:
pip install gettext
That returns that could not find a version that requires the...
I also downloaded the tar.gz file from the official website, yet when I try to install it localy the error:
python setup.py egg_info failed with error code 1 windows
Comes up. Been reading, trying to fix the second error or possible solutions, installed ez_update, updatade all packages, made a rollback and I don't know what to do anymore, any help?
The package gettext is available as python-gettext in Python pypi
Please use
pip install python-gettext
I was struggling with the same issue and what worked for me eventually is the following:
download gettext-runtime-0.17.zip and gettext-tools-0.17.zip (or the latest version) from here:
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/
Place both directories in your project directory (say myProject)
Now, in each of these folders there is a bin folder. Go into it and copy the address. Each would look sth like:
C:\myProject\gettext-runtime-0.17\bin
C:\myProject\gettext-tools-0.17\bin
Go into: control panel > System > Advanced System settings > Environment variables. In system variables, choose Path and click
'edit'.
Paste both addresses at the end, like this:
;C:\myProject\gettext-runtime-0.17\bin;C:\myProject\gettext-tools-0.17\bin
(don't forget the semicolon after the last existing item)
Activate your virtualenv and run the makemessages command. It should work.
I'm new to git, pip, Python, and Heroku (where I'm building my project), so bear with me.
I'm building a Python app on Heroku and decided to use a library from GitHub (specifically https://github.com/arcward/ticketpy). I installed it through pip install ticketpy and it worked fine, and later re-installed it manually with python setup.py install which also worked fine, but I realized I needed to change some of the library's code for my project. After looking around it seems that the best way to do this would be to set up a repo just for the module, so I could easily deploy it on Heroku. So, that's what I did.
Now, when I run pip install git+the-url-to-my-git-here, it works, and pip claims to successfully install the module. There is not a single error. However, if I run pip freeze the ticketpy module is not listed. If I run import ticketpy from the Python console on Heroku, I receive the message ImportError: No module named 'ticketpy'.
I've researched online and tried a number of different things but nothing has worked so far. This doesn't seem like a very common issue either.
If anyone has an idea, I'd really like to hear it; I'm stumped!
When I upgraded to Jupyter on Ubuntu 14.04 most everything works but the javascript loads for extensions..
I'm kind of giving up and need to wipe and start over but not entirely sure how to: (I know I should use virtualenv s but for the most part this has worked great 'till now.)
1) best uninstall, insure it is completely uninstalled and then re-install. It was installed/upgraded with pip (sudo)
2)I had previously installed IPython Dev via git, but see no trace of similar instructions for Jupyter? (this looks like it might be the answer to this part? Fail Jupyter Notebook installation on clean Ubuntu 14.04 LTS
don't want to dig myself a deeper hole...
If anyone else manages to mess it up as badly as I did...
Well I got it mostly sorted out... I removed anaconda from my bashrc file.. then I removed all instances of IPython and Jupyter form my base system files.. I used Pip uninstall for most stuff and anything left I removed via the file system, I checked carefully in the system dist-packages folder as well as numerous others using locate and find to make sure I killed it all. Then a sudo install Jupyter and a "python setup.py install" in the IPython extensions directory and I seem to be mostly back to normal....
It seems that I cannot get yowsup properly installed under Windows 7.
I am following these procedures for installation:
https://github.com/tgalal/yowsup/blob/master/README.md
doing a
pip install yowsup2
python setup.py install
I have omitted installation of zlib since I do know where the dll is,
but not in which directory I should copy it.
Everything runs fine when using yowsup-cli, I can send and receive messages.
However, I cannot run samples on signals and methods such as shown:
https://github.com/tgalal/yowsup/wiki/%5BLegacy%5D-Yowsup-Documentation
since I cannot find the file connectionmanager.py, this is not installed or created.
Any help appreciated, thanks!
There are two branches: legacy (yowsup) and master (yowsup2)
Yowsup2 is the newer version with a clean up of the code compared to yowsup(legacy).
What you did is installing yowsup2 but you tried to use functions of the legacy package. (Imagine an old car as legacy without automatic but you trying to use it)
Also Yowsup2 (master) will get updates and that stuff while legacy won't be updated anymore.
If you have any more questions feel free to ask.
It seems that one needs to do an additional
pin install Yowsup
(mind the capital letter, and no trailing '2' here)
to install the legacy package which includes the connectionmanager.py
However, this is installed in the directory yowsup starting with a small 'y', but modules in the scripts are still not found since they refer to a Yowsup directory with capital Y.
Confused.