Questions tagged [python-3.6]

Version of the Python programming language released in December 2016. For issues specific to Python 3.6. Use more generic [python] and [python-3.x] tags where possible.

Python 3.6 is the currently newest version of the popular Python programming language (see PEP 0494).

Use this tag if your question is specifically related to Python 3.6. Otherwise, use the following guidelines to determine which tag(s) you should add to your question:

  • If your question applies to Python in general, use only the tag.
  • If your question applies to Python 3.x but not to Python 2.x, add the tag .
  • If you aren't sure, tag your question with and mention which version you're using in the post.

References

5657 questions
1
vote
1 answer

hvac python library - Unable to authenticate

I have following python code: import hvac import os client = hvac.Client(url='https://vault.domain.com:8200', token='s.XXXXXXXXXXXXXXXXXXX') client.is_authenticated() And it does not work - I get exception: Traceback (most recent call last): …
Wojtas.Zet
  • 636
  • 2
  • 10
  • 30
1
vote
3 answers

Pandas: convert certain str column to list as other values

I have pandas dataframe column that contains both list and str values. I am only trying to convert str values into a proper list format so that it matches other list form values. I found a fix around it but I am looking to see if there is better way…
sharp
  • 2,140
  • 9
  • 43
  • 80
1
vote
2 answers

Recursive Decryption of String with AES-256-cbc

I am trying to decrypt an AES CBC string for the number of times it was decrypted. I was successful in decrypting the first time. from Crypto.Cipher import AES k = '57067125438768260656188878670043' key = bytes(k, 'ascii') i = '5706712543876826' iv…
Michael Ajanaku
  • 95
  • 4
  • 11
1
vote
1 answer

Run Background Process in Python

I know that I can run a background process in python using subprocess. But the problem is that when I make a gui and then use subprocess with close_fds=True parameter, the window changes to not responding. So, what I want is that I need to create a…
lakshya
  • 105
  • 3
  • 9
1
vote
1 answer

Im having issues getting Django/Python to recognise dj_database_url

I'm having problems getting Django/Python to recognise dj_database_url. I've installed in my virtualevn using pip install dj-database-url and even tried dj_database_url The terminal says that pip install dj-database-url installed fine, I even see it…
Delroy Brown
  • 125
  • 1
  • 7
1
vote
1 answer

Change PNG values assigned to colors

I am working with rasterio and looking to modify a PNG by changing the order of values assigned to different colors. Using gdalinfo, this is what the image currently looks like. I have read [rasterio color]1, but it only changes the colors, it won't…
WxJack
  • 21
  • 6
1
vote
0 answers

How to read a file in python?

I have a file of the format .lammpstrj which has the 15 million rows of data points of the following pattern: id mol type x y z 100000 ITEM: NUMBER OF ATOMS 3000 ITEM: BOX BOUNDS pp pp pp 4.8659189006091452e-02…
logan007
  • 67
  • 1
  • 10
1
vote
3 answers

python value error expected 2 recieved one when trying to put a text file into an array

im trying to get some code which will look into a text file and split the lines into 2 variable but when i run this i get the error ValueError: not enough values to unpack (expected 2, got 1) the code is: x=0 f = open("scores.txt","a") …
drewpie
  • 21
  • 1
  • 7
1
vote
1 answer

Altair library | Difficulty to save a Chart in .png, getting a .js error

I'm trying to save an Altair Chart in .png howether I get the error below. Could you please help me, I don't where this one come from. I don't understand what it is. For information I manage to save the graph in .svg, .html and .json format, but not…
Coline Gilles
  • 53
  • 1
  • 6
1
vote
1 answer

API Gateway URL (endpoint id) Changed after “sls deploy” and endpoint is not appearing in API Gateway

I recently added changes to my python lambda function and tried to redeploy to production using sls deploy --stage prod The endpoint appears and the deployment was successful. However, I noticed that the endpoint id changed. example: from :…
1
vote
2 answers

AttributeError: 'NoneType' object has no attribute 'roles'

I have been trying to make a bot using python for discord. This bot adds the member to another room depending in the room s/he is in. When I tried to run the code I keep getting this error AttributeError: 'NoneType' object has no attribute…
baraa
  • 9
  • 1
  • 3
1
vote
0 answers

google_images_download module not downloading images

When I use the following code I found online, as well as the example code shown by the creator on pypi, all that shows up is "Unfortunately all 4 could not be downloaded because some images were not downloadable. 0 is all we got for this search…
Rohit Jose
  • 209
  • 1
  • 9
1
vote
1 answer

How to show the price at the index (page home) in Indian Numbering System

here is my models.py file class ProductPage(models.Model): item=models.CharField(max_length=100) price=models.IntegerField(null=True, blank=True) @property def price_tag(self): if price>=100000 or price<=9999999: …
Amit Saini
  • 136
  • 2
  • 16
1
vote
1 answer

asyncio not working on AWS Lambda (python 3.6)

This works on my local machine but on AWS Lambda I get the below-mentioned error. import asyncio import os async def abc(): await asyncio.sleep(1) print("abc") def handler(event, context): print("RANDOM") loop =…
1
vote
1 answer

Pandas read_excel gives yes no while reading an excel file

Using pandas to read an excel. I know its straightforward, but the dataframe output is just yes and no. Regarding the excel file, just 11 columns with normal data, single sheet, with sheet name as Sheet1 In [1]: import pandas In [2]: import pandas…
Raccoon
  • 400
  • 4
  • 13
1 2 3
99
100